From c93a5e05abcc8e4efeea0f71100de40091aaa1ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Mon, 26 Aug 2024 16:04:32 +0200 Subject: [PATCH 1/2] Add core --- core/pom.xml | 8 - .../main/java/com/sap/ai/sdk/core/Core.java | 3 +- .../ai/sdk/core/client/ApplicationApi.java | 1167 ++++++++------- .../sap/ai/sdk/core/client/ArtifactApi.java | 760 +++++----- .../ai/sdk/core/client/ConfigurationApi.java | 707 +++++---- .../sap/ai/sdk/core/client/DeploymentApi.java | 1275 +++++++++------- .../core/client/DockerRegistrySecretApi.java | 879 ++++++----- .../sap/ai/sdk/core/client/ExecutableApi.java | 374 ++--- .../sap/ai/sdk/core/client/ExecutionApi.java | 1286 ++++++++++------- .../sdk/core/client/ExecutionScheduleApi.java | 876 ++++++----- .../com/sap/ai/sdk/core/client/FileApi.java | 560 ++++--- .../com/sap/ai/sdk/core/client/KpiApi.java | 217 +-- .../com/sap/ai/sdk/core/client/MetaApi.java | 145 +- .../sap/ai/sdk/core/client/MetricsApi.java | 477 +++--- .../sdk/core/client/ObjectStoreSecretApi.java | 929 +++++++----- .../sap/ai/sdk/core/client/RepositoryApi.java | 859 ++++++----- .../sap/ai/sdk/core/client/ResourceApi.java | 347 +++-- .../ai/sdk/core/client/ResourceGroupApi.java | 901 +++++++----- .../ai/sdk/core/client/ResourceQuotaApi.java | 992 +++++++------ .../sap/ai/sdk/core/client/ScenarioApi.java | 575 ++++---- .../com/sap/ai/sdk/core/client/SecretApi.java | 770 +++++----- .../sap/ai/sdk/core/client/ServiceApi.java | 356 +++-- .../ai/sdk/core/client/model/AiApiError.java | 292 ++-- .../core/client/model/AiApiErrorWithId.java | 194 ++- .../ai/sdk/core/client/model/AiArtifact.java | 733 +++++----- .../model/AiArtifactArgumentBinding.java | 195 ++- .../model/AiArtifactCreationResponse.java | 252 ++-- .../sdk/core/client/model/AiArtifactList.java | 218 ++- .../core/client/model/AiArtifactPostData.java | 444 +++--- .../core/client/model/AiConfiguration.java | 508 ++++--- .../client/model/AiConfigurationBaseData.java | 362 ++--- .../AiConfigurationCreationResponse.java | 204 +-- .../client/model/AiConfigurationList.java | 219 ++- .../sdk/core/client/model/AiDeployment.java | 914 ++++++------ .../AiDeploymentBulkModificationRequest.java | 144 +- .../AiDeploymentBulkModificationResponse.java | 145 +- .../model/AiDeploymentCreationRequest.java | 182 +-- .../model/AiDeploymentCreationResponse.java | 308 ++-- .../model/AiDeploymentDeletionResponse.java | 203 ++- .../client/model/AiDeploymentDetails.java | 150 +- .../core/client/model/AiDeploymentList.java | 218 ++- .../AiDeploymentModificationRequest.java | 161 ++- ...mentModificationRequestWithIdentifier.java | 260 ++-- .../AiDeploymentModificationResponse.java | 204 +-- ...ploymentModificationResponseListInner.java | 270 ++-- .../AiDeploymentResponseWithDetails.java | 988 +++++++------ .../core/client/model/AiDeploymentStatus.java | 45 +- .../model/AiDeploymentTargetStatus.java | 33 +- .../model/AiEnactmentCreationRequest.java | 146 +- .../sdk/core/client/model/AiExecutable.java | 665 +++++---- .../client/model/AiExecutableArtifact.java | 248 ++-- .../core/client/model/AiExecutableList.java | 218 ++- .../client/model/AiExecutableParameter.java | 282 ++-- .../ai/sdk/core/client/model/AiExecution.java | 757 +++++----- .../AiExecutionBulkModificationRequest.java | 143 +- .../AiExecutionBulkModificationResponse.java | 144 +- .../model/AiExecutionCreationResponse.java | 232 +-- .../model/AiExecutionDeletionResponse.java | 199 ++- .../core/client/model/AiExecutionList.java | 218 ++- .../model/AiExecutionModificationRequest.java | 193 +-- ...tionModificationRequestWithIdentifier.java | 263 ++-- .../AiExecutionModificationResponse.java | 204 +-- ...xecutionModificationResponseListInner.java | 267 ++-- .../model/AiExecutionResponseWithDetails.java | 829 ++++++----- .../client/model/AiExecutionSchedule.java | 516 ++++--- .../AiExecutionScheduleCreationData.java | 338 +++-- .../AiExecutionScheduleCreationResponse.java | 207 +-- .../AiExecutionScheduleDeletionResponse.java | 207 +-- .../client/model/AiExecutionScheduleList.java | 222 +-- ...iExecutionScheduleModificationRequest.java | 276 ++-- ...ExecutionScheduleModificationResponse.java | 208 +-- .../model/AiExecutionScheduleStatus.java | 35 +- .../core/client/model/AiExecutionStatus.java | 45 +- .../sap/ai/sdk/core/client/model/AiLabel.java | 193 ++- .../core/client/model/AiLogCommonData.java | 126 +- .../client/model/AiLogCommonResultItem.java | 151 +- .../core/client/model/AiModelBaseData.java | 334 ++--- .../ai/sdk/core/client/model/AiModelList.java | 218 ++- .../sdk/core/client/model/AiModelVersion.java | 193 ++- .../model/AiParameterArgumentBinding.java | 198 ++- .../core/client/model/AiResourcesDetails.java | 116 +- .../core/client/model/AiScalingDetails.java | 115 +- .../ai/sdk/core/client/model/AiScenario.java | 383 ++--- .../core/client/model/AiScenarioLabel.java | 193 ++- .../sdk/core/client/model/AiScenarioList.java | 218 ++- .../ai/sdk/core/client/model/AiVersion.java | 317 ++-- .../sdk/core/client/model/AiVersionList.java | 218 ++- .../model/ArtifactQuery400Response.java | 117 +- .../model/BckndAllArgoCDApplicationData.java | 234 +-- .../model/BckndArgoCDApplicationBaseData.java | 264 ++-- ...ckndArgoCDApplicationCreationResponse.java | 208 +-- .../model/BckndArgoCDApplicationData.java | 293 ++-- .../BckndArgoCDApplicationDataRepoName.java | 302 ++-- ...ckndArgoCDApplicationDeletionResponse.java | 208 +-- ...ArgoCDApplicationModificationResponse.java | 210 +-- ...BckndArgoCDApplicationRefreshResponse.java | 207 +-- .../model/BckndArgoCDApplicationStatus.java | 472 +++--- .../BckndArgoCDApplicationStatusSource.java | 198 +-- ...icationStatusSyncResourcesStatusInner.java | 245 ++-- ...BckndArgoCDRepositoryCreationResponse.java | 207 +-- .../BckndArgoCDRepositoryCredentials.java | 205 +-- .../model/BckndArgoCDRepositoryData.java | 284 ++-- .../BckndArgoCDRepositoryDataResponse.java | 237 +-- ...BckndArgoCDRepositoryDeletionResponse.java | 207 +-- .../model/BckndArgoCDRepositoryDetails.java | 246 ++-- ...dArgoCDRepositoryModificationResponse.java | 209 +-- .../BckndCommonResourceQuotaResponse.java | 188 +-- ...BckndCommonResourceQuotaResponseQuota.java | 132 +- ...BckndCommonResourceQuotaResponseUsage.java | 130 +- .../client/model/BckndDeploymentQuota.java | 159 +- .../model/BckndDeploymentQuotaItem.java | 154 +- .../BckndDeploymentResourceQuotaResponse.java | 216 +-- .../client/model/BckndDeploymentUsage.java | 219 ++- .../ai/sdk/core/client/model/BckndError.java | 292 ++-- .../core/client/model/BckndErrorResponse.java | 116 +- .../ai/sdk/core/client/model/BckndEvent.java | 349 ++--- .../BckndExecutableResourceQuotaResponse.java | 191 +-- ...dExecutableResourceQuotaResponseQuota.java | 192 +-- ...dExecutableResourceQuotaResponseUsage.java | 192 +-- .../client/model/BckndExtendedService.java | 438 +++--- .../model/BckndGenericSecretDataResponse.java | 159 +- .../model/BckndGenericSecretDetails.java | 150 +- .../model/BckndGenericSecretPatchBody.java | 166 ++- .../model/BckndGenericSecretPostBody.java | 220 ++- .../model/BckndInternalResourceGroup.java | 521 ++++--- .../BckndInternalResourceGroupAnnotation.java | 207 +-- .../BckndInternalResourceGroupLabel.java | 204 +-- .../BckndListGenericSecretsResponse.java | 233 +-- .../BckndResourceGetResourcePlansValue.java | 210 +-- .../model/BckndResourceGetResponse.java | 168 ++- .../core/client/model/BckndResourceGroup.java | 463 +++--- .../client/model/BckndResourceGroupBase.java | 183 ++- .../BckndResourceGroupDeletionResponse.java | 207 +-- .../client/model/BckndResourceGroupLabel.java | 194 ++- .../client/model/BckndResourceGroupList.java | 219 ++- .../model/BckndResourceGroupPatchRequest.java | 138 +- .../model/BckndResourceGroupsPostRequest.java | 173 +-- .../client/model/BckndResourcePatchBody.java | 170 +-- .../client/model/BckndResourcePatchNodes.java | 194 ++- .../model/BckndResourcePatchResponse.java | 145 +- .../sdk/core/client/model/BckndService.java | 307 ++-- .../model/BckndServiceBrokerSecret.java | 184 ++- .../model/BckndServiceCapabilities.java | 151 +- .../model/BckndServiceCapabilitiesBasic.java | 245 ++-- .../model/BckndServiceCapabilitiesLogs.java | 159 +- .../core/client/model/BckndServiceList.java | 218 ++- .../model/BckndServiceServiceCatalogItem.java | 167 +-- ...erviceServiceCatalogItemExtendCatalog.java | 284 ++-- ...ceServiceCatalogItemExtendCredentials.java | 137 +- ...iceCatalogItemExtendCredentialsShared.java | 146 +- ...temExtendCredentialsSharedServiceUrls.java | 146 +- .../model/BckndServiceServicePlanItem.java | 256 ++-- .../BckndServiceServicePlanItemMetadata.java | 199 +-- .../ai/sdk/core/client/model/BckndTenant.java | 212 ++- .../model/BckndUsageResourcePlanItem.java | 222 +-- ...ddockerRegistrySecretCreationResponse.java | 132 +- ...ddockerRegistrySecretDeletionResponse.java | 209 +-- ...kerRegistrySecretModificationResponse.java | 211 +-- .../BcknddockerRegistrySecretStatus.java | 124 +- ...knddockerRegistrySecretStatusResponse.java | 238 +-- ...egistrySecretWithSensitiveDataRequest.java | 161 ++- ...trySecretWithSensitiveDataRequestData.java | 168 ++- ...ckndobjectStoreSecretCreationResponse.java | 131 +- ...ckndobjectStoreSecretDeletionResponse.java | 208 +-- ...objectStoreSecretModificationResponse.java | 210 +-- .../model/BckndobjectStoreSecretStatus.java | 160 +- .../BckndobjectStoreSecretStatusMetadata.java | 767 ++++++---- .../BckndobjectStoreSecretStatusResponse.java | 236 +-- ...ctStoreSecretWithSensitiveDataRequest.java | 498 ++++--- ...etWithSensitiveDataRequestForPostCall.java | 557 ++++--- .../ai/sdk/core/client/model/DSetError.java | 302 ++-- .../client/model/DSetErrorDetailsInner.java | 194 ++- .../model/DSetFileCreationResponse.java | 194 ++- .../client/model/FileDownload400Response.java | 117 +- .../ai/sdk/core/client/model/KpiApiError.java | 292 ++-- .../sdk/core/client/model/KpiColumnName.java | 43 +- .../core/client/model/KpiGet400Response.java | 116 +- .../core/client/model/KpiResultRowItem.java | 72 +- .../sdk/core/client/model/KpiResultSet.java | 144 +- ...KubesubmitV4ApplicationsCreateRequest.java | 371 ++--- ...tV4DockerRegistrySecretsCreateRequest.java | 212 +-- .../sdk/core/client/model/MetaAPIVersion.java | 181 ++- .../ai/sdk/core/client/model/MetaAiApi.java | 209 +-- .../client/model/MetaAiApiCapabilities.java | 422 +++--- .../MetaAiApiCapabilitiesBulkUpdates.java | 158 +- .../model/MetaAiApiCapabilitiesLogs.java | 151 +- .../core/client/model/MetaAiApiLimits.java | 192 ++- .../model/MetaAiApiLimitsDeployments.java | 124 +- .../model/MetaAiApiLimitsExecutions.java | 119 +- .../MetaAiApiLimitsTimeToLiveDeployments.java | 164 +-- .../sdk/core/client/model/MetaApiError.java | 292 ++-- .../core/client/model/MetaCapabilities.java | 278 ++-- .../sdk/core/client/model/MetaExtensions.java | 215 ++- .../client/model/MetaExtensionsAnalytics.java | 140 +- .../client/model/MetaExtensionsDataset.java | 210 ++- .../MetaExtensionsDatasetCapabilities.java | 196 +-- .../model/MetaExtensionsDatasetLimits.java | 216 +-- .../client/model/MetaExtensionsMetrics.java | 176 ++- .../MetaExtensionsMetricsCapabilities.java | 129 +- .../core/client/model/MetaGet404Response.java | 116 +- .../client/model/MetricsFind400Response.java | 117 +- .../ai/sdk/core/client/model/RTAArtifact.java | 514 +++---- .../core/client/model/RTAArtifactLabel.java | 193 ++- .../core/client/model/RTABackendDetails.java | 115 +- .../sdk/core/client/model/RTADeployment.java | 733 +++++----- .../client/model/RTADeploymentDetails.java | 150 +- .../ai/sdk/core/client/model/RTAError.java | 292 ++-- .../core/client/model/RTAErrorResponse.java | 116 +- .../sdk/core/client/model/RTAExecutable.java | 637 ++++---- .../model/RTAExecutableArgumentBinding.java | 203 ++- .../client/model/RTAExecutableArtifact.java | 249 ++-- .../client/model/RTAExecutableParameter.java | 282 ++-- .../sdk/core/client/model/RTAExecution.java | 604 ++++---- .../RTAInputArtifactArgumentBinding.java | 245 ++-- .../ai/sdk/core/client/model/RTALabel.java | 193 ++- .../core/client/model/RTALogCommonData.java | 126 +- .../client/model/RTALogCommonResponse.java | 117 +- .../client/model/RTALogCommonResultItem.java | 151 +- .../core/client/model/RTAModelBaseData.java | 334 ++--- .../core/client/model/RTAModelVersion.java | 193 ++- .../RTAOutputArtifactArgumentBinding.java | 188 +-- .../ai/sdk/core/client/model/RTAScenario.java | 384 ++--- .../sdk/core/client/model/TrckApiError.java | 303 ++-- .../client/model/TrckCustomInfoObject.java | 194 ++- .../model/TrckDeleteMetricsResponse.java | 151 +- .../model/TrckDetailsErrorResponse.java | 149 +- .../core/client/model/TrckExecutionId.java | 72 +- .../sdk/core/client/model/TrckGetMetric.java | 334 ++--- .../client/model/TrckGetMetricResource.java | 265 ++-- .../model/TrckGetMetricResourceList.java | 200 +-- .../ai/sdk/core/client/model/TrckLabel.java | 200 +-- .../ai/sdk/core/client/model/TrckMetric.java | 312 ++-- .../core/client/model/TrckMetricResource.java | 262 ++-- .../sap/ai/sdk/core/client/model/TrckTag.java | 194 ++- .../ai/sdk/core/client/model/TrckTagName.java | 73 +- .../ai/sdk/core/client/ArtifactUnitTest.java | 15 +- .../core/client/ConfigurationUnitTest.java | 10 +- .../sdk/core/client/DeploymentUnitTest.java | 6 +- .../ai/sdk/core/client/ExecutionUnitTest.java | 6 +- .../ai/sdk/core/client/ScenarioUnitTest.java | 2 +- 240 files changed, 34650 insertions(+), 31211 deletions(-) diff --git a/core/pom.xml b/core/pom.xml index d6eefb3b..841ffe8e 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -180,14 +180,6 @@ - - - com.diffplug.spotless - spotless-maven-plugin - - true - - diff --git a/core/src/main/java/com/sap/ai/sdk/core/Core.java b/core/src/main/java/com/sap/ai/sdk/core/Core.java index 719585dc..896d0c0f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/Core.java +++ b/core/src/main/java/com/sap/ai/sdk/core/Core.java @@ -62,7 +62,8 @@ public static ApiClient getOrchestrationClient(@Nonnull final String resourceGro */ private static String getOrchestrationDeployment(@Nonnull final String resourceGroup) throws NoSuchElementException { - final var deployments = new DeploymentApi(getClient(getDestination())).deploymentQuery(resourceGroup); + final var deployments = + new DeploymentApi(getClient(getDestination())).deploymentQuery(resourceGroup); return deployments.getResources().stream() .filter(deployment -> "orchestration".equals(deployment.getScenarioId())) 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..34f58d07 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 @@ -1,12 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndAllArgoCDApplicationData; import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationBaseData; import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationCreationResponse; @@ -15,515 +9,708 @@ import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationModificationResponse; import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationRefreshResponse; import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationStatus; -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; import com.sap.ai.sdk.core.client.model.KubesubmitV4ApplicationsCreateRequest; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ApplicationApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ApplicationApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ApplicationApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Create an application

- *

Create an ArgoCD application to synchronise a repository.

- *

200 - The ArgoCD application has been created and will be eventually synchronised with the repository. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param kubesubmitV4ApplicationsCreateRequest (required) - The value for the parameter kubesubmitV4ApplicationsCreateRequest - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDApplicationCreationResponse - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Create an application

- *

Create an ArgoCD application to synchronise a repository.

- *

200 - The ArgoCD application has been created and will be eventually synchronised with the repository. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param kubesubmitV4ApplicationsCreateRequest - * The value for the parameter kubesubmitV4ApplicationsCreateRequest - * @return BckndArgoCDApplicationCreationResponse - * @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); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ApplicationApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ApplicationApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Create an application + * + *

Create an ArgoCD application to synchronise a repository. + * + *

200 - The ArgoCD application has been created and will be eventually synchronised + * with the repository. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param kubesubmitV4ApplicationsCreateRequest (required) The value for the parameter + * kubesubmitV4ApplicationsCreateRequest + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDApplicationCreationResponse + * @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 { + 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"); } - /** - *

Delete application

- *

Delete an ArgoCD application

- *

200 - The argoCD application has been deleted successfully. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName (required) - Name of the ArgoCD application - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDApplicationDeletionResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("applicationName", applicationName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications/{applicationName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Create an application + * + *

Create an ArgoCD application to synchronise a repository. + * + *

200 - The ArgoCD application has been created and will be eventually synchronised + * with the repository. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param kubesubmitV4ApplicationsCreateRequest The value for the parameter + * kubesubmitV4ApplicationsCreateRequest + * @return BckndArgoCDApplicationCreationResponse + * @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); + } + + /** + * Delete application + * + *

Delete an ArgoCD application + * + *

200 - The argoCD application has been deleted successfully. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName (required) Name of the ArgoCD application + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDApplicationDeletionResponse + * @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 { + 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"); } - /** - *

Delete application

- *

Delete an ArgoCD application

- *

200 - The argoCD application has been deleted successfully. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName - * Name of the ArgoCD application - * @return BckndArgoCDApplicationDeletionResponse - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("applicationName", applicationName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications/{applicationName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Delete application + * + *

Delete an ArgoCD application + * + *

200 - The argoCD application has been deleted successfully. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName Name of the ArgoCD application + * @return BckndArgoCDApplicationDeletionResponse + * @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); + } + + /** + * Get ArgoCD application + * + *

Retrieve the ArgoCD application details. + * + *

200 - The application has been found and returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName (required) Name of the ArgoCD application + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDApplicationData + * @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 { + 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"); } - /** - *

Get ArgoCD application

- *

Retrieve the ArgoCD application details.

- *

200 - The application has been found and returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName (required) - Name of the ArgoCD application - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDApplicationData - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("applicationName", applicationName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications/{applicationName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("applicationName", applicationName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications/{applicationName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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 ArgoCD application + * + *

Retrieve the ArgoCD application details. + * + *

200 - The application has been found and returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName Name of the ArgoCD application + * @return BckndArgoCDApplicationData + * @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); + } + + /** + * Return all applications + * + *

Return all Argo CD application data objects. + * + *

200 - All applications have been found and returned. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param $top (optional) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $count (optional) When the $count field is set to false, the response contains a count + * of the items present in the response. When the $count field is set to true, the response + * contains a count of all the items present on the server, and not just the ones in the + * response. When the $count field is not passed, it is false by default. + * @return BckndAllArgoCDApplicationData + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications").build().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, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); + + 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); + } + + /** + * Return all applications + * + *

Return all Argo CD application data objects. + * + *

200 - All applications have been found and returned. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndAllArgoCDApplicationData + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll() + throws OpenApiRequestException { + return kubesubmitV4ApplicationsGetAll(null, null, null, null); + } + + /** + * Returns the ArgoCD application status + * + *

Returns the ArgoCD application health and sync status. + * + *

200 - The application status has been found and returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName (required) Name of the ArgoCD application + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDApplicationStatus + * @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 { + 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"); } - /** - *

Get ArgoCD application

- *

Retrieve the ArgoCD application details.

- *

200 - The application has been found and returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName - * Name of the ArgoCD application - * @return BckndArgoCDApplicationData - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("applicationName", applicationName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications/{applicationName}/status") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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); + } + + /** + * Returns the ArgoCD application status + * + *

Returns the ArgoCD application health and sync status. + * + *

200 - The application status has been found and returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName Name of the ArgoCD application + * @return BckndArgoCDApplicationStatus + * @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); + } + + /** + * Makes ArgoDC refresh the specified application + * + *

Schedules a refresh of the specified application that will be picked up by ArgoCD + * asynchronously + * + *

202 - A refresh of the application has been scheduled + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName (required) Name of the ArgoCD application + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDApplicationRefreshResponse + * @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 { + 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"); } - /** - *

Return all applications

- *

Return all Argo CD application data objects.

- *

200 - All applications have been found and returned. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param $top (optional) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $count (optional) - When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default. - * @return BckndAllArgoCDApplicationData - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications").build().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, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); - - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("applicationName", applicationName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications/{applicationName}/refresh") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Makes ArgoDC refresh the specified application + * + *

Schedules a refresh of the specified application that will be picked up by ArgoCD + * asynchronously + * + *

202 - A refresh of the application has been scheduled + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName Name of the ArgoCD application + * @return BckndArgoCDApplicationRefreshResponse + * @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); + } + + /** + * Update the ArgoCD application. + * + *

Update the referenced ArgoCD application to synchronize the repository. + * + *

200 - The ArgoCD application has been created and will be eventually synchronised + * with the repository. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName (required) Name of the ArgoCD application + * @param bckndArgoCDApplicationBaseData (required) The value for the parameter + * bckndArgoCDApplicationBaseData + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDApplicationModificationResponse + * @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 { + 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"); } - /** - *

Return all applications

- *

Return all Argo CD application data objects.

- *

200 - All applications have been found and returned. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndAllArgoCDApplicationData - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndAllArgoCDApplicationData kubesubmitV4ApplicationsGetAll() throws OpenApiRequestException { - return kubesubmitV4ApplicationsGetAll(null, null, null, null); + // verify the required parameter 'bckndArgoCDApplicationBaseData' is set + if (bckndArgoCDApplicationBaseData == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'bckndArgoCDApplicationBaseData' when calling kubesubmitV4ApplicationsUpdate"); } - /** - *

Returns the ArgoCD application status

- *

Returns the ArgoCD application health and sync status.

- *

200 - The application status has been found and returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName (required) - Name of the ArgoCD application - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDApplicationStatus - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("applicationName", applicationName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications/{applicationName}/status").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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); - } - - /** - *

Returns the ArgoCD application status

- *

Returns the ArgoCD application health and sync status.

- *

200 - The application status has been found and returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName - * Name of the ArgoCD application - * @return BckndArgoCDApplicationStatus - * @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); - } - - /** - *

Makes ArgoDC refresh the specified application

- *

Schedules a refresh of the specified application that will be picked up by ArgoCD asynchronously

- *

202 - A refresh of the application has been scheduled - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName (required) - Name of the ArgoCD application - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDApplicationRefreshResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("applicationName", applicationName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications/{applicationName}/refresh").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Makes ArgoDC refresh the specified application

- *

Schedules a refresh of the specified application that will be picked up by ArgoCD asynchronously

- *

202 - A refresh of the application has been scheduled - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName - * Name of the ArgoCD application - * @return BckndArgoCDApplicationRefreshResponse - * @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); - } - - /** - *

Update the ArgoCD application.

- *

Update the referenced ArgoCD application to synchronize the repository.

- *

200 - The ArgoCD application has been created and will be eventually synchronised with the repository. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName (required) - Name of the ArgoCD application - * @param bckndArgoCDApplicationBaseData (required) - The value for the parameter bckndArgoCDApplicationBaseData - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDApplicationModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'bckndArgoCDApplicationBaseData' is set - if (bckndArgoCDApplicationBaseData == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDApplicationBaseData' when calling kubesubmitV4ApplicationsUpdate"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("applicationName", applicationName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/applications/{applicationName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Update the ArgoCD application.

- *

Update the referenced ArgoCD application to synchronize the repository.

- *

200 - The ArgoCD application has been created and will be eventually synchronised with the repository. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param applicationName - * Name of the ArgoCD application - * @param bckndArgoCDApplicationBaseData - * The value for the parameter bckndArgoCDApplicationBaseData - * @return BckndArgoCDApplicationModificationResponse - * @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); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("applicationName", applicationName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/applications/{applicationName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference + localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Update the ArgoCD application. + * + *

Update the referenced ArgoCD application to synchronize the repository. + * + *

200 - The ArgoCD application has been created and will be eventually synchronised + * with the repository. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param applicationName Name of the ArgoCD application + * @param bckndArgoCDApplicationBaseData The value for the parameter + * bckndArgoCDApplicationBaseData + * @return BckndArgoCDApplicationModificationResponse + * @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); + } } 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..41c8f08f 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 @@ -1,355 +1,471 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiArtifact; import com.sap.ai.sdk.core.client.model.AiArtifactCreationResponse; import com.sap.ai.sdk.core.client.model.AiArtifactList; import com.sap.ai.sdk.core.client.model.AiArtifactPostData; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ArtifactApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ArtifactApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ArtifactApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ArtifactApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get number of artifacts + * + *

Retrieve the number of available artifacts that match the specified filter criteria. Filter + * criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact + * labels. Search by substring of artifact name or description is also possible. + * + *

200 - Number of artifacts + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param scenarioId (optional) Scenario identifier + * @param executionId (optional) Execution identifier + * @param name (optional) Artifact name + * @param kind (optional) Kind of the artifact + * @param $search (optional) Generic search term to be looked for in various attributes + * @param searchCaseInsensitive (optional, default to false) indicates whether the search should + * be case insensitive + * @param artifactLabelSelector (optional Filter artifact by labels. Pass in expressions in the + * form of \"key=value\" or \"key!=value\" separated by commas + * and the result will be filtered to only those resources that have labels that match all + * provided expressions (i.e. logical AND). The maximum number of labels permitted for + * filtering is 10. Special handling is required when using comma in the value field. This is + * because commas are also used as a separator for multiple \"key=value\" + * entries. Therefore, if the value contains a comma, then replace this with the string + * \"{comma}\" in the value field. + * @return Integer + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ArtifactApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/artifacts/$count").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "executionId", executionId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "name", name)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "kind", kind)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "artifactLabelSelector", + artifactLabelSelector)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"text/plain", "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 number of artifacts + * + *

Retrieve the number of available artifacts that match the specified filter criteria. Filter + * criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact + * labels. Search by substring of artifact name or description is also possible. + * + *

200 - Number of artifacts + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return Integer + * @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); + } + + /** + * Register artifact + * + *

Register an artifact for use in a configuration, for example a model or a dataset. + * + *

201 - The artifact has been registered successfully + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiArtifactPostData The value for the parameter aiArtifactPostData + * @return AiArtifactCreationResponse + * @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 { + 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"); } - - /** - *

Get number of artifacts

- *

Retrieve the number of available artifacts that match the specified filter criteria. Filter criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact labels. Search by substring of artifact name or description is also possible.

- *

200 - Number of artifacts - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param scenarioId (optional) - Scenario identifier - * @param executionId (optional) - Execution identifier - * @param name (optional) - Artifact name - * @param kind (optional) - Kind of the artifact - * @param $search (optional) - Generic search term to be looked for in various attributes - * @param searchCaseInsensitive (optional, default to false) - indicates whether the search should be case insensitive - * @param artifactLabelSelector (optional - Filter artifact by labels. Pass in expressions in the form of \"key=value\" or \"key!=value\" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND). The maximum number of labels permitted for filtering is 10. Special handling is required when using comma in the value field. This is because commas are also used as a separator for multiple \"key=value\" entries. Therefore, if the value contains a comma, then replace this with the string \"{comma}\" in the value field. - * @return Integer - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts/$count").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "executionId", executionId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "name", name)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "kind", kind)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "artifactLabelSelector", artifactLabelSelector)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "text/plain", "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); + // verify the required parameter 'aiArtifactPostData' is set + if (aiArtifactPostData == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiArtifactPostData' when calling artifactCreate"); } - /** - *

Get number of artifacts

- *

Retrieve the number of available artifacts that match the specified filter criteria. Filter criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact labels. Search by substring of artifact name or description is also possible.

- *

200 - Number of artifacts - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return Integer - * @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); - } - /** - *

Register artifact

- *

Register an artifact for use in a configuration, for example a model or a dataset.

- *

201 - The artifact has been registered successfully - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiArtifactPostData - * The value for the parameter aiArtifactPostData - * @return AiArtifactCreationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiArtifactPostData' is set - if (aiArtifactPostData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiArtifactPostData' when calling artifactCreate"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get artifact by ID + * + *

Retrieve details for artifact with artifactId. + * + *

200 - An artifact + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup (required) Specify a resource group id + * @param artifactId (required) Artifact identifier + * @param $expand (optional) expand detailed information on scenario + * @return AiArtifact + * @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 { + 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"); } - /** - *

Get artifact by ID

- *

Retrieve details for artifact with artifactId.

- *

200 - An artifact - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup (required) - Specify a resource group id - * @param artifactId (required) - Artifact identifier - * @param $expand (optional) - expand detailed information on scenario - * @return AiArtifact - * @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 { - 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"); - } - - // verify the required parameter 'artifactId' is set - if (artifactId == null) { - throw new OpenApiRequestException("Missing the required parameter 'artifactId' when calling artifactGet"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("artifactId", artifactId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts/{artifactId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // verify the required parameter 'artifactId' is set + if (artifactId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'artifactId' when calling artifactGet"); } - /** - *

Get artifact by ID

- *

Retrieve details for artifact with artifactId.

- *

200 - An artifact - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param artifactId - * Artifact identifier - * @return AiArtifact - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("artifactId", artifactId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/artifacts/{artifactId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 artifact by ID + * + *

Retrieve details for artifact with artifactId. + * + *

200 - An artifact + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param artifactId Artifact identifier + * @return AiArtifact + * @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); + } + + /** + * Get list of artifacts + * + *

Retrieve a list of artifacts that matches the specified filter criteria. Filter criteria + * include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. Use + * top/skip parameters to paginate the result list. Search by substring of artifact name or + * description, if required. + * + *

200 - A list of artifacts + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param scenarioId (optional) Scenario identifier + * @param executionId (optional) Execution identifier + * @param name (optional) Artifact name + * @param kind (optional) Kind of the artifact + * @param artifactLabelSelector (optional Filter artifact by labels. Pass in expressions in the + * form of \"key=value\" or \"key!=value\" separated by commas + * and the result will be filtered to only those resources that have labels that match all + * provided expressions (i.e. logical AND). The maximum number of labels permitted for + * filtering is 10. Special handling is required when using comma in the value field. This is + * because commas are also used as a separator for multiple \"key=value\" + * entries. Therefore, if the value contains a comma, then replace this with the string + * \"{comma}\" in the value field. + * @param $top (optional, default to 10000) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $search (optional) Generic search term to be looked for in various attributes + * @param searchCaseInsensitive (optional, default to false) indicates whether the search should + * be case insensitive + * @param $expand (optional) expand detailed information on scenario + * @return AiArtifactList + * @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 { + 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"); } - /** - *

Get list of artifacts

- *

Retrieve a list of artifacts that matches the specified filter criteria. Filter criteria include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. Use top/skip parameters to paginate the result list. Search by substring of artifact name or description, if required.

- *

200 - A list of artifacts - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param scenarioId (optional) - Scenario identifier - * @param executionId (optional) - Execution identifier - * @param name (optional) - Artifact name - * @param kind (optional) - Kind of the artifact - * @param artifactLabelSelector (optional - Filter artifact by labels. Pass in expressions in the form of \"key=value\" or \"key!=value\" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND). The maximum number of labels permitted for filtering is 10. Special handling is required when using comma in the value field. This is because commas are also used as a separator for multiple \"key=value\" entries. Therefore, if the value contains a comma, then replace this with the string \"{comma}\" in the value field. - * @param $top (optional, default to 10000) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $search (optional) - Generic search term to be looked for in various attributes - * @param searchCaseInsensitive (optional, default to false) - indicates whether the search should be case insensitive - * @param $expand (optional) - expand detailed information on scenario - * @return AiArtifactList - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "executionId", executionId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "name", name)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "kind", kind)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "artifactLabelSelector", artifactLabelSelector)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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 list of artifacts

- *

Retrieve a list of artifacts that matches the specified filter criteria. Filter criteria include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. Use top/skip parameters to paginate the result list. Search by substring of artifact name or description, if required.

- *

200 - A list of artifacts - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return AiArtifactList - * @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); - } + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/artifacts").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "executionId", executionId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "name", name)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "kind", kind)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "artifactLabelSelector", + artifactLabelSelector)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of artifacts + * + *

Retrieve a list of artifacts that matches the specified filter criteria. Filter criteria + * include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. Use + * top/skip parameters to paginate the result list. Search by substring of artifact name or + * description, if required. + * + *

200 - A list of artifacts + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return AiArtifactList + * @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); + } } 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..2d5392e8 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 @@ -1,337 +1,436 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiConfiguration; import com.sap.ai.sdk.core.client.model.AiConfigurationBaseData; import com.sap.ai.sdk.core.client.model.AiConfigurationCreationResponse; import com.sap.ai.sdk.core.client.model.AiConfigurationList; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ConfigurationApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ConfigurationApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ConfigurationApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ConfigurationApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get number of configurations + * + *

Retrieve the number of available configurations that match the specified filter criteria. + * Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration + * name is also possible. + * + *

200 - Number of configurations + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param scenarioId (optional) Scenario identifier + * @param $search (optional) Generic search term to be looked for in various attributes + * @param searchCaseInsensitive (optional, default to false) indicates whether the search should + * be case insensitive + * @param executableIds (optional Limit query to only these executable IDs + * @return Integer + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ConfigurationApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/configurations/$count").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executableIds", + executableIds)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"text/plain", "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 number of configurations + * + *

Retrieve the number of available configurations that match the specified filter criteria. + * Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration + * name is also possible. + * + *

200 - Number of configurations + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return Integer + * @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); + } + + /** + * Create configuration + * + *

Create a new configuration linked to a specific scenario and executable for use in an + * execution or deployment. + * + *

201 - The created configuration + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiConfigurationBaseData The value for the parameter aiConfigurationBaseData + * @return AiConfigurationCreationResponse + * @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 { + 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"); } - - /** - *

Get number of configurations

- *

Retrieve the number of available configurations that match the specified filter criteria. Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration name is also possible.

- *

200 - Number of configurations - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param scenarioId (optional) - Scenario identifier - * @param $search (optional) - Generic search term to be looked for in various attributes - * @param searchCaseInsensitive (optional, default to false) - indicates whether the search should be case insensitive - * @param executableIds (optional - Limit query to only these executable IDs - * @return Integer - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations/$count").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executableIds", executableIds)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "text/plain", "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); + // verify the required parameter 'aiConfigurationBaseData' is set + if (aiConfigurationBaseData == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiConfigurationBaseData' when calling configurationCreate"); } - /** - *

Get number of configurations

- *

Retrieve the number of available configurations that match the specified filter criteria. Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration name is also possible.

- *

200 - Number of configurations - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return Integer - * @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); - } - /** - *

Create configuration

- *

Create a new configuration linked to a specific scenario and executable for use in an execution or deployment.

- *

201 - The created configuration - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiConfigurationBaseData - * The value for the parameter aiConfigurationBaseData - * @return AiConfigurationCreationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiConfigurationBaseData' is set - if (aiConfigurationBaseData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiConfigurationBaseData' when calling configurationCreate"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get configuration by ID + * + *

Retrieve details for configuration with configurationId. + * + *

200 - A configuration + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup (required) Specify a resource group id + * @param configurationId (required) Configuration identifier + * @param $expand (optional) expand detailed information on scenario + * @return AiConfiguration + * @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 { + 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"); } - /** - *

Get configuration by ID

- *

Retrieve details for configuration with configurationId.

- *

200 - A configuration - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup (required) - Specify a resource group id - * @param configurationId (required) - Configuration identifier - * @param $expand (optional) - expand detailed information on scenario - * @return AiConfiguration - * @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 { - 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"); - } - - // verify the required parameter 'configurationId' is set - if (configurationId == null) { - throw new OpenApiRequestException("Missing the required parameter 'configurationId' when calling configurationGet"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("configurationId", configurationId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations/{configurationId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // verify the required parameter 'configurationId' is set + if (configurationId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'configurationId' when calling configurationGet"); } - /** - *

Get configuration by ID

- *

Retrieve details for configuration with configurationId.

- *

200 - A configuration - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param configurationId - * Configuration identifier - * @return AiConfiguration - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("configurationId", configurationId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/configurations/{configurationId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 configuration by ID + * + *

Retrieve details for configuration with configurationId. + * + *

200 - A configuration + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param configurationId Configuration identifier + * @return AiConfiguration + * @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); + } + + /** + * Get list of configurations + * + *

Retrieve a list of configurations. Filter results by scenario ID or a list of executable + * IDs. Search for configurations containing the search string as substring in the configuration + * name. + * + *

200 - A list of configurations + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param scenarioId (optional) Scenario identifier + * @param $top (optional, default to 10000) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param executableIds (optional Limit query to only these executable IDs + * @param $search (optional) Generic search term to be looked for in various attributes + * @param searchCaseInsensitive (optional, default to false) indicates whether the search should + * be case insensitive + * @param $expand (optional) expand detailed information on scenario + * @return AiConfigurationList + * @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 { + 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"); } - /** - *

Get list of configurations

- *

Retrieve a list of configurations. Filter results by scenario ID or a list of executable IDs. Search for configurations containing the search string as substring in the configuration name.

- *

200 - A list of configurations - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param scenarioId (optional) - Scenario identifier - * @param $top (optional, default to 10000) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param executableIds (optional - Limit query to only these executable IDs - * @param $search (optional) - Generic search term to be looked for in various attributes - * @param searchCaseInsensitive (optional, default to false) - indicates whether the search should be case insensitive - * @param $expand (optional) - expand detailed information on scenario - * @return AiConfigurationList - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executableIds", executableIds)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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 list of configurations

- *

Retrieve a list of configurations. Filter results by scenario ID or a list of executable IDs. Search for configurations containing the search string as substring in the configuration name.

- *

200 - A list of configurations - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return AiConfigurationList - * @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); - } + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/configurations").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executableIds", + executableIds)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$search", $search)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "searchCaseInsensitive", searchCaseInsensitive)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$expand", $expand)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of configurations + * + *

Retrieve a list of configurations. Filter results by scenario ID or a list of executable + * IDs. Search for configurations containing the search string as substring in the configuration + * name. + * + *

200 - A list of configurations + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return AiConfigurationList + * @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); + } } 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..669c97ad 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 @@ -1,12 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiDeploymentBulkModificationRequest; import com.sap.ai.sdk.core.client.model.AiDeploymentBulkModificationResponse; import com.sap.ai.sdk.core.client.model.AiDeploymentCreationRequest; @@ -16,573 +10,780 @@ import com.sap.ai.sdk.core.client.model.AiDeploymentModificationRequest; import com.sap.ai.sdk.core.client.model.AiDeploymentModificationResponse; import com.sap.ai.sdk.core.client.model.AiDeploymentResponseWithDetails; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; -import java.time.OffsetDateTime; -import com.sap.ai.sdk.core.client.model.RTAErrorResponse; import com.sap.ai.sdk.core.client.model.RTALogCommonResponse; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class DeploymentApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public DeploymentApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public DeploymentApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public DeploymentApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Patch multiple deployments + * + *

Update status of multiple deployments. stop or delete multiple deployments. + * + *

202 - The modification of the deployments have been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiDeploymentBulkModificationRequest The value for the parameter + * aiDeploymentBulkModificationRequest + * @return AiDeploymentBulkModificationResponse + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public DeploymentApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + // verify the required parameter 'aiDeploymentBulkModificationRequest' is set + if (aiDeploymentBulkModificationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiDeploymentBulkModificationRequest' when calling deploymentBatchModify"); } - /** - *

Patch multiple deployments

- *

Update status of multiple deployments. stop or delete multiple deployments.

- *

202 - The modification of the deployments have been scheduled successfully - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiDeploymentBulkModificationRequest - * The value for the parameter aiDeploymentBulkModificationRequest - * @return AiDeploymentBulkModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiDeploymentBulkModificationRequest' is set - if (aiDeploymentBulkModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentBulkModificationRequest' when calling deploymentBatchModify"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/merge-patch+json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/merge-patch+json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get number of deployments + * + *

Retrieve the number of available deployments. The number can be filtered by scenarioId, + * configurationId, executableIdsList or by deployment status. + * + *

200 - Number of deployments + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param executableIds (optional Limit query to only these executable IDs + * @param configurationId (optional) Configuration identifier + * @param scenarioId (optional) Scenario identifier + * @param status (optional) Filter by status + * @return Integer + * @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 { + 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"); } - /** - *

Get number of deployments

- *

Retrieve the number of available deployments. The number can be filtered by scenarioId, configurationId, executableIdsList or by deployment status.

- *

200 - Number of deployments - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param executableIds (optional - Limit query to only these executable IDs - * @param configurationId (optional) - Configuration identifier - * @param scenarioId (optional) - Scenario identifier - * @param status (optional) - Filter by status - * @return Integer - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/$count").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executableIds", executableIds)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "text/plain", "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); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments/$count").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executableIds", + executableIds)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"text/plain", "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 number of deployments + * + *

Retrieve the number of available deployments. The number can be filtered by scenarioId, + * configurationId, executableIdsList or by deployment status. + * + *

200 - Number of deployments + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return Integer + * @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); + } + + /** + * Create deployment + * + *

Create a deployment using the configuration specified by configurationId after synchronously + * checking the correctness of the configuration. + * + *

202 - The deployment has been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiDeploymentCreationRequest The value for the parameter aiDeploymentCreationRequest + * @return AiDeploymentCreationResponse + * @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 { + 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"); } - /** - *

Get number of deployments

- *

Retrieve the number of available deployments. The number can be filtered by scenarioId, configurationId, executableIdsList or by deployment status.

- *

200 - Number of deployments - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return Integer - * @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); + // verify the required parameter 'aiDeploymentCreationRequest' is set + if (aiDeploymentCreationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiDeploymentCreationRequest' when calling deploymentCreate"); } - /** - *

Create deployment

- *

Create a deployment using the configuration specified by configurationId after synchronously checking the correctness of the configuration.

- *

202 - The deployment has been scheduled successfully - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiDeploymentCreationRequest - * The value for the parameter aiDeploymentCreationRequest - * @return AiDeploymentCreationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiDeploymentCreationRequest' is set - if (aiDeploymentCreationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentCreationRequest' when calling deploymentCreate"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Mark deployment as deleted + * + *

Mark deployment with deploymentId as deleted. + * + *

202 - The deletion of the deployment has been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + *

412 - The service didn't meet the precondition needed to execute this operation + * + * @param aiResourceGroup Specify a resource group id + * @param deploymentId Deployment identifier + * @return AiDeploymentDeletionResponse + * @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 { + 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"); } - /** - *

Mark deployment as deleted

- *

Mark deployment with deploymentId as deleted.

- *

202 - The deletion of the deployment has been scheduled successfully - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - *

412 - The service didn't meet the precondition needed to execute this operation - * @param aiResourceGroup - * Specify a resource group id - * @param deploymentId - * Deployment identifier - * @return AiDeploymentDeletionResponse - * @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 { - 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"); - } - - // verify the required parameter 'deploymentId' is set - if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentDelete"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("deploymentId", deploymentId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // verify the required parameter 'deploymentId' is set + if (deploymentId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'deploymentId' when calling deploymentDelete"); } - /** - *

Get information about specific deployment

- *

Retrieve details for execution with deploymentId.

- *

200 - Information about the deployment - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup (required) - Specify a resource group id - * @param deploymentId (required) - Deployment identifier - * @param $select (optional) - Allows to request a specified set of properties for each entity - * @return AiDeploymentResponseWithDetails - * @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 { - 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"); - } - - // verify the required parameter 'deploymentId' is set - if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentGet"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("deploymentId", deploymentId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("deploymentId", deploymentId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get information about specific deployment + * + *

Retrieve details for execution with deploymentId. + * + *

200 - Information about the deployment + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup (required) Specify a resource group id + * @param deploymentId (required) Deployment identifier + * @param $select (optional) Allows to request a specified set of properties for each entity + * @return AiDeploymentResponseWithDetails + * @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 { + 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"); } - /** - *

Get information about specific deployment

- *

Retrieve details for execution with deploymentId.

- *

200 - Information about the deployment - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param deploymentId - * Deployment identifier - * @return AiDeploymentResponseWithDetails - * @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); + // verify the required parameter 'deploymentId' is set + if (deploymentId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'deploymentId' when calling deploymentGet"); } - /** - *

Update target status or configuration of a deployment

- *

Update target status of a deployment to stop a deployment or change the configuration to be used by the deployment after synchronously checking the correctness of the configuration. A change of configuration is only allowed for RUNNING and PENDING deployments.

- *

202 - The modification of the deployment has been scheduled successfully - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - *

412 - The service didn't meet the precondition needed to execute this operation - * @param aiResourceGroup - * Specify a resource group id - * @param deploymentId - * Deployment identifier - * @param aiDeploymentModificationRequest - * The value for the parameter aiDeploymentModificationRequest - * @return AiDeploymentModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'deploymentId' is set - if (deploymentId == null) { - throw new OpenApiRequestException("Missing the required parameter 'deploymentId' when calling deploymentModify"); - } - - // verify the required parameter 'aiDeploymentModificationRequest' is set - if (aiDeploymentModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiDeploymentModificationRequest' when calling deploymentModify"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("deploymentId", deploymentId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("deploymentId", deploymentId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 information about specific deployment + * + *

Retrieve details for execution with deploymentId. + * + *

200 - Information about the deployment + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param deploymentId Deployment identifier + * @return AiDeploymentResponseWithDetails + * @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); + } + + /** + * Update target status or configuration of a deployment + * + *

Update target status of a deployment to stop a deployment or change the configuration to be + * used by the deployment after synchronously checking the correctness of the configuration. A + * change of configuration is only allowed for RUNNING and PENDING deployments. + * + *

202 - The modification of the deployment has been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + *

412 - The service didn't meet the precondition needed to execute this operation + * + * @param aiResourceGroup Specify a resource group id + * @param deploymentId Deployment identifier + * @param aiDeploymentModificationRequest The value for the parameter + * aiDeploymentModificationRequest + * @return AiDeploymentModificationResponse + * @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 { + 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"); } - /** - *

Get list of deployments

- *

Retrieve a list of deployments that match the specified filter criteria. Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a deployment status. With top/skip parameters it is possible to paginate the result list. With select parameter it is possible to select only status.

- *

200 - A list of deployments - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param executableIds (optional - Limit query to only these executable IDs - * @param configurationId (optional) - Configuration identifier - * @param scenarioId (optional) - Scenario identifier - * @param status (optional) - Filter by status - * @param $top (optional, default to 10000) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $select (optional) - Allows to request a specified set of properties for each entity - * @return AiDeploymentList - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executableIds", executableIds)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // verify the required parameter 'deploymentId' is set + if (deploymentId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'deploymentId' when calling deploymentModify"); } - /** - *

Get list of deployments

- *

Retrieve a list of deployments that match the specified filter criteria. Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a deployment status. With top/skip parameters it is possible to paginate the result list. With select parameter it is possible to select only status.

- *

200 - A list of deployments - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return AiDeploymentList - * @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); + // verify the required parameter 'aiDeploymentModificationRequest' is set + if (aiDeploymentModificationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiDeploymentModificationRequest' when calling deploymentModify"); } - /** - *

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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("deploymentId", deploymentId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments/{deploymentId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get list of deployments + * + *

Retrieve a list of deployments that match the specified filter criteria. Filter criteria + * include a list of executableIds, a scenarioId, a configurationId, or a deployment status. With + * top/skip parameters it is possible to paginate the result list. With select parameter it is + * possible to select only status. + * + *

200 - A list of deployments + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param executableIds (optional Limit query to only these executable IDs + * @param configurationId (optional) Configuration identifier + * @param scenarioId (optional) Scenario identifier + * @param status (optional) Filter by status + * @param $top (optional, default to 10000) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $select (optional) Allows to request a specified set of properties for each entity + * @return AiDeploymentList + * @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 { + 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"); } - /** - *

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); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/deployments").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executableIds", + executableIds)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of deployments + * + *

Retrieve a list of deployments that match the specified filter criteria. Filter criteria + * include a list of executableIds, a scenarioId, a configurationId, or a deployment status. With + * top/skip parameters it is possible to paginate the result list. With select parameter it is + * possible to select only status. + * + *

200 - A list of deployments + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return AiDeploymentList + * @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); + } } 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..ef3a9714 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 @@ -1,13 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretCreationResponse; import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretDeletionResponse; import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretModificationResponse; @@ -15,383 +8,541 @@ import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretStatusResponse; import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretWithSensitiveDataRequest; import com.sap.ai.sdk.core.client.model.KubesubmitV4DockerRegistrySecretsCreateRequest; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class DockerRegistrySecretApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public DockerRegistrySecretApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public DockerRegistrySecretApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Create a secret

- *

Create a secret based on the configuration in the request body.

- *

202 - The request to create a k8s secret based on the given configuration has been accepted. - *

400 - One of the following failure cases has occurred: <ul> <li> Neither JSON nor YAML was able to be parsed. <li> The request was invalidly formatted - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param kubesubmitV4DockerRegistrySecretsCreateRequest (required) - The value for the parameter kubesubmitV4DockerRegistrySecretsCreateRequest - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BcknddockerRegistrySecretCreationResponse - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Create a secret

- *

Create a secret based on the configuration in the request body.

- *

202 - The request to create a k8s secret based on the given configuration has been accepted. - *

400 - One of the following failure cases has occurred: <ul> <li> Neither JSON nor YAML was able to be parsed. <li> The request was invalidly formatted - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param kubesubmitV4DockerRegistrySecretsCreateRequest - * The value for the parameter kubesubmitV4DockerRegistrySecretsCreateRequest - * @return BcknddockerRegistrySecretCreationResponse - * @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); - } - - /** - *

Delete docker registry secret

- *

Delete a secret with the name of dockerRegistryName if it exists.

- *

202 - The request to delete the secret has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param dockerRegistryName (required) - Name of the docker Registry store for the secret. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BcknddockerRegistrySecretDeletionResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("dockerRegistryName", dockerRegistryName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets/{dockerRegistryName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public DockerRegistrySecretApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public DockerRegistrySecretApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Create a secret + * + *

Create a secret based on the configuration in the request body. + * + *

202 - The request to create a k8s secret based on the given configuration has been + * accepted. + * + *

400 - One of the following failure cases has occurred: <ul> <li> Neither + * JSON nor YAML was able to be parsed. <li> The request was invalidly formatted + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param kubesubmitV4DockerRegistrySecretsCreateRequest (required) The value for the parameter + * kubesubmitV4DockerRegistrySecretsCreateRequest + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BcknddockerRegistrySecretCreationResponse + * @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 { + 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"); } - /** - *

Delete docker registry secret

- *

Delete a secret with the name of dockerRegistryName if it exists.

- *

202 - The request to delete the secret has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param dockerRegistryName - * Name of the docker Registry store for the secret. - * @return BcknddockerRegistrySecretDeletionResponse - * @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); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Create a secret + * + *

Create a secret based on the configuration in the request body. + * + *

202 - The request to create a k8s secret based on the given configuration has been + * accepted. + * + *

400 - One of the following failure cases has occurred: <ul> <li> Neither + * JSON nor YAML was able to be parsed. <li> The request was invalidly formatted + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param kubesubmitV4DockerRegistrySecretsCreateRequest The value for the parameter + * kubesubmitV4DockerRegistrySecretsCreateRequest + * @return BcknddockerRegistrySecretCreationResponse + * @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); + } + + /** + * Delete docker registry secret + * + *

Delete a secret with the name of dockerRegistryName if it exists. + * + *

202 - The request to delete the secret has been accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param dockerRegistryName (required) Name of the docker Registry store for the secret. + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BcknddockerRegistrySecretDeletionResponse + * @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 { + 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"); } - /** - *

Returns the of metadata of secrets which match the query parameter.

- *

Retrieve the stored secret metadata which matches the parameter dockerRegistryName. The base64 encoded field for the stored secret is not returned.

- *

200 - The request was processed successfully and the metadata of the of stored secrets wil be returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param dockerRegistryName (required) - Name of the docker Registry store for the secret. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BcknddockerRegistrySecretStatus - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("dockerRegistryName", dockerRegistryName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets/{dockerRegistryName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("dockerRegistryName", dockerRegistryName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets/{dockerRegistryName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Delete docker registry secret + * + *

Delete a secret with the name of dockerRegistryName if it exists. + * + *

202 - The request to delete the secret has been accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param dockerRegistryName Name of the docker Registry store for the secret. + * @return BcknddockerRegistrySecretDeletionResponse + * @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); + } + + /** + * Returns the of metadata of secrets which match the query parameter. + * + *

Retrieve the stored secret metadata which matches the parameter dockerRegistryName. The + * base64 encoded field for the stored secret is not returned. + * + *

200 - The request was processed successfully and the metadata of the of stored + * secrets wil be returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param dockerRegistryName (required) Name of the docker Registry store for the secret. + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BcknddockerRegistrySecretStatus + * @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 { + 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"); } - /** - *

Returns the of metadata of secrets which match the query parameter.

- *

Retrieve the stored secret metadata which matches the parameter dockerRegistryName. The base64 encoded field for the stored secret is not returned.

- *

200 - The request was processed successfully and the metadata of the of stored secrets wil be returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param dockerRegistryName - * Name of the docker Registry store for the secret. - * @return BcknddockerRegistrySecretStatus - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("dockerRegistryName", dockerRegistryName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets/{dockerRegistryName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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); + } + + /** + * Returns the of metadata of secrets which match the query parameter. + * + *

Retrieve the stored secret metadata which matches the parameter dockerRegistryName. The + * base64 encoded field for the stored secret is not returned. + * + *

200 - The request was processed successfully and the metadata of the of stored + * secrets wil be returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param dockerRegistryName Name of the docker Registry store for the secret. + * @return BcknddockerRegistrySecretStatus + * @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); + } + + /** + * Update a secret + * + *

Update a secret with name of dockerRegistryName if it exists. + * + *

202 - The request to update the secret based on the the given configuration has been + * accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param dockerRegistryName (required) Name of the docker Registry store for the secret. + * @param bcknddockerRegistrySecretWithSensitiveDataRequest (required) The value for the parameter + * bcknddockerRegistrySecretWithSensitiveDataRequest + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BcknddockerRegistrySecretModificationResponse + * @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 { + 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"); } - /** - *

Update a secret

- *

Update a secret with name of dockerRegistryName if it exists.

- *

202 - The request to update the secret based on the the given configuration has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param dockerRegistryName (required) - Name of the docker Registry store for the secret. - * @param bcknddockerRegistrySecretWithSensitiveDataRequest (required) - The value for the parameter bcknddockerRegistrySecretWithSensitiveDataRequest - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BcknddockerRegistrySecretModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' is set - if (bcknddockerRegistrySecretWithSensitiveDataRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' when calling kubesubmitV4DockerRegistrySecretsPatch"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("dockerRegistryName", dockerRegistryName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets/{dockerRegistryName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/merge-patch+json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + // verify the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' is set + if (bcknddockerRegistrySecretWithSensitiveDataRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'bcknddockerRegistrySecretWithSensitiveDataRequest' when calling kubesubmitV4DockerRegistrySecretsPatch"); } - /** - *

Update a secret

- *

Update a secret with name of dockerRegistryName if it exists.

- *

202 - The request to update the secret based on the the given configuration has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param dockerRegistryName - * Name of the docker Registry store for the secret. - * @param bcknddockerRegistrySecretWithSensitiveDataRequest - * The value for the parameter bcknddockerRegistrySecretWithSensitiveDataRequest - * @return BcknddockerRegistrySecretModificationResponse - * @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); - } - - /** - *

Get a list of metadata of secrets.

- *

Retrieve a list of metadata of the stored secrets

- *

200 - The request was successful and the requested metadata for the secret will be returned. This includes a list of attributes of the stored secret like - creationTimestamp, namespace etc. The secret's data field is not returned. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param $top (optional) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $count (optional) - When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BcknddockerRegistrySecretStatusResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().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, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); - - - 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 a list of metadata of secrets.

- *

Retrieve a list of metadata of the stored secrets

- *

200 - The request was successful and the requested metadata for the secret will be returned. This includes a list of attributes of the stored secret like - creationTimestamp, namespace etc. The secret's data field is not returned. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BcknddockerRegistrySecretStatusResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BcknddockerRegistrySecretStatusResponse kubesubmitV4DockerRegistrySecretsQuery() throws OpenApiRequestException { - return kubesubmitV4DockerRegistrySecretsQuery(null, null, null, null); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("dockerRegistryName", dockerRegistryName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets/{dockerRegistryName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/merge-patch+json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference + localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Update a secret + * + *

Update a secret with name of dockerRegistryName if it exists. + * + *

202 - The request to update the secret based on the the given configuration has been + * accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param dockerRegistryName Name of the docker Registry store for the secret. + * @param bcknddockerRegistrySecretWithSensitiveDataRequest The value for the parameter + * bcknddockerRegistrySecretWithSensitiveDataRequest + * @return BcknddockerRegistrySecretModificationResponse + * @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); + } + + /** + * Get a list of metadata of secrets. + * + *

Retrieve a list of metadata of the stored secrets + * + *

200 - The request was successful and the requested metadata for the secret will be + * returned. This includes a list of attributes of the stored secret like - creationTimestamp, + * namespace etc. The secret's data field is not returned. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param $top (optional) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $count (optional) When the $count field is set to false, the response contains a count + * of the items present in the response. When the $count field is set to true, the response + * contains a count of all the items present on the server, and not just the ones in the + * response. When the $count field is not passed, it is false by default. + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BcknddockerRegistrySecretStatusResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/dockerRegistrySecrets").build().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, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); + + 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 a list of metadata of secrets. + * + *

Retrieve a list of metadata of the stored secrets + * + *

200 - The request was successful and the requested metadata for the secret will be + * returned. This includes a list of attributes of the stored secret like - creationTimestamp, + * namespace etc. The secret's data field is not returned. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BcknddockerRegistrySecretStatusResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BcknddockerRegistrySecretStatusResponse kubesubmitV4DockerRegistrySecretsQuery() + throws OpenApiRequestException { + return kubesubmitV4DockerRegistrySecretsQuery(null, null, null, null); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ExecutableApi.java index 5a9629f7..02fdfade 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 @@ -1,194 +1,234 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiExecutable; import com.sap.ai.sdk.core.client.model.AiExecutableList; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ExecutableApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ExecutableApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ExecutableApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ExecutableApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get details about specific executable + * + *

Retrieve details about an executable identified by executableId belonging to a scenario + * identified by scenarioId. + * + *

200 - An Executable + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param scenarioId Scenario identifier + * @param executableId Executable identifier + * @param aiResourceGroup Specify a resource group id + * @return AiExecutable + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ExecutableApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + // verify the required parameter 'executableId' is set + if (executableId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executableId' when calling executableGet"); } - /** - *

Get details about specific executable

- *

Retrieve details about an executable identified by executableId belonging to a scenario identified by scenarioId.

- *

200 - An Executable - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param scenarioId - * Scenario identifier - * @param executableId - * Executable identifier - * @param aiResourceGroup - * Specify a resource group id - * @return AiExecutable - * @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 { - 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"); - } - - // verify the required parameter 'executableId' is set - if (executableId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executableId' when calling executableGet"); - } - - // verify the required parameter 'aiResourceGroup' is set - if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executableGet"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("scenarioId", scenarioId); - localVarPathParams.put("executableId", executableId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/executables/{executableId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // verify the required parameter 'aiResourceGroup' is set + if (aiResourceGroup == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiResourceGroup' when calling executableGet"); } - /** - *

Get list of executables

- *

Retrieve a list of executables for a scenario. Filter by version ID, if required.

- *

200 - A list of executables - *

400 - The specification of the resource was incorrect - * @param scenarioId (required) - Scenario identifier - * @param aiResourceGroup (required) - Specify a resource group id - * @param versionId (optional) - Version ID, if defined - returns the specified version - * @return AiExecutableList - * @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 { - 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"); - } - - // verify the required parameter 'aiResourceGroup' is set - if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling executableQuery"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("scenarioId", scenarioId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/executables").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "versionId", versionId)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("scenarioId", scenarioId); + localVarPathParams.put("executableId", executableId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/executables/{executableId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of executables + * + *

Retrieve a list of executables for a scenario. Filter by version ID, if required. + * + *

200 - A list of executables + * + *

400 - The specification of the resource was incorrect + * + * @param scenarioId (required) Scenario identifier + * @param aiResourceGroup (required) Specify a resource group id + * @param versionId (optional) Version ID, if defined - returns the specified version + * @return AiExecutableList + * @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 { + 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"); } - /** - *

Get list of executables

- *

Retrieve a list of executables for a scenario. Filter by version ID, if required.

- *

200 - A list of executables - *

400 - The specification of the resource was incorrect - * @param scenarioId - * Scenario identifier - * @param aiResourceGroup - * Specify a resource group id - * @return AiExecutableList - * @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); + // verify the required parameter 'aiResourceGroup' is set + if (aiResourceGroup == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiResourceGroup' when calling executableQuery"); } + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("scenarioId", scenarioId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/executables") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "versionId", versionId)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of executables + * + *

Retrieve a list of executables for a scenario. Filter by version ID, if required. + * + *

200 - A list of executables + * + *

400 - The specification of the resource was incorrect + * + * @param scenarioId Scenario identifier + * @param aiResourceGroup Specify a resource group id + * @return AiExecutableList + * @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); + } } 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..a6b17488 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 @@ -1,12 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiEnactmentCreationRequest; import com.sap.ai.sdk.core.client.model.AiExecutionBulkModificationRequest; import com.sap.ai.sdk.core.client.model.AiExecutionBulkModificationResponse; @@ -16,579 +10,785 @@ import com.sap.ai.sdk.core.client.model.AiExecutionModificationRequest; import com.sap.ai.sdk.core.client.model.AiExecutionModificationResponse; import com.sap.ai.sdk.core.client.model.AiExecutionResponseWithDetails; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; -import java.time.OffsetDateTime; -import com.sap.ai.sdk.core.client.model.RTAErrorResponse; import com.sap.ai.sdk.core.client.model.RTALogCommonResponse; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ExecutionApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ExecutionApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ExecutionApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ExecutionApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Patch multiple executions + * + *

Patch multiple executions' status to stopped or deleted. + * + *

202 - The modification of the executions have been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiExecutionBulkModificationRequest The value for the parameter + * aiExecutionBulkModificationRequest + * @return AiExecutionBulkModificationResponse + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ExecutionApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + // verify the required parameter 'aiExecutionBulkModificationRequest' is set + if (aiExecutionBulkModificationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiExecutionBulkModificationRequest' when calling executionBatchModify"); } - /** - *

Patch multiple executions

- *

Patch multiple executions' status to stopped or deleted.

- *

202 - The modification of the executions have been scheduled successfully - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiExecutionBulkModificationRequest - * The value for the parameter aiExecutionBulkModificationRequest - * @return AiExecutionBulkModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiExecutionBulkModificationRequest' is set - if (aiExecutionBulkModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionBulkModificationRequest' when calling executionBatchModify"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/merge-patch+json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/merge-patch+json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get number of executions + * + *

Retrieve the number of available executions. The number can be filtered by scenarioId, + * configurationId, executableIdsList or by execution status. + * + *

200 - Number of executions + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param executableIds (optional Limit query to only these executable IDs + * @param configurationId (optional) Configuration identifier + * @param scenarioId (optional) Scenario identifier + * @param executionScheduleId (optional) Execution Schedule identifier + * @param status (optional) Filter by status + * @return Integer + * @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 { + 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"); } - /** - *

Get number of executions

- *

Retrieve the number of available executions. The number can be filtered by scenarioId, configurationId, executableIdsList or by execution status.

- *

200 - Number of executions - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param executableIds (optional - Limit query to only these executable IDs - * @param configurationId (optional) - Configuration identifier - * @param scenarioId (optional) - Scenario identifier - * @param executionScheduleId (optional) - Execution Schedule identifier - * @param status (optional) - Filter by status - * @return Integer - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/$count").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executableIds", executableIds)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "executionScheduleId", executionScheduleId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "text/plain", "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); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions/$count").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executableIds", + executableIds)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "executionScheduleId", executionScheduleId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"text/plain", "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 number of executions + * + *

Retrieve the number of available executions. The number can be filtered by scenarioId, + * configurationId, executableIdsList or by execution status. + * + *

200 - Number of executions + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return Integer + * @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); + } + + /** + * Create execution + * + *

Create an execution using the configuration specified by configurationId. + * + *

202 - The execution has been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiEnactmentCreationRequest The value for the parameter aiEnactmentCreationRequest + * @return AiExecutionCreationResponse + * @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 { + 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"); } - /** - *

Get number of executions

- *

Retrieve the number of available executions. The number can be filtered by scenarioId, configurationId, executableIdsList or by execution status.

- *

200 - Number of executions - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return Integer - * @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); + // verify the required parameter 'aiEnactmentCreationRequest' is set + if (aiEnactmentCreationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiEnactmentCreationRequest' when calling executionCreate"); } - /** - *

Create execution

- *

Create an execution using the configuration specified by configurationId.

- *

202 - The execution has been scheduled successfully - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiEnactmentCreationRequest - * The value for the parameter aiEnactmentCreationRequest - * @return AiExecutionCreationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiEnactmentCreationRequest' is set - if (aiEnactmentCreationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiEnactmentCreationRequest' when calling executionCreate"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Mark execution as deleted + * + *

Mark the execution with executionId as deleted. + * + *

202 - The deletion of the execution has been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + *

412 - The service didn't meet the precondition needed to execute this operation + * + * @param aiResourceGroup Specify a resource group id + * @param executionId Execution identifier + * @return AiExecutionDeletionResponse + * @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 { + 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"); } - /** - *

Mark execution as deleted

- *

Mark the execution with executionId as deleted.

- *

202 - The deletion of the execution has been scheduled successfully - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - *

412 - The service didn't meet the precondition needed to execute this operation - * @param aiResourceGroup - * Specify a resource group id - * @param executionId - * Execution identifier - * @return AiExecutionDeletionResponse - * @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 { - 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"); - } - - // verify the required parameter 'executionId' is set - if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionDelete"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionId", executionId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/{executionId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // verify the required parameter 'executionId' is set + if (executionId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionId' when calling executionDelete"); } - /** - *

Get information about a specific execution

- *

Retrieve details for execution with executionId.

- *

200 - Information about the execution - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup (required) - Specify a resource group id - * @param executionId (required) - Execution identifier - * @param $select (optional) - Allows to request a specified set of properties for each entity - * @return AiExecutionResponseWithDetails - * @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 { - 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"); - } - - // verify the required parameter 'executionId' is set - if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionGet"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionId", executionId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/{executionId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionId", executionId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions/{executionId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get information about a specific execution + * + *

Retrieve details for execution with executionId. + * + *

200 - Information about the execution + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup (required) Specify a resource group id + * @param executionId (required) Execution identifier + * @param $select (optional) Allows to request a specified set of properties for each entity + * @return AiExecutionResponseWithDetails + * @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 { + 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"); } - /** - *

Get information about a specific execution

- *

Retrieve details for execution with executionId.

- *

200 - Information about the execution - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param executionId - * Execution identifier - * @return AiExecutionResponseWithDetails - * @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); + // verify the required parameter 'executionId' is set + if (executionId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionId' when calling executionGet"); } - /** - *

Update target status of an execution

- *

Update target status of the execution to stop an execution.

- *

202 - The modification of the execution has been scheduled successfully - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - *

412 - The service didn't meet the precondition needed to execute this operation - * @param aiResourceGroup - * Specify a resource group id - * @param executionId - * Execution identifier - * @param aiExecutionModificationRequest - * The value for the parameter aiExecutionModificationRequest - * @return AiExecutionModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'executionId' is set - if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling executionModify"); - } - - // verify the required parameter 'aiExecutionModificationRequest' is set - if (aiExecutionModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionModificationRequest' when calling executionModify"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionId", executionId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions/{executionId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionId", executionId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions/{executionId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 information about a specific execution + * + *

Retrieve details for execution with executionId. + * + *

200 - Information about the execution + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param executionId Execution identifier + * @return AiExecutionResponseWithDetails + * @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); + } + + /** + * Update target status of an execution + * + *

Update target status of the execution to stop an execution. + * + *

202 - The modification of the execution has been scheduled successfully + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + *

412 - The service didn't meet the precondition needed to execute this operation + * + * @param aiResourceGroup Specify a resource group id + * @param executionId Execution identifier + * @param aiExecutionModificationRequest The value for the parameter + * aiExecutionModificationRequest + * @return AiExecutionModificationResponse + * @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 { + 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"); } - /** - *

Get list of executions

- *

Retrieve a list of executions that match the specified filter criteria. Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a execution status. With top/skip parameters it is possible to paginate the result list. With select parameter it is possible to select only status.

- *

200 - A list of executions - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param executableIds (optional - Limit query to only these executable IDs - * @param configurationId (optional) - Configuration identifier - * @param scenarioId (optional) - Scenario identifier - * @param executionScheduleId (optional) - Execution Schedule identifier - * @param status (optional) - Filter by status - * @param $top (optional, default to 10000) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $select (optional) - Allows to request a specified set of properties for each entity - * @return AiExecutionList - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executableIds", executableIds)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "executionScheduleId", executionScheduleId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // verify the required parameter 'executionId' is set + if (executionId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionId' when calling executionModify"); } - /** - *

Get list of executions

- *

Retrieve a list of executions that match the specified filter criteria. Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a execution status. With top/skip parameters it is possible to paginate the result list. With select parameter it is possible to select only status.

- *

200 - A list of executions - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return AiExecutionList - * @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); + // verify the required parameter 'aiExecutionModificationRequest' is set + if (aiExecutionModificationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiExecutionModificationRequest' when calling executionModify"); } - /** - *

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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionId", executionId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions/{executionId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get list of executions + * + *

Retrieve a list of executions that match the specified filter criteria. Filter criteria + * include a list of executableIds, a scenarioId, a configurationId, or a execution status. With + * top/skip parameters it is possible to paginate the result list. With select parameter it is + * possible to select only status. + * + *

200 - A list of executions + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param executableIds (optional Limit query to only these executable IDs + * @param configurationId (optional) Configuration identifier + * @param scenarioId (optional) Scenario identifier + * @param executionScheduleId (optional) Execution Schedule identifier + * @param status (optional) Filter by status + * @param $top (optional, default to 10000) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $select (optional) Allows to request a specified set of properties for each entity + * @return AiExecutionList + * @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 { + 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"); } - /** - *

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); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executions").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executableIds", + executableIds)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenarioId", scenarioId)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "executionScheduleId", executionScheduleId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$select", $select)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of executions + * + *

Retrieve a list of executions that match the specified filter criteria. Filter criteria + * include a list of executableIds, a scenarioId, a configurationId, or a execution status. With + * top/skip parameters it is possible to paginate the result list. With select parameter it is + * possible to select only status. + * + *

200 - A list of executions + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return AiExecutionList + * @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); + } } 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..50b6f507 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 @@ -1,12 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiExecutionSchedule; import com.sap.ai.sdk.core.client.model.AiExecutionScheduleCreationData; import com.sap.ai.sdk.core.client.model.AiExecutionScheduleCreationResponse; @@ -14,399 +8,533 @@ import com.sap.ai.sdk.core.client.model.AiExecutionScheduleList; import com.sap.ai.sdk.core.client.model.AiExecutionScheduleModificationRequest; import com.sap.ai.sdk.core.client.model.AiExecutionScheduleModificationResponse; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ExecutionScheduleApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ExecutionScheduleApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ExecutionScheduleApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ExecutionScheduleApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get number of execution schedules + * + *

Retrieve the number of scheduled executions. The number can be filtered by configurationId + * or executionScheduleStatus. + * + *

200 - Number of execution schedules + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param configurationId (optional) Configuration identifier + * @param status (optional) Execution Schedule status + * @return Integer + * @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 { + 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"); + } + + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executionSchedules/$count").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"text/plain", "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 number of execution schedules + * + *

Retrieve the number of scheduled executions. The number can be filtered by configurationId + * or executionScheduleStatus. + * + *

200 - Number of execution schedules + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return Integer + * @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); + } + + /** + * Create execution schedule + * + *

Create an execution schedule using the configuration specified by configurationId, and + * schedule. + * + *

202 - The execution schedule has been created successfully + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param aiExecutionScheduleCreationData The value for the parameter + * aiExecutionScheduleCreationData + * @return AiExecutionScheduleCreationResponse + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ExecutionScheduleApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + // verify the required parameter 'aiExecutionScheduleCreationData' is set + if (aiExecutionScheduleCreationData == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiExecutionScheduleCreationData' when calling executionScheduleCreate"); } - - /** - *

Get number of execution schedules

- *

Retrieve the number of scheduled executions. The number can be filtered by configurationId or executionScheduleStatus.

- *

200 - Number of execution schedules - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param configurationId (optional) - Configuration identifier - * @param status (optional) - Execution Schedule status - * @return Integer - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules/$count").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "text/plain", "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); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Delete execution schedule + * + *

Delete the execution schedule with executionScheduleId. + * + *

202 - The execution schedule has been deleted successfully + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param executionScheduleId Execution Schedule identifier + * @return AiExecutionScheduleDeletionResponse + * @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 { + 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"); } - /** - *

Get number of execution schedules

- *

Retrieve the number of scheduled executions. The number can be filtered by configurationId or executionScheduleStatus.

- *

200 - Number of execution schedules - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return Integer - * @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); + // verify the required parameter 'executionScheduleId' is set + if (executionScheduleId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionScheduleId' when calling executionScheduleDelete"); } - /** - *

Create execution schedule

- *

Create an execution schedule using the configuration specified by configurationId, and schedule.

- *

202 - The execution schedule has been created successfully - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param aiExecutionScheduleCreationData - * The value for the parameter aiExecutionScheduleCreationData - * @return AiExecutionScheduleCreationResponse - * @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 { - 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"); - } - - // verify the required parameter 'aiExecutionScheduleCreationData' is set - if (aiExecutionScheduleCreationData == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleCreationData' when calling executionScheduleCreate"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionScheduleId", executionScheduleId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executionSchedules/{executionScheduleId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get information about an execution schedule + * + *

Retrieve details for execution schedule with executionScheduleId. + * + *

200 - Information about the execution schedule + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param executionScheduleId Execution Schedule identifier + * @return AiExecutionSchedule + * @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 { + 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"); } - /** - *

Delete execution schedule

- *

Delete the execution schedule with executionScheduleId.

- *

202 - The execution schedule has been deleted successfully - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param executionScheduleId - * Execution Schedule identifier - * @return AiExecutionScheduleDeletionResponse - * @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 { - 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"); - } - - // verify the required parameter 'executionScheduleId' is set - if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleDelete"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionScheduleId", executionScheduleId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules/{executionScheduleId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // verify the required parameter 'executionScheduleId' is set + if (executionScheduleId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionScheduleId' when calling executionScheduleGet"); } - /** - *

Get information about an execution schedule

- *

Retrieve details for execution schedule with executionScheduleId.

- *

200 - Information about the execution schedule - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param executionScheduleId - * Execution Schedule identifier - * @return AiExecutionSchedule - * @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 { - 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"); - } - - // verify the required parameter 'executionScheduleId' is set - if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleGet"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionScheduleId", executionScheduleId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules/{executionScheduleId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionScheduleId", executionScheduleId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executionSchedules/{executionScheduleId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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); + } + + /** + * Update an execution schedule + * + *

Update details of an execution schedule + * + *

202 - The execution schedule has been modified successfully + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param executionScheduleId Execution Schedule identifier + * @param aiExecutionScheduleModificationRequest The value for the parameter + * aiExecutionScheduleModificationRequest + * @return AiExecutionScheduleModificationResponse + * @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 { + 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"); } - /** - *

Update an execution schedule

- *

Update details of an execution schedule

- *

202 - The execution schedule has been modified successfully - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param executionScheduleId - * Execution Schedule identifier - * @param aiExecutionScheduleModificationRequest - * The value for the parameter aiExecutionScheduleModificationRequest - * @return AiExecutionScheduleModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'executionScheduleId' is set - if (executionScheduleId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionScheduleId' when calling executionScheduleModify"); - } - - // verify the required parameter 'aiExecutionScheduleModificationRequest' is set - if (aiExecutionScheduleModificationRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiExecutionScheduleModificationRequest' when calling executionScheduleModify"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("executionScheduleId", executionScheduleId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules/{executionScheduleId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + + // verify the required parameter 'executionScheduleId' is set + if (executionScheduleId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionScheduleId' when calling executionScheduleModify"); } - /** - *

Get list of execution schedules

- *

Retrieve a list of execution schedules that match the specified filter criteria. Filter criteria include executionScheduleStatus or a configurationId. With top/skip parameters it is possible to paginate the result list.

- *

200 - A list of execution schedules - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param configurationId (optional) - Configuration identifier - * @param status (optional) - Execution Schedule status - * @param $top (optional, default to 10000) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @return AiExecutionScheduleList - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // verify the required parameter 'aiExecutionScheduleModificationRequest' is set + if (aiExecutionScheduleModificationRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiExecutionScheduleModificationRequest' when calling executionScheduleModify"); } - /** - *

Get list of execution schedules

- *

Retrieve a list of execution schedules that match the specified filter criteria. Filter criteria include executionScheduleStatus or a configurationId. With top/skip parameters it is possible to paginate the result list.

- *

200 - A list of execution schedules - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @return AiExecutionScheduleList - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("executionScheduleId", executionScheduleId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executionSchedules/{executionScheduleId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get list of execution schedules + * + *

Retrieve a list of execution schedules that match the specified filter criteria. Filter + * criteria include executionScheduleStatus or a configurationId. With top/skip parameters it is + * possible to paginate the result list. + * + *

200 - A list of execution schedules + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param configurationId (optional) Configuration identifier + * @param status (optional) Execution Schedule status + * @param $top (optional, default to 10000) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @return AiExecutionScheduleList + * @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 { + 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"); } + + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/executionSchedules").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "configurationId", configurationId)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "status", status)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$top", $top)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$skip", $skip)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of execution schedules + * + *

Retrieve a list of execution schedules that match the specified filter criteria. Filter + * criteria include executionScheduleStatus or a configurationId. With top/skip parameters it is + * possible to paginate the result list. + * + *

200 - A list of execution schedules + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @return AiExecutionScheduleList + * @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); + } } 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..b50d2279 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 @@ -1,261 +1,349 @@ - - package com.sap.ai.sdk.core.client; +import com.google.common.annotations.Beta; +import com.sap.ai.sdk.core.client.model.DSetFileCreationResponse; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.DSetFileCreationResponse; import java.io.File; -import com.sap.ai.sdk.core.client.model.FileDownload400Response; - import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class FileApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public FileApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public FileApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Delete file

- *

Delete the file specified by the path parameter.

- *

204 - The request was processed successfully. - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param path (required) - path relative to the object store root URL in the secret - * @param aiResourceGroup (optional) - Specify a resource group id - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("path", path); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/dataset/files/{path}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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() {}; - apiClient.invokeAPI(localVarPath, HttpMethod.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - return new OpenApiResponse(apiClient); - } - - /** - *

Delete file

- *

Delete the file specified by the path parameter.

- *

204 - The request was processed successfully. - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param path - * path relative to the object store root URL in the secret - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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); - } - - /** - *

Download file

- *

Endpoint for downloading file. The path must point to an individual file.

- *

200 - OK - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param path (required) - path relative to the object store root URL in the secret - * @param aiResourceGroup (optional) - Specify a resource group id - * @return File - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("path", path); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/dataset/files/{path}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/octet-stream", "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); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public FileApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public FileApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Delete file + * + *

Delete the file specified by the path parameter. + * + *

204 - The request was processed successfully. + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param path (required) path relative to the object store root URL in the secret + * @param aiResourceGroup (optional) Specify a resource group id + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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 { + 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"); } - /** - *

Download file

- *

Endpoint for downloading file. The path must point to an individual file.

- *

200 - OK - *

400 - The specification of the resource was incorrect - *

404 - The specified resource was not found - * @param path - * path relative to the object store root URL in the secret - * @return File - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("path", path); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/dataset/files/{path}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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() {}; + apiClient.invokeAPI( + localVarPath, + HttpMethod.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + return new OpenApiResponse(apiClient); + } + + /** + * Delete file + * + *

Delete the file specified by the path parameter. + * + *

204 - The request was processed successfully. + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param path path relative to the object store root URL in the secret + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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); + } + + /** + * Download file + * + *

Endpoint for downloading file. The path must point to an individual file. + * + *

200 - OK + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param path (required) path relative to the object store root URL in the secret + * @param aiResourceGroup (optional) Specify a resource group id + * @return File + * @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 { + 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"); } - /** - *

Upload file (size <= 100Mb)

- *

Endpoint for uploading file. The maximum file size depends on the actual implementation but must not exceed 100MB. The actual file size limit can be obtained by querying the AI API Runtime Capabilities Endpoint and checking the limits in the section of the `fileUpload` extension. Path cannot be a prefix, it must be a path to an object. Clients may group the objects in any manner they choose by specifying path prefixes. Allowed mime-types will be decided by the implementation. Content-Type header can be set to \"application/octet-stream\" but the implementation is responsible for detecting the actual mime type and checking against the allowed list of mime types. For security reasons, implementations cannot trust the mime type sent by the client. Example URLs: /files/dar/schemas/schema.json /files/icr/datasets/training/20201001/20201001-01.csv /files/icr/datasets/training/20201001/20201001-02.csv /files/mask-detection/training/mask-detection-20210301.tar.gz

- *

201 - Created - *

400 - The specification of the resource was incorrect - *

409 - The specified file already exists and cannot be overwritten. - *

413 - The file size exceeds the supported limit. - * @param path (required) - path relative to the object store root URL in the secret - * @param aiResourceGroup (optional) - Specify a resource group id - * @param overwrite (optional) - If true, then file is overwritten. Default is false. - * @param body (optional) - Body of the file upload request - * @return DSetFileCreationResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("path", path); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/dataset/files/{path}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "overwrite", overwrite)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("path", path); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/dataset/files/{path}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/octet-stream", "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); + } + + /** + * Download file + * + *

Endpoint for downloading file. The path must point to an individual file. + * + *

200 - OK + * + *

400 - The specification of the resource was incorrect + * + *

404 - The specified resource was not found + * + * @param path path relative to the object store root URL in the secret + * @return File + * @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); + } + + /** + * Upload file (size <= 100Mb) + * + *

Endpoint for uploading file. The maximum file size depends on the actual implementation but + * must not exceed 100MB. The actual file size limit can be obtained by querying the AI API + * Runtime Capabilities Endpoint and checking the limits in the section of the + * `fileUpload` extension. Path cannot be a prefix, it must be a path to an object. + * Clients may group the objects in any manner they choose by specifying path prefixes. Allowed + * mime-types will be decided by the implementation. Content-Type header can be set to + * \"application/octet-stream\" but the implementation is responsible for detecting the + * actual mime type and checking against the allowed list of mime types. For security reasons, + * implementations cannot trust the mime type sent by the client. Example URLs: + * /files/dar/schemas/schema.json /files/icr/datasets/training/20201001/20201001-01.csv + * /files/icr/datasets/training/20201001/20201001-02.csv + * /files/mask-detection/training/mask-detection-20210301.tar.gz + * + *

201 - Created + * + *

400 - The specification of the resource was incorrect + * + *

409 - The specified file already exists and cannot be overwritten. + * + *

413 - The file size exceeds the supported limit. + * + * @param path (required) path relative to the object store root URL in the secret + * @param aiResourceGroup (optional) Specify a resource group id + * @param overwrite (optional) If true, then file is overwritten. Default is false. + * @param body (optional) Body of the file upload request + * @return DSetFileCreationResponse + * @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 { + 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"); } - /** - *

Upload file (size <= 100Mb)

- *

Endpoint for uploading file. The maximum file size depends on the actual implementation but must not exceed 100MB. The actual file size limit can be obtained by querying the AI API Runtime Capabilities Endpoint and checking the limits in the section of the `fileUpload` extension. Path cannot be a prefix, it must be a path to an object. Clients may group the objects in any manner they choose by specifying path prefixes. Allowed mime-types will be decided by the implementation. Content-Type header can be set to \"application/octet-stream\" but the implementation is responsible for detecting the actual mime type and checking against the allowed list of mime types. For security reasons, implementations cannot trust the mime type sent by the client. Example URLs: /files/dar/schemas/schema.json /files/icr/datasets/training/20201001/20201001-01.csv /files/icr/datasets/training/20201001/20201001-02.csv /files/mask-detection/training/mask-detection-20210301.tar.gz

- *

201 - Created - *

400 - The specification of the resource was incorrect - *

409 - The specified file already exists and cannot be overwritten. - *

413 - The file size exceeds the supported limit. - * @param path - * path relative to the object store root URL in the secret - * @return DSetFileCreationResponse - * @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); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("path", path); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/dataset/files/{path}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "overwrite", overwrite)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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.PUT, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Upload file (size <= 100Mb) + * + *

Endpoint for uploading file. The maximum file size depends on the actual implementation but + * must not exceed 100MB. The actual file size limit can be obtained by querying the AI API + * Runtime Capabilities Endpoint and checking the limits in the section of the + * `fileUpload` extension. Path cannot be a prefix, it must be a path to an object. + * Clients may group the objects in any manner they choose by specifying path prefixes. Allowed + * mime-types will be decided by the implementation. Content-Type header can be set to + * \"application/octet-stream\" but the implementation is responsible for detecting the + * actual mime type and checking against the allowed list of mime types. For security reasons, + * implementations cannot trust the mime type sent by the client. Example URLs: + * /files/dar/schemas/schema.json /files/icr/datasets/training/20201001/20201001-01.csv + * /files/icr/datasets/training/20201001/20201001-02.csv + * /files/mask-detection/training/mask-detection-20210301.tar.gz + * + *

201 - Created + * + *

400 - The specification of the resource was incorrect + * + *

409 - The specified file already exists and cannot be overwritten. + * + *

413 - The file size exceeds the supported limit. + * + * @param path path relative to the object store root URL in the secret + * @return DSetFileCreationResponse + * @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); + } } 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..5da9f81d 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 @@ -1,116 +1,135 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.KpiColumnName; -import com.sap.ai.sdk.core.client.model.KpiGet400Response; import com.sap.ai.sdk.core.client.model.KpiResultSet; -import java.util.Set; - -import java.util.HashMap; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.List; import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import java.util.Set; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class KpiApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public KpiApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public KpiApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Get KPIs

- *

Retrieve the number of executions, artifacts, and deployments for each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter.

- *

200 - KPIs - *

400 - Invalid request - *

404 - The specified resource was not found - *

429 - Too many requests - * @param $select (optional - Columns to select - * @return KpiResultSet - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public KpiResultSet kpiGet( @Nullable final Set $select) throws OpenApiRequestException { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/analytics/kpis").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "$select", $select)); - - - 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 KPIs

- *

Retrieve the number of executions, artifacts, and deployments for each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter.

- *

200 - KPIs - *

400 - Invalid request - *

404 - The specified resource was not found - *

429 - Too many requests - * @return KpiResultSet - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public KpiResultSet kpiGet() throws OpenApiRequestException { - return kpiGet(null); - } + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public KpiApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public KpiApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get KPIs + * + *

Retrieve the number of executions, artifacts, and deployments for each resource group, + * scenario, and executable. The columns to be returned can be specified in a query parameter. + * + *

200 - KPIs + * + *

400 - Invalid request + * + *

404 - The specified resource was not found + * + *

429 - Too many requests + * + * @param $select (optional Columns to select + * @return KpiResultSet + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public KpiResultSet kpiGet(@Nullable final Set $select) + throws OpenApiRequestException { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/analytics/kpis").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "$select", + $select)); + + 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 KPIs + * + *

Retrieve the number of executions, artifacts, and deployments for each resource group, + * scenario, and executable. The columns to be returned can be specified in a query parameter. + * + *

200 - KPIs + * + *

400 - Invalid request + * + *

404 - The specified resource was not found + * + *

429 - Too many requests + * + * @return KpiResultSet + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public KpiResultSet kpiGet() throws OpenApiRequestException { + return kpiGet(null); + } } 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..3b866906 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 @@ -1,91 +1,96 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.MetaCapabilities; -import com.sap.ai.sdk.core.client.model.MetaGet404Response; - -import java.util.HashMap; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.List; -import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class MetaApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public MetaApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public MetaApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public MetaApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public MetaApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } + /** + * Meta information about API + * + *

Meta information about an implementation of AI API, describing its capabilities, limits and + * extensions + * + *

200 - Description of the implementation + * + *

404 - The specified resource was not found + * + * @return MetaCapabilities + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public MetaCapabilities metaGet() throws OpenApiRequestException { + final Object localVarPostBody = null; - /** - *

Meta information about API

- *

Meta information about an implementation of AI API, describing its capabilities, limits and extensions

- *

200 - Description of the implementation - *

404 - The specified resource was not found - * @return MetaCapabilities - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public MetaCapabilities metaGet() throws OpenApiRequestException { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/meta").build().toUriString(); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/meta").build().toUriString(); - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + 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 String[] localVarAuthNames = new String[] {"Oauth2"}; - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.GET, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } } 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..ffcdb3b4 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 @@ -1,233 +1,300 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.MetricsFind400Response; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.TrckDeleteMetricsResponse; import com.sap.ai.sdk.core.client.model.TrckExecutionId; import com.sap.ai.sdk.core.client.model.TrckGetMetricResourceList; import com.sap.ai.sdk.core.client.model.TrckMetricResource; - -import java.util.HashMap; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; +import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; import java.util.List; import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class MetricsApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public MetricsApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public MetricsApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public MetricsApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Delete metrics, tags, or labels + * + *

Delete metrics, tags, or labels associated with an execution. + * + *

200 - Metric Resource was successfully deleted + * + *

404 - The specified resource was not found + * + * @param aiResourceGroup Specify a resource group id + * @param executionId The Id of an execution + * @return TrckDeleteMetricsResponse + * @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 { + final Object localVarPostBody = null; - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public MetricsApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + // verify the required parameter 'aiResourceGroup' is set + if (aiResourceGroup == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiResourceGroup' when calling metricsDelete"); } - /** - *

Delete metrics, tags, or labels

- *

Delete metrics, tags, or labels associated with an execution.

- *

200 - Metric Resource was successfully deleted - *

404 - The specified resource was not found - * @param aiResourceGroup - * Specify a resource group id - * @param executionId - * The Id of an execution - * @return TrckDeleteMetricsResponse - * @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 { - 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"); - } - - // verify the required parameter 'executionId' is set - if (executionId == null) { - throw new OpenApiRequestException("Missing the required parameter 'executionId' when calling metricsDelete"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "executionId", executionId)); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + // verify the required parameter 'executionId' is set + if (executionId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'executionId' when calling metricsDelete"); } - /** - *

Get metrics according to specified filter conditions.

- *

Retrieve metrics, labels, or tags according to filter conditions. One query parameter is mandatory, either execution ID or filter. Use up to 10 execution IDs in a query parameter.

- *

200 - List of tracking metadata, where each item includes metrics, labels, tags and customInfo. If $select query parameter is specified, each item will include only the resources specified in $select. - *

400 - The specification of the resource was incorrect - *

501 - Operation is not Supported. - * @param aiResourceGroup (required) - Specify a resource group id - * @param $filter (optional) - Filter parameter allows filtering of metric resource using ExecutionId(s). User can only use in, eq operators in filter expression. - * @param executionIds (optional - executionIds parameter allows filtering of metric resource using single or multiple ExecutionId(s). - * @param $select (optional - returns only the resources that the client explicitly requests. User can also pass * as a value for $select, which will behave same as that of not passing $select query param. - * @return TrckGetMetricResourceList - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$filter", $filter)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "executionIds", executionIds)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "$select", $select)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "executionId", executionId)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Get metrics according to specified filter conditions. + * + *

Retrieve metrics, labels, or tags according to filter conditions. One query parameter is + * mandatory, either execution ID or filter. Use up to 10 execution IDs in a query parameter. + * + *

200 - List of tracking metadata, where each item includes metrics, labels, tags and + * customInfo. If $select query parameter is specified, each item will include only the resources + * specified in $select. + * + *

400 - The specification of the resource was incorrect + * + *

501 - Operation is not Supported. + * + * @param aiResourceGroup (required) Specify a resource group id + * @param $filter (optional) Filter parameter allows filtering of metric resource using + * ExecutionId(s). User can only use in, eq operators in filter expression. + * @param executionIds (optional executionIds parameter allows filtering of metric resource using + * single or multiple ExecutionId(s). + * @param $select (optional returns only the resources that the client explicitly requests. User + * can also pass * as a value for $select, which will behave same as that of not passing + * $select query param. + * @return TrckGetMetricResourceList + * @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 { + 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"); } - /** - *

Get metrics according to specified filter conditions.

- *

Retrieve metrics, labels, or tags according to filter conditions. One query parameter is mandatory, either execution ID or filter. Use up to 10 execution IDs in a query parameter.

- *

200 - List of tracking metadata, where each item includes metrics, labels, tags and customInfo. If $select query parameter is specified, each item will include only the resources specified in $select. - *

400 - The specification of the resource was incorrect - *

501 - Operation is not Supported. - * @param aiResourceGroup - * Specify a resource group id - * @return TrckGetMetricResourceList - * @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); + final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$filter", $filter)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "executionIds", + executionIds)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "$select", + $select)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 metrics according to specified filter conditions. + * + *

Retrieve metrics, labels, or tags according to filter conditions. One query parameter is + * mandatory, either execution ID or filter. Use up to 10 execution IDs in a query parameter. + * + *

200 - List of tracking metadata, where each item includes metrics, labels, tags and + * customInfo. If $select query parameter is specified, each item will include only the resources + * specified in $select. + * + *

400 - The specification of the resource was incorrect + * + *

501 - Operation is not Supported. + * + * @param aiResourceGroup Specify a resource group id + * @return TrckGetMetricResourceList + * @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); + } + + /** + * Create or update metrics, tags, or labels + * + *

Update or create metrics, tags, or labels associated with an execution. + * + *

204 - Metrics was successfully updated/created + * + *

400 - The specification of the resource was incorrect + * + *

413 - request entity is larger than limits defined by server. + * + * @param aiResourceGroup Specify a resource group id + * @param trckMetricResource The value for the parameter trckMetricResource + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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 { + 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"); } - /** - *

Create or update metrics, tags, or labels

- *

Update or create metrics, tags, or labels associated with an execution.

- *

204 - Metrics was successfully updated/created - *

400 - The specification of the resource was incorrect - *

413 - request entity is larger than limits defined by server. - * @param aiResourceGroup - * Specify a resource group id - * @param trckMetricResource - * The value for the parameter trckMetricResource - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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 { - 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"); - } - - // verify the required parameter 'trckMetricResource' is set - if (trckMetricResource == null) { - throw new OpenApiRequestException("Missing the required parameter 'trckMetricResource' when calling metricsPatch"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/merge-patch+json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - return new OpenApiResponse(apiClient); + + // verify the required parameter 'trckMetricResource' is set + if (trckMetricResource == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'trckMetricResource' when calling metricsPatch"); } + + final String localVarPath = UriComponentsBuilder.fromPath("/lm/metrics").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/merge-patch+json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + return new OpenApiResponse(apiClient); + } } 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..65cc1d1e 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 @@ -1,13 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretCreationResponse; import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretDeletionResponse; import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretModificationResponse; @@ -15,403 +8,571 @@ import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretStatusResponse; import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretWithSensitiveDataRequest; import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretWithSensitiveDataRequestForPostCall; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ObjectStoreSecretApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ObjectStoreSecretApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ObjectStoreSecretApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Create a secret

- *

Create a secret based on the configuration in the request body

- *

202 - The request to create a k8s secret based on the given configuration has been accepted. - *

400 - One of the following failure cases has occurred: <ul> <li> Neither JSON nor YAML was able to be parsed. <li> The request was invalidly formatted - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndobjectStoreSecretWithSensitiveDataRequestForPostCall (required) - The value for the parameter bckndobjectStoreSecretWithSensitiveDataRequestForPostCall - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional, default to default) - Specify an existing resource group id to use. Uses \"default\" if value not provided. - * @return BckndobjectStoreSecretCreationResponse - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Create a secret

- *

Create a secret based on the configuration in the request body

- *

202 - The request to create a k8s secret based on the given configuration has been accepted. - *

400 - One of the following failure cases has occurred: <ul> <li> Neither JSON nor YAML was able to be parsed. <li> The request was invalidly formatted - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndobjectStoreSecretWithSensitiveDataRequestForPostCall - * The value for the parameter bckndobjectStoreSecretWithSensitiveDataRequestForPostCall - * @return BckndobjectStoreSecretCreationResponse - * @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); - } - - /** - *

Delete object store secret

- *

Delete a secret with the name of objectStoreName if it exists.

- *

202 - The request to delete the secret has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param objectStoreName (required) - Name of the object store for the secret. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional, default to default) - Specify an existing resource group id to use. Uses \"default\" if value not provided. - * @return BckndobjectStoreSecretDeletionResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("objectStoreName", objectStoreName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets/{objectStoreName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ObjectStoreSecretApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ObjectStoreSecretApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Create a secret + * + *

Create a secret based on the configuration in the request body + * + *

202 - The request to create a k8s secret based on the given configuration has been + * accepted. + * + *

400 - One of the following failure cases has occurred: <ul> <li> Neither + * JSON nor YAML was able to be parsed. <li> The request was invalidly formatted + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndobjectStoreSecretWithSensitiveDataRequestForPostCall (required) The value for the + * parameter bckndobjectStoreSecretWithSensitiveDataRequestForPostCall + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional, default to default) Specify an existing resource group id to + * use. Uses \"default\" if value not provided. + * @return BckndobjectStoreSecretCreationResponse + * @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 { + 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"); } - /** - *

Delete object store secret

- *

Delete a secret with the name of objectStoreName if it exists.

- *

202 - The request to delete the secret has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param objectStoreName - * Name of the object store for the secret. - * @return BckndobjectStoreSecretDeletionResponse - * @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); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Create a secret + * + *

Create a secret based on the configuration in the request body + * + *

202 - The request to create a k8s secret based on the given configuration has been + * accepted. + * + *

400 - One of the following failure cases has occurred: <ul> <li> Neither + * JSON nor YAML was able to be parsed. <li> The request was invalidly formatted + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndobjectStoreSecretWithSensitiveDataRequestForPostCall The value for the parameter + * bckndobjectStoreSecretWithSensitiveDataRequestForPostCall + * @return BckndobjectStoreSecretCreationResponse + * @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); + } + + /** + * Delete object store secret + * + *

Delete a secret with the name of objectStoreName if it exists. + * + *

202 - The request to delete the secret has been accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param objectStoreName (required) Name of the object store for the secret. + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional, default to default) Specify an existing resource group id to + * use. Uses \"default\" if value not provided. + * @return BckndobjectStoreSecretDeletionResponse + * @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 { + 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"); } - /** - *

Returns the of metadata of secrets which match the query parameter.

- *

This retrieves the metadata of the stored secret which match the parameter objectStoreName. The fetched secret is constructed like objectStoreName-object-store-secret The base64 encoded field for the stored secret is not returned.

- *

200 - The request was processed successfully and the metadata of the of stored secrets wil be returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param objectStoreName (required) - Name of the object store for the secret. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional, default to default) - Specify an existing resource group id to use. Uses \"default\" if value not provided. - * @return BckndobjectStoreSecretStatus - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("objectStoreName", objectStoreName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets/{objectStoreName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("objectStoreName", objectStoreName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/objectStoreSecrets/{objectStoreName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Delete object store secret + * + *

Delete a secret with the name of objectStoreName if it exists. + * + *

202 - The request to delete the secret has been accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param objectStoreName Name of the object store for the secret. + * @return BckndobjectStoreSecretDeletionResponse + * @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); + } + + /** + * Returns the of metadata of secrets which match the query parameter. + * + *

This retrieves the metadata of the stored secret which match the parameter objectStoreName. + * The fetched secret is constructed like objectStoreName-object-store-secret The base64 encoded + * field for the stored secret is not returned. + * + *

200 - The request was processed successfully and the metadata of the of stored + * secrets wil be returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param objectStoreName (required) Name of the object store for the secret. + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional, default to default) Specify an existing resource group id to + * use. Uses \"default\" if value not provided. + * @return BckndobjectStoreSecretStatus + * @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 { + 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"); } - /** - *

Returns the of metadata of secrets which match the query parameter.

- *

This retrieves the metadata of the stored secret which match the parameter objectStoreName. The fetched secret is constructed like objectStoreName-object-store-secret The base64 encoded field for the stored secret is not returned.

- *

200 - The request was processed successfully and the metadata of the of stored secrets wil be returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param objectStoreName - * Name of the object store for the secret. - * @return BckndobjectStoreSecretStatus - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("objectStoreName", objectStoreName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/objectStoreSecrets/{objectStoreName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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); + } + + /** + * Returns the of metadata of secrets which match the query parameter. + * + *

This retrieves the metadata of the stored secret which match the parameter objectStoreName. + * The fetched secret is constructed like objectStoreName-object-store-secret The base64 encoded + * field for the stored secret is not returned. + * + *

200 - The request was processed successfully and the metadata of the of stored + * secrets wil be returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param objectStoreName Name of the object store for the secret. + * @return BckndobjectStoreSecretStatus + * @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); + } + + /** + * Update object store secret + * + *

Update a secret with name of objectStoreName if it exists. + * + *

202 - The request to update the secret based on the given configuration has been + * accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param objectStoreName (required) Name of the object store for the secret. + * @param bckndobjectStoreSecretWithSensitiveDataRequest (required) The value for the parameter + * bckndobjectStoreSecretWithSensitiveDataRequest + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional, default to default) Specify an existing resource group id to + * use. Uses \"default\" if value not provided. + * @return BckndobjectStoreSecretModificationResponse + * @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 { + 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"); } - /** - *

Update object store secret

- *

Update a secret with name of objectStoreName if it exists.

- *

202 - The request to update the secret based on the given configuration has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param objectStoreName (required) - Name of the object store for the secret. - * @param bckndobjectStoreSecretWithSensitiveDataRequest (required) - The value for the parameter bckndobjectStoreSecretWithSensitiveDataRequest - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional, default to default) - Specify an existing resource group id to use. Uses \"default\" if value not provided. - * @return BckndobjectStoreSecretModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' is set - if (bckndobjectStoreSecretWithSensitiveDataRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' when calling kubesubmitV4ObjectStoreSecretsPatch"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("objectStoreName", objectStoreName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets/{objectStoreName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + // verify the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' is set + if (bckndobjectStoreSecretWithSensitiveDataRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'bckndobjectStoreSecretWithSensitiveDataRequest' when calling kubesubmitV4ObjectStoreSecretsPatch"); } - /** - *

Update object store secret

- *

Update a secret with name of objectStoreName if it exists.

- *

202 - The request to update the secret based on the given configuration has been accepted. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param objectStoreName - * Name of the object store for the secret. - * @param bckndobjectStoreSecretWithSensitiveDataRequest - * The value for the parameter bckndobjectStoreSecretWithSensitiveDataRequest - * @return BckndobjectStoreSecretModificationResponse - * @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); - } - - /** - *

Get a list of metadata of available secrets.

- *

Retrieve a list of metadata of the stored secrets.

- *

200 - The request was successful and the requested metadata for the secret will be returned. This includes a list of attributes of the stored secret like - creationTimestamp, namespace etc. The secret's data field is not returned. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param $top (optional) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $count (optional) - When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional, default to default) - Specify an existing resource group id to use. Uses \"default\" if value not provided. - * @return BckndobjectStoreSecretStatusResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().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, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); - - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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 a list of metadata of available secrets.

- *

Retrieve a list of metadata of the stored secrets.

- *

200 - The request was successful and the requested metadata for the secret will be returned. This includes a list of attributes of the stored secret like - creationTimestamp, namespace etc. The secret's data field is not returned. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndobjectStoreSecretStatusResponse - * @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); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("objectStoreName", objectStoreName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/objectStoreSecrets/{objectStoreName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference + localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Update object store secret + * + *

Update a secret with name of objectStoreName if it exists. + * + *

202 - The request to update the secret based on the given configuration has been + * accepted. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param objectStoreName Name of the object store for the secret. + * @param bckndobjectStoreSecretWithSensitiveDataRequest The value for the parameter + * bckndobjectStoreSecretWithSensitiveDataRequest + * @return BckndobjectStoreSecretModificationResponse + * @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); + } + + /** + * Get a list of metadata of available secrets. + * + *

Retrieve a list of metadata of the stored secrets. + * + *

200 - The request was successful and the requested metadata for the secret will be + * returned. This includes a list of attributes of the stored secret like - creationTimestamp, + * namespace etc. The secret's data field is not returned. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param $top (optional) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $count (optional) When the $count field is set to false, the response contains a count + * of the items present in the response. When the $count field is set to true, the response + * contains a count of all the items present on the server, and not just the ones in the + * response. When the $count field is not passed, it is false by default. + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional, default to default) Specify an existing resource group id to + * use. Uses \"default\" if value not provided. + * @return BckndobjectStoreSecretStatusResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/objectStoreSecrets").build().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, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 a list of metadata of available secrets. + * + *

Retrieve a list of metadata of the stored secrets. + * + *

200 - The request was successful and the requested metadata for the secret will be + * returned. This includes a list of attributes of the stored secret like - creationTimestamp, + * namespace etc. The secret's data field is not returned. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndobjectStoreSecretStatusResponse + * @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); + } } 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..e9d1ebc6 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 @@ -1,12 +1,6 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryCreationResponse; import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryCredentials; import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryData; @@ -14,386 +8,519 @@ import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryDeletionResponse; import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryDetails; import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryModificationResponse; -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class RepositoryApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public RepositoryApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public RepositoryApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

On-board a new GitOps repository

- *

On-board a new GitOps repository as specified in the content payload

- *

200 - The repository has been on-boarded - *

409 - The provided repository already exists - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndArgoCDRepositoryData (required) - The value for the parameter bckndArgoCDRepositoryData - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDRepositoryCreationResponse - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

On-board a new GitOps repository

- *

On-board a new GitOps repository as specified in the content payload

- *

200 - The repository has been on-boarded - *

409 - The provided repository already exists - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndArgoCDRepositoryData - * The value for the parameter bckndArgoCDRepositoryData - * @return BckndArgoCDRepositoryCreationResponse - * @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); - } - - /** - *

Off-board a repository.

- *

Remove a repository from GitOps.

- *

200 - The repository has been off-boarded successfully. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param repositoryName (required) - Name of the repository - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDRepositoryDeletionResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("repositoryName", repositoryName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories/{repositoryName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public RepositoryApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public RepositoryApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * On-board a new GitOps repository + * + *

On-board a new GitOps repository as specified in the content payload + * + *

200 - The repository has been on-boarded + * + *

409 - The provided repository already exists + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndArgoCDRepositoryData (required) The value for the parameter + * bckndArgoCDRepositoryData + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDRepositoryCreationResponse + * @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 { + 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"); } - /** - *

Off-board a repository.

- *

Remove a repository from GitOps.

- *

200 - The repository has been off-boarded successfully. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param repositoryName - * Name of the repository - * @return BckndArgoCDRepositoryDeletionResponse - * @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); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/repositories").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * On-board a new GitOps repository + * + *

On-board a new GitOps repository as specified in the content payload + * + *

200 - The repository has been on-boarded + * + *

409 - The provided repository already exists + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndArgoCDRepositoryData The value for the parameter bckndArgoCDRepositoryData + * @return BckndArgoCDRepositoryCreationResponse + * @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); + } + + /** + * Off-board a repository. + * + *

Remove a repository from GitOps. + * + *

200 - The repository has been off-boarded successfully. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param repositoryName (required) Name of the repository + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDRepositoryDeletionResponse + * @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 { + 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"); } - /** - *

Get the access details for a repository

- *

Retrieve the access details for a repository if it exists.

- *

200 - The repository details have been found and returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param repositoryName (required) - Name of the repository - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDRepositoryDetails - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("repositoryName", repositoryName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories/{repositoryName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("repositoryName", repositoryName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/repositories/{repositoryName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Off-board a repository. + * + *

Remove a repository from GitOps. + * + *

200 - The repository has been off-boarded successfully. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param repositoryName Name of the repository + * @return BckndArgoCDRepositoryDeletionResponse + * @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); + } + + /** + * Get the access details for a repository + * + *

Retrieve the access details for a repository if it exists. + * + *

200 - The repository details have been found and returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param repositoryName (required) Name of the repository + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDRepositoryDetails + * @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 { + 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"); } - /** - *

Get the access details for a repository

- *

Retrieve the access details for a repository if it exists.

- *

200 - The repository details have been found and returned. - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param repositoryName - * Name of the repository - * @return BckndArgoCDRepositoryDetails - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("repositoryName", repositoryName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/repositories/{repositoryName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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 the access details for a repository + * + *

Retrieve the access details for a repository if it exists. + * + *

200 - The repository details have been found and returned. + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param repositoryName Name of the repository + * @return BckndArgoCDRepositoryDetails + * @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); + } + + /** + * List all GitOps repositories for a tenant + * + *

Retrieve a list of all GitOps repositories for a tenant. + * + *

200 - Returns a list of all GitOps repositories for the tenant. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param $top (optional) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $count (optional) When the $count field is set to false, the response contains a count + * of the items present in the response. When the $count field is set to true, the response + * contains a count of all the items present on the server, and not just the ones in the + * response. When the $count field is not passed, it is false by default. + * @return BckndArgoCDRepositoryDataResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/repositories").build().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, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); + + 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); + } + + /** + * List all GitOps repositories for a tenant + * + *

Retrieve a list of all GitOps repositories for a tenant. + * + *

200 - Returns a list of all GitOps repositories for the tenant. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndArgoCDRepositoryDataResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll() + throws OpenApiRequestException { + return kubesubmitV4RepositoriesGetAll(null, null, null, null); + } + + /** + * Update the repository credentials. + * + *

Update the referenced repository credentials to synchronize a repository. + * + *

200 - The repository credentials have been updated and will eventually be synced. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param repositoryName (required) Name of the repository + * @param bckndArgoCDRepositoryCredentials (required) The value for the parameter + * bckndArgoCDRepositoryCredentials + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndArgoCDRepositoryModificationResponse + * @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 { + 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"); } - /** - *

List all GitOps repositories for a tenant

- *

Retrieve a list of all GitOps repositories for a tenant.

- *

200 - Returns a list of all GitOps repositories for the tenant. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param $top (optional) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $count (optional) - When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default. - * @return BckndArgoCDRepositoryDataResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories").build().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, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); - - - 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); + // verify the required parameter 'bckndArgoCDRepositoryCredentials' is set + if (bckndArgoCDRepositoryCredentials == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'bckndArgoCDRepositoryCredentials' when calling kubesubmitV4RepositoriesUpdate"); } - /** - *

List all GitOps repositories for a tenant

- *

Retrieve a list of all GitOps repositories for a tenant.

- *

200 - Returns a list of all GitOps repositories for the tenant. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndArgoCDRepositoryDataResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndArgoCDRepositoryDataResponse kubesubmitV4RepositoriesGetAll() throws OpenApiRequestException { - return kubesubmitV4RepositoriesGetAll(null, null, null, null); - } - - /** - *

Update the repository credentials.

- *

Update the referenced repository credentials to synchronize a repository.

- *

200 - The repository credentials have been updated and will eventually be synced. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param repositoryName (required) - Name of the repository - * @param bckndArgoCDRepositoryCredentials (required) - The value for the parameter bckndArgoCDRepositoryCredentials - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndArgoCDRepositoryModificationResponse - * @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 { - 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"); - } - - // verify the required parameter 'bckndArgoCDRepositoryCredentials' is set - if (bckndArgoCDRepositoryCredentials == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndArgoCDRepositoryCredentials' when calling kubesubmitV4RepositoriesUpdate"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("repositoryName", repositoryName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/repositories/{repositoryName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Update the repository credentials.

- *

Update the referenced repository credentials to synchronize a repository.

- *

200 - The repository credentials have been updated and will eventually be synced. - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param repositoryName - * Name of the repository - * @param bckndArgoCDRepositoryCredentials - * The value for the parameter bckndArgoCDRepositoryCredentials - * @return BckndArgoCDRepositoryModificationResponse - * @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); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("repositoryName", repositoryName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/repositories/{repositoryName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Update the repository credentials. + * + *

Update the referenced repository credentials to synchronize a repository. + * + *

200 - The repository credentials have been updated and will eventually be synced. + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param repositoryName Name of the repository + * @param bckndArgoCDRepositoryCredentials The value for the parameter + * bckndArgoCDRepositoryCredentials + * @return BckndArgoCDRepositoryModificationResponse + * @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); + } } 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..3046405e 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 @@ -1,176 +1,209 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndResourceGetResponse; import com.sap.ai.sdk.core.client.model.BckndResourcePatchBody; import com.sap.ai.sdk.core.client.model.BckndResourcePatchResponse; - -import java.util.HashMap; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.List; -import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ResourceApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ResourceApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ResourceApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ResourceApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get node request status corresponding to tenant + * + *

Lists all hot spare nodes, used nodes and total nodes corresponding to tenant. + * + *

200 - Reserved resource status were fetched + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndResourceGetResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndResourceGetResponse kubesubmitV4ResourcesGet(@Nullable final String authorization) + throws OpenApiRequestException { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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 node request status corresponding to tenant + * + *

Lists all hot spare nodes, used nodes and total nodes corresponding to tenant. + * + *

200 - Reserved resource status were fetched + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndResourceGetResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndResourceGetResponse kubesubmitV4ResourcesGet() throws OpenApiRequestException { + return kubesubmitV4ResourcesGet(null); + } + + /** + * Set reserved resources corresponding to tenant + * + *

Set hot spare nodes corresponding to tenant at main tenant level. + * + *

200 - Reserved resource has been set. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndResourcePatchBody (required) The value for the parameter bckndResourcePatchBody + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndResourcePatchResponse + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ResourceApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Get node request status corresponding to tenant

- *

Lists all hot spare nodes, used nodes and total nodes corresponding to tenant.

- *

200 - Reserved resource status were fetched - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndResourceGetResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndResourceGetResponse kubesubmitV4ResourcesGet( @Nullable final String authorization) throws OpenApiRequestException { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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 node request status corresponding to tenant

- *

Lists all hot spare nodes, used nodes and total nodes corresponding to tenant.

- *

200 - Reserved resource status were fetched - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndResourceGetResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndResourceGetResponse kubesubmitV4ResourcesGet() throws OpenApiRequestException { - return kubesubmitV4ResourcesGet(null); - } - - /** - *

Set reserved resources corresponding to tenant

- *

Set hot spare nodes corresponding to tenant at main tenant level.

- *

200 - Reserved resource has been set. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndResourcePatchBody (required) - The value for the parameter bckndResourcePatchBody - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndResourcePatchResponse - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Set reserved resources corresponding to tenant

- *

Set hot spare nodes corresponding to tenant at main tenant level.

- *

200 - Reserved resource has been set. - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndResourcePatchBody - * The value for the parameter bckndResourcePatchBody - * @return BckndResourcePatchResponse - * @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); - } + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resources/nodes").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Set reserved resources corresponding to tenant + * + *

Set hot spare nodes corresponding to tenant at main tenant level. + * + *

200 - Reserved resource has been set. + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndResourcePatchBody The value for the parameter bckndResourcePatchBody + * @return BckndResourcePatchResponse + * @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); + } } 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..2f784a3a 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 @@ -1,405 +1,562 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndResourceGroup; import com.sap.ai.sdk.core.client.model.BckndResourceGroupBase; import com.sap.ai.sdk.core.client.model.BckndResourceGroupDeletionResponse; import com.sap.ai.sdk.core.client.model.BckndResourceGroupList; import com.sap.ai.sdk.core.client.model.BckndResourceGroupPatchRequest; import com.sap.ai.sdk.core.client.model.BckndResourceGroupsPostRequest; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; +import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ResourceGroupApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ResourceGroupApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ResourceGroupApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ResourceGroupApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Creates a resource group + * + *

Create resource group to a given main tenant. The length of resource group id must be + * between 3 and 253. + * + *

202 - A resource group base object + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndResourceGroupsPostRequest (required) The value for the parameter + * bckndResourceGroupsPostRequest + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndResourceGroupBase + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ResourceGroupApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceGroups").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Creates a resource group + * + *

Create resource group to a given main tenant. The length of resource group id must be + * between 3 and 253. + * + *

202 - A resource group base object + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndResourceGroupsPostRequest The value for the parameter + * bckndResourceGroupsPostRequest + * @return BckndResourceGroupBase + * @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); + } + + /** + * Delete a resource group + * + *

Delete a resource group of a given main tenant. + * + *

202 - The deletion of the resource group has been scheduled successfully + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param resourceGroupId (required) Resource group identifier + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndResourceGroupDeletionResponse + * @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 { + 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"); } - - /** - *

Creates a resource group

- *

Create resource group to a given main tenant. The length of resource group id must be between 3 and 253.

- *

202 - A resource group base object - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndResourceGroupsPostRequest (required) - The value for the parameter bckndResourceGroupsPostRequest - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndResourceGroupBase - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("resourceGroupId", resourceGroupId); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceGroups/{resourceGroupId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Delete a resource group + * + *

Delete a resource group of a given main tenant. + * + *

202 - The deletion of the resource group has been scheduled successfully + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param resourceGroupId Resource group identifier + * @return BckndResourceGroupDeletionResponse + * @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); + } + + /** + * Get a resource group + * + *

Get a resource group of a given main tenant. + * + *

200 - A resource group object + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param resourceGroupId (required) Resource group identifier + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndResourceGroup + * @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 { + 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"); } - /** - *

Creates a resource group

- *

Create resource group to a given main tenant. The length of resource group id must be between 3 and 253.

- *

202 - A resource group base object - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndResourceGroupsPostRequest - * The value for the parameter bckndResourceGroupsPostRequest - * @return BckndResourceGroupBase - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("resourceGroupId", resourceGroupId); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceGroups/{resourceGroupId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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 a resource group + * + *

Get a resource group of a given main tenant. + * + *

200 - A resource group object + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param resourceGroupId Resource group identifier + * @return BckndResourceGroup + * @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); + } + + /** + * Gets all resource groups of a given tenant + * + *

Retrieve a list of resource groups for a given tenant. + * + *

200 - A list of resource groups + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param $top (optional) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $count (optional) When the $count field is set to false, the response contains a count + * of the items present in the response. When the $count field is set to true, the response + * contains a count of all the items present on the server, and not just the ones in the + * response. When the $count field is not passed, it is false by default. + * @param prefer (optional) <p> One can use the HTTP Prefer header to configure the + * \"maxpagesize\" of this endpoint. \"maxpagesize\" is the maximum number + * of resourcegroups to return for a request to this endpoint. If more resourcegroups exist, + * the response will include a \"Link\" HTTP header. This header will include the + * URL for getting the next batch of resourcegroups. <p> The \"maxpagesize\" + * preference and the \"continueToken\" parameter together enable splitting a large + * list of resourcegroups to small chunks. This feature can help to reduce the response time + * of a single list-resourcegroup request when the client has a large number resourcegroups in + * the system. <p> By default, the \"maxpagesize\" is not set, which means + * retrieving all resourcegroups in a single request. <p> Setting a maxpagesize may + * return fewer than the requested amount of resourcegroups (up to zero) in the event all + * requested resourcegroups are filtered out. The client should only use the presence of the + * Link header in the response to determine whether more resourcegroups are available. If + * \"maxpagesize\" is specified and the response does not include a Link header, the + * client may assume that no more resourcegroups are available. + * @param continueToken (optional) <p> A token for getting more resourcegroups from the + * service. It is encoded in the URL returned via a \"Link\" HTTP header of a + * response of this endpoint if the original request specified \"maxpagesize\" in a + * \"Prefer\" HTTP header and the number of available resourcegroups is larger than + * the number specified by \"maxpagesize\". Do <b>NOT</b> use the + * \"continueToken\" parameter in other scenarios. <p> The server may reject a + * continue token that it does not recognize. If the specified continue token is no longer + * valid whether due to expiration (generally five to fifteen minutes) or a configuration + * change on the server, the server will respond with a 410 ResourceExpired error. In this + * case, the client must restart their list request without the continue token. + * @param labelSelector (optional filter by labels. Pass in pairs in the form of + * 'key=value' and / or 'key!=value' separated by commas and the + * result will be filtered to only those scenarios containing and / or not containing all + * given key/values + * @return BckndResourceGroupList + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceGroups").build().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, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap(null, "continueToken", continueToken)); + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "labelSelector", + labelSelector)); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (prefer != null) localVarHeaderParams.add("Prefer", apiClient.parameterToString(prefer)); + + 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); + } + + /** + * Gets all resource groups of a given tenant + * + *

Retrieve a list of resource groups for a given tenant. + * + *

200 - A list of resource groups + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndResourceGroupList + * @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); + } + + /** + * Change some characteristics of the resource group + * + *

Replace some characteristics of the resource group, for instance labels. + * + *

202 - Resource group changes accepted. + * + *

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param resourceGroupId (required) Resource group identifier + * @param bckndResourceGroupPatchRequest (required) The value for the parameter + * bckndResourceGroupPatchRequest + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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 { + 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"); } - /** - *

Delete a resource group

- *

Delete a resource group of a given main tenant.

- *

202 - The deletion of the resource group has been scheduled successfully - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param resourceGroupId (required) - Resource group identifier - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndResourceGroupDeletionResponse - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("resourceGroupId", resourceGroupId); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups/{resourceGroupId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); + // verify the required parameter 'bckndResourceGroupPatchRequest' is set + if (bckndResourceGroupPatchRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'bckndResourceGroupPatchRequest' when calling kubesubmitV4ResourcegroupsPatch"); } - /** - *

Delete a resource group

- *

Delete a resource group of a given main tenant.

- *

202 - The deletion of the resource group has been scheduled successfully - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param resourceGroupId - * Resource group identifier - * @return BckndResourceGroupDeletionResponse - * @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); - } - - /** - *

Get a resource group

- *

Get a resource group of a given main tenant.

- *

200 - A resource group object - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param resourceGroupId (required) - Resource group identifier - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndResourceGroup - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("resourceGroupId", resourceGroupId); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups/{resourceGroupId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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 a resource group

- *

Get a resource group of a given main tenant.

- *

200 - A resource group object - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param resourceGroupId - * Resource group identifier - * @return BckndResourceGroup - * @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); - } - - /** - *

Gets all resource groups of a given tenant

- *

Retrieve a list of resource groups for a given tenant.

- *

200 - A list of resource groups - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param $top (optional) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $count (optional) - When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default. - * @param prefer (optional) - <p> One can use the HTTP Prefer header to configure the \"maxpagesize\" of this endpoint. \"maxpagesize\" is the maximum number of resourcegroups to return for a request to this endpoint. If more resourcegroups exist, the response will include a \"Link\" HTTP header. This header will include the URL for getting the next batch of resourcegroups. <p> The \"maxpagesize\" preference and the \"continueToken\" parameter together enable splitting a large list of resourcegroups to small chunks. This feature can help to reduce the response time of a single list-resourcegroup request when the client has a large number resourcegroups in the system. <p> By default, the \"maxpagesize\" is not set, which means retrieving all resourcegroups in a single request. <p> Setting a maxpagesize may return fewer than the requested amount of resourcegroups (up to zero) in the event all requested resourcegroups are filtered out. The client should only use the presence of the Link header in the response to determine whether more resourcegroups are available. If \"maxpagesize\" is specified and the response does not include a Link header, the client may assume that no more resourcegroups are available. - * @param continueToken (optional) - <p> A token for getting more resourcegroups from the service. It is encoded in the URL returned via a \"Link\" HTTP header of a response of this endpoint if the original request specified \"maxpagesize\" in a \"Prefer\" HTTP header and the number of available resourcegroups is larger than the number specified by \"maxpagesize\". Do <b>NOT</b> use the \"continueToken\" parameter in other scenarios. <p> The server may reject a continue token that it does not recognize. If the specified continue token is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error. In this case, the client must restart their list request without the continue token. - * @param labelSelector (optional - filter by labels. Pass in pairs in the form of 'key=value' and / or 'key!=value' separated by commas and the result will be filtered to only those scenarios containing and / or not containing all given key/values - * @return BckndResourceGroupList - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups").build().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, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "continueToken", continueToken)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "labelSelector", labelSelector)); - - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (prefer != null) - localVarHeaderParams.add("Prefer", apiClient.parameterToString(prefer)); - - 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); - } - - /** - *

Gets all resource groups of a given tenant

- *

Retrieve a list of resource groups for a given tenant.

- *

200 - A list of resource groups - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndResourceGroupList - * @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); - } - - /** - *

Change some characteristics of the resource group

- *

Replace some characteristics of the resource group, for instance labels.

- *

202 - Resource group changes accepted. - *

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param resourceGroupId (required) - Resource group identifier - * @param bckndResourceGroupPatchRequest (required) - The value for the parameter bckndResourceGroupPatchRequest - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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 { - 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"); - } - - // verify the required parameter 'bckndResourceGroupPatchRequest' is set - if (bckndResourceGroupPatchRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndResourceGroupPatchRequest' when calling kubesubmitV4ResourcegroupsPatch"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("resourceGroupId", resourceGroupId); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceGroups/{resourceGroupId}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - return new OpenApiResponse(apiClient); - } - - /** - *

Change some characteristics of the resource group

- *

Replace some characteristics of the resource group, for instance labels.

- *

202 - Resource group changes accepted. - *

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param resourceGroupId - * Resource group identifier - * @param bckndResourceGroupPatchRequest - * The value for the parameter bckndResourceGroupPatchRequest - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("resourceGroupId", resourceGroupId); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceGroups/{resourceGroupId}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + return new OpenApiResponse(apiClient); + } + + /** + * Change some characteristics of the resource group + * + *

Replace some characteristics of the resource group, for instance labels. + * + *

202 - Resource group changes accepted. + * + *

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param resourceGroupId Resource group identifier + * @param bckndResourceGroupPatchRequest The value for the parameter + * bckndResourceGroupPatchRequest + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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); + } } 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..80132911 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 @@ -1,443 +1,583 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndCommonResourceQuotaResponse; import com.sap.ai.sdk.core.client.model.BckndDeploymentResourceQuotaResponse; -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; import com.sap.ai.sdk.core.client.model.BckndExecutableResourceQuotaResponse; - -import java.util.HashMap; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.List; -import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ResourceQuotaApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ResourceQuotaApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ResourceQuotaApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Get the quota for applications

- *

Get the details about quota and usage for applications

- *

200 - quota for applications - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndCommonResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/applications").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for applications

- *

Get the details about quota and usage for applications

- *

200 - quota for applications - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndCommonResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetApplicationQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetApplicationQuota(null, null); - } - - /** - *

Get the quota for deployments

- *

Get the details about quota and usage for deployments

- *

200 - A resource quota object - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndDeploymentResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/deployments").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for deployments

- *

Get the details about quota and usage for deployments

- *

200 - A resource quota object - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndDeploymentResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeploymentQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetDeploymentQuota(null, null); - } - - /** - *

Get the quota for docker registry secrets

- *

Get the details about quota and usage for docker registry secrets

- *

200 - quota for generic secrets on the tenant level - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndCommonResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/dockerRegistrySecrets").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for docker registry secrets

- *

Get the details about quota and usage for docker registry secrets

- *

200 - quota for generic secrets on the tenant level - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndCommonResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota(null, null); - } - - /** - *

Get the quota for executables

- *

Get the details about quota and usage for executables

- *

200 - quota for executable - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndExecutableResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/executables").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for executables

- *

Get the details about quota and usage for executables

- *

200 - quota for executable - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndExecutableResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutableQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetExecutableQuota(null, null); - } - - /** - *

Get the quota for tenant-level generic secrets

- *

Get the details about quota and usage for tenant-level generic secrets

- *

200 - quota for generic secrets on the tenant level - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndCommonResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/secrets").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for tenant-level generic secrets

- *

Get the details about quota and usage for tenant-level generic secrets

- *

200 - quota for generic secrets on the tenant level - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndCommonResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecretQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetGenericSecretQuota(null, null); - } - - /** - *

Get the quota for repositories

- *

Get the details about quota and usage for repositories

- *

200 - quota for repositories - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndCommonResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/repositories").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for repositories

- *

Get the details about quota and usage for repositories

- *

200 - quota for repositories - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndCommonResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetRepositoryQuota(null, null); - } - - /** - *

Get the quota for resource groups

- *

Get the details about quota and usage for resource groups

- *

200 - quota for resourcegroups - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param quotaOnly (optional) - When being set to true, the response contains only the quota of the resource and not the quota usage. - * @return BckndCommonResourceQuotaResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/resourceQuota/resourceGroups").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); - - - 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 the quota for resource groups

- *

Get the details about quota and usage for resource groups

- *

200 - quota for resourcegroups - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndCommonResourceQuotaResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetResourceGroupQuota() throws OpenApiRequestException { - return kubesubmitV4ResourceQuotaGetResourceGroupQuota(null, null); - } + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ResourceQuotaApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ResourceQuotaApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get the quota for applications + * + *

Get the details about quota and usage for applications + * + *

200 - quota for applications + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndCommonResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/applications").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for applications + * + *

Get the details about quota and usage for applications + * + *

200 - quota for applications + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndCommonResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetApplicationQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetApplicationQuota(null, null); + } + + /** + * Get the quota for deployments + * + *

Get the details about quota and usage for deployments + * + *

200 - A resource quota object + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndDeploymentResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/deployments").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for deployments + * + *

Get the details about quota and usage for deployments + * + *

200 - A resource quota object + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndDeploymentResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndDeploymentResourceQuotaResponse kubesubmitV4ResourceQuotaGetDeploymentQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetDeploymentQuota(null, null); + } + + /** + * Get the quota for docker registry secrets + * + *

Get the details about quota and usage for docker registry secrets + * + *

200 - quota for generic secrets on the tenant level + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndCommonResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/dockerRegistrySecrets") + .build() + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for docker registry secrets + * + *

Get the details about quota and usage for docker registry secrets + * + *

200 - quota for generic secrets on the tenant level + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndCommonResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetDockerRegistrySecretQuota(null, null); + } + + /** + * Get the quota for executables + * + *

Get the details about quota and usage for executables + * + *

200 - quota for executable + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndExecutableResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/executables").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for executables + * + *

Get the details about quota and usage for executables + * + *

200 - quota for executable + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndExecutableResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndExecutableResourceQuotaResponse kubesubmitV4ResourceQuotaGetExecutableQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetExecutableQuota(null, null); + } + + /** + * Get the quota for tenant-level generic secrets + * + *

Get the details about quota and usage for tenant-level generic secrets + * + *

200 - quota for generic secrets on the tenant level + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndCommonResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/secrets").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for tenant-level generic secrets + * + *

Get the details about quota and usage for tenant-level generic secrets + * + *

200 - quota for generic secrets on the tenant level + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndCommonResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetGenericSecretQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetGenericSecretQuota(null, null); + } + + /** + * Get the quota for repositories + * + *

Get the details about quota and usage for repositories + * + *

200 - quota for repositories + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndCommonResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/repositories").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for repositories + * + *

Get the details about quota and usage for repositories + * + *

200 - quota for repositories + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndCommonResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetRepositoryQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetRepositoryQuota(null, null); + } + + /** + * Get the quota for resource groups + * + *

Get the details about quota and usage for resource groups + * + *

200 - quota for resourcegroups + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param quotaOnly (optional) When being set to true, the response contains only the quota of the + * resource and not the quota usage. + * @return BckndCommonResourceQuotaResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/resourceQuota/resourceGroups").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "quotaOnly", quotaOnly)); + + 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 the quota for resource groups + * + *

Get the details about quota and usage for resource groups + * + *

200 - quota for resourcegroups + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndCommonResourceQuotaResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndCommonResourceQuotaResponse kubesubmitV4ResourceQuotaGetResourceGroupQuota() + throws OpenApiRequestException { + return kubesubmitV4ResourceQuotaGetResourceGroupQuota(null, null); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/ScenarioApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/ScenarioApi.java index 6ab2d68d..9f0f9bd7 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 @@ -1,277 +1,362 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.AiModelList; import com.sap.ai.sdk.core.client.model.AiScenario; import com.sap.ai.sdk.core.client.model.AiScenarioList; import com.sap.ai.sdk.core.client.model.AiVersionList; -import com.sap.ai.sdk.core.client.model.ArtifactQuery400Response; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ScenarioApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ScenarioApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ScenarioApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ScenarioApi(@Nonnull final ApiClient apiClient) { + super(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. + * + *

400 - The specification of the resource was incorrect + * + * @param scenarioId Scenario identifier + * @param aiResourceGroup Specify a resource group id + * @return AiModelList + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ScenarioApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + // verify the required parameter 'aiResourceGroup' is set + if (aiResourceGroup == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiResourceGroup' when calling modelsGet"); } - /** - *

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 - * @param scenarioId - * Scenario identifier - * @param aiResourceGroup - * Specify a resource group id - * @return AiModelList - * @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 { - 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"); - } - - // 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 MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + // 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 MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 scenario by id + * + *

Retrieve details for a scenario specified by scenarioId. + * + *

200 - A scenario + * + *

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 + * @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 { + 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"); } - /** - *

Get scenario by id

- *

Retrieve details for a scenario specified by scenarioId.

- *

200 - A scenario - *

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 - * @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 { - 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"); - } - - // 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 MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + + // verify the required parameter 'scenarioId' is set + if (scenarioId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'scenarioId' when calling scenarioGet"); } - /** - *

Get list of scenarios

- *

Retrieve a list of all available scenarios.

- *

200 - A list of scenarios - * @param aiResourceGroup - * Specify a resource group id - * @return AiScenarioList - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public AiScenarioList scenarioQuery( @Nonnull final String aiResourceGroup) throws OpenApiRequestException { - final Object localVarPostBody = null; - - // verify the required parameter 'aiResourceGroup' is set - if (aiResourceGroup == null) { - throw new OpenApiRequestException("Missing the required parameter 'aiResourceGroup' when calling scenarioQuery"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + + // 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 MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of scenarios + * + *

Retrieve a list of all available scenarios. + * + *

200 - A list of scenarios + * + * @param aiResourceGroup Specify a resource group id + * @return AiScenarioList + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public AiScenarioList scenarioQuery(@Nonnull final String aiResourceGroup) + throws OpenApiRequestException { + final Object localVarPostBody = null; + + // verify the required parameter 'aiResourceGroup' is set + if (aiResourceGroup == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'aiResourceGroup' when calling scenarioQuery"); } - /** - *

Get list of versions for scenario

- *

Retrieve a list of scenario versions based on the versions of executables available within that scenario.

- *

200 - A list of versions for the scenario - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup (required) - Specify a resource group id - * @param scenarioId (required) - Scenario identifier - * @param labelSelector (optional - filter by labels. Pass in expressions in the form of \"key=value\" or \"key!=value\" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND) - * @return AiVersionList - * @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 { - 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"); - } - - // verify the required parameter 'scenarioId' is set - if (scenarioId == null) { - throw new OpenApiRequestException("Missing the required parameter 'scenarioId' when calling scenarioQueryVersions"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("scenarioId", scenarioId); - final String localVarPath = UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/versions").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "labelSelector", labelSelector)); - - - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - - 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); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/scenarios").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of versions for scenario + * + *

Retrieve a list of scenario versions based on the versions of executables available within + * that scenario. + * + *

200 - A list of versions for the scenario + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup (required) Specify a resource group id + * @param scenarioId (required) Scenario identifier + * @param labelSelector (optional filter by labels. Pass in expressions in the form of + * \"key=value\" or \"key!=value\" separated by commas and the + * result will be filtered to only those resources that have labels that match all provided + * expressions (i.e. logical AND) + * @return AiVersionList + * @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 { + 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"); } - /** - *

Get list of versions for scenario

- *

Retrieve a list of scenario versions based on the versions of executables available within that scenario.

- *

200 - A list of versions for the scenario - *

400 - The specification of the resource was incorrect - * @param aiResourceGroup - * Specify a resource group id - * @param scenarioId - * Scenario identifier - * @return AiVersionList - * @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); + // verify the required parameter 'scenarioId' is set + if (scenarioId == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'scenarioId' when calling scenarioQueryVersions"); } + + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("scenarioId", scenarioId); + final String localVarPath = + UriComponentsBuilder.fromPath("/lm/scenarios/{scenarioId}/versions") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + localVarQueryParams.putAll( + apiClient.parameterToMultiValueMap( + ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), + "labelSelector", + labelSelector)); + + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + + 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 list of versions for scenario + * + *

Retrieve a list of scenario versions based on the versions of executables available within + * that scenario. + * + *

200 - A list of versions for the scenario + * + *

400 - The specification of the resource was incorrect + * + * @param aiResourceGroup Specify a resource group id + * @param scenarioId Scenario identifier + * @return AiVersionList + * @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); + } } 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..ab8154cc 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 @@ -1,362 +1,464 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndGenericSecretDataResponse; import com.sap.ai.sdk.core.client.model.BckndGenericSecretPatchBody; import com.sap.ai.sdk.core.client.model.BckndGenericSecretPostBody; import com.sap.ai.sdk.core.client.model.BckndListGenericSecretsResponse; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; +import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class SecretApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public SecretApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } - - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public SecretApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Create a new generic secret

- *

Create a new generic secret in the corresponding resource group or at main tenant level.

- *

200 - Secret has been created - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndGenericSecretPostBody (required) - The value for the parameter bckndGenericSecretPostBody - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional) - Specify an existing resource group id to use - * @param aiTenantScope (optional) - Specify whether the main tenant scope is to be used - * @return BckndGenericSecretDataResponse - * @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 { - 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"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - if (aiTenantScope != null) - localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Create a new generic secret

- *

Create a new generic secret in the corresponding resource group or at main tenant level.

- *

200 - Secret has been created - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param bckndGenericSecretPostBody - * The value for the parameter bckndGenericSecretPostBody - * @return BckndGenericSecretDataResponse - * @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); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public SecretApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public SecretApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Create a new generic secret + * + *

Create a new generic secret in the corresponding resource group or at main tenant level. + * + *

200 - Secret has been created + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndGenericSecretPostBody (required) The value for the parameter + * bckndGenericSecretPostBody + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional) Specify an existing resource group id to use + * @param aiTenantScope (optional) Specify whether the main tenant scope is to be used + * @return BckndGenericSecretDataResponse + * @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 { + 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"); } - /** - *

Deletes the secret

- *

Deletes the secret from provided resource group namespace

- *

200 - The secret has been removed - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param secretName (required) - The value for the parameter secretName - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional) - Specify an existing resource group id to use - * @param aiTenantScope (optional) - Specify whether the main tenant scope is to be used - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("secretName", secretName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets/{secretName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - if (aiTenantScope != null) - localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); - - 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() {}; - apiClient.invokeAPI(localVarPath, HttpMethod.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - return new OpenApiResponse(apiClient); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/secrets").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + if (aiTenantScope != null) + localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Create a new generic secret + * + *

Create a new generic secret in the corresponding resource group or at main tenant level. + * + *

200 - Secret has been created + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param bckndGenericSecretPostBody The value for the parameter bckndGenericSecretPostBody + * @return BckndGenericSecretDataResponse + * @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); + } + + /** + * Deletes the secret + * + *

Deletes the secret from provided resource group namespace + * + *

200 - The secret has been removed + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param secretName (required) The value for the parameter secretName + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional) Specify an existing resource group id to use + * @param aiTenantScope (optional) Specify whether the main tenant scope is to be used + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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 { + 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"); } - /** - *

Deletes the secret

- *

Deletes the secret from provided resource group namespace

- *

200 - The secret has been removed - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param secretName - * The value for the parameter secretName - * @return An OpenApiResponse containing the status code of the HttpResponse. - * @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); + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("secretName", secretName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/secrets/{secretName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + if (aiTenantScope != null) + localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); + + 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() {}; + apiClient.invokeAPI( + localVarPath, + HttpMethod.DELETE, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + return new OpenApiResponse(apiClient); + } + + /** + * Deletes the secret + * + *

Deletes the secret from provided resource group namespace + * + *

200 - The secret has been removed + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param secretName The value for the parameter secretName + * @return An OpenApiResponse containing the status code of the HttpResponse. + * @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); + } + + /** + * Lists all secrets corresponding to tenant + * + *

Lists all secrets corresponding to tenant. This retrieves metadata only, not the secret data + * itself. + * + *

200 - The secrets were fetched + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param $top (optional) Number of results to display + * @param $skip (optional) Number of results to be skipped from the ordered list of results + * @param $count (optional) When the $count field is set to false, the response contains a count + * of the items present in the response. When the $count field is set to true, the response + * contains a count of all the items present on the server, and not just the ones in the + * response. When the $count field is not passed, it is false by default. + * @param aiResourceGroup (optional) Specify an existing resource group id to use + * @param aiTenantScope (optional) Specify whether the main tenant scope is to be used + * @return BckndListGenericSecretsResponse + * @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 { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/secrets").build().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, "$skip", $skip)); + localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + if (aiTenantScope != null) + localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); + + 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); + } + + /** + * Lists all secrets corresponding to tenant + * + *

Lists all secrets corresponding to tenant. This retrieves metadata only, not the secret data + * itself. + * + *

200 - The secrets were fetched + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndListGenericSecretsResponse + * @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); + } + + /** + * Update secret credentials + * + *

Update secret credentials. Replace secret data with the provided data. + * + *

200 - The secret has been updated + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param secretName (required) The value for the parameter secretName + * @param bckndGenericSecretPatchBody (required) The value for the parameter + * bckndGenericSecretPatchBody + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @param aiResourceGroup (optional) Specify an existing resource group id to use + * @param aiTenantScope (optional) Specify whether the main tenant scope is to be used + * @return BckndGenericSecretDataResponse + * @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 { + 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"); } - /** - *

Lists all secrets corresponding to tenant

- *

Lists all secrets corresponding to tenant. This retrieves metadata only, not the secret data itself.

- *

200 - The secrets were fetched - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param $top (optional) - Number of results to display - * @param $skip (optional) - Number of results to be skipped from the ordered list of results - * @param $count (optional) - When the $count field is set to false, the response contains a count of the items present in the response. When the $count field is set to true, the response contains a count of all the items present on the server, and not just the ones in the response. When the $count field is not passed, it is false by default. - * @param aiResourceGroup (optional) - Specify an existing resource group id to use - * @param aiTenantScope (optional) - Specify whether the main tenant scope is to be used - * @return BckndListGenericSecretsResponse - * @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 { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets").build().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, "$skip", $skip)); - localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "$count", $count)); - - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - if (aiTenantScope != null) - localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); - - 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); + // verify the required parameter 'bckndGenericSecretPatchBody' is set + if (bckndGenericSecretPatchBody == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'bckndGenericSecretPatchBody' when calling kubesubmitV4GenericSecretsUpdate"); } - /** - *

Lists all secrets corresponding to tenant

- *

Lists all secrets corresponding to tenant. This retrieves metadata only, not the secret data itself.

- *

200 - The secrets were fetched - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndListGenericSecretsResponse - * @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); - } - - /** - *

Update secret credentials

- *

Update secret credentials. Replace secret data with the provided data.

- *

200 - The secret has been updated - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param secretName (required) - The value for the parameter secretName - * @param bckndGenericSecretPatchBody (required) - The value for the parameter bckndGenericSecretPatchBody - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @param aiResourceGroup (optional) - Specify an existing resource group id to use - * @param aiTenantScope (optional) - Specify whether the main tenant scope is to be used - * @return BckndGenericSecretDataResponse - * @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 { - 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"); - } - - // verify the required parameter 'bckndGenericSecretPatchBody' is set - if (bckndGenericSecretPatchBody == null) { - throw new OpenApiRequestException("Missing the required parameter 'bckndGenericSecretPatchBody' when calling kubesubmitV4GenericSecretsUpdate"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("secretName", secretName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/secrets/{secretName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - if (authorization != null) - localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); - if (aiResourceGroup != null) - localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); - if (aiTenantScope != null) - localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); - - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - final String[] localVarAuthNames = new String[] { "Oauth2" }; - - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.PATCH, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } - - /** - *

Update secret credentials

- *

Update secret credentials. Replace secret data with the provided data.

- *

200 - The secret has been updated - *

404 - The specified resource was not found - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param secretName - * The value for the parameter secretName - * @param bckndGenericSecretPatchBody - * The value for the parameter bckndGenericSecretPatchBody - * @return BckndGenericSecretDataResponse - * @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); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("secretName", secretName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/secrets/{secretName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + if (authorization != null) + localVarHeaderParams.add("Authorization", apiClient.parameterToString(authorization)); + if (aiResourceGroup != null) + localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup)); + if (aiTenantScope != null) + localVarHeaderParams.add("AI-Tenant-Scope", apiClient.parameterToString(aiTenantScope)); + + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + final String[] localVarAuthNames = new String[] {"Oauth2"}; + + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.PATCH, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } + + /** + * Update secret credentials + * + *

Update secret credentials. Replace secret data with the provided data. + * + *

200 - The secret has been updated + * + *

404 - The specified resource was not found + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param secretName The value for the parameter secretName + * @param bckndGenericSecretPatchBody The value for the parameter bckndGenericSecretPatchBody + * @return BckndGenericSecretDataResponse + * @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); + } } 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..25d8f996 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 @@ -1,178 +1,218 @@ - - package com.sap.ai.sdk.core.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.core.client.model.BckndErrorResponse; +import com.google.common.annotations.Beta; import com.sap.ai.sdk.core.client.model.BckndExtendedService; import com.sap.ai.sdk.core.client.model.BckndServiceList; - +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.HashMap; import java.util.List; -import java.util.Locale; import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * AI Core in version 2.33.0. * - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + *

Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a + * batch job, for example to pre-process or train your models, or perform batch inference. Serve + * inference requests of trained models. Deploy а trained machine learning model as a web service to + * serve inference requests with high performance. Register your own Docker registry, synchronize + * your AI content from your own git repository, and register your own object store for training + * data and trained models. */ public class ServiceApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the AI Core. - * - * @param httpDestination The destination that API should be used with - */ - public ServiceApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); + /** + * Instantiates this API class to invoke operations on the AI Core. + * + * @param httpDestination The destination that API should be used with + */ + public ServiceApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the AI Core based on a given {@link + * ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public ServiceApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * Get a service + * + *

Get an service of a given main tenant. + * + *

200 - A service object + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param serviceName (required) Name of the Service + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndExtendedService + * @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 { + 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"); } - /** - * Instantiates this API class to invoke operations on the AI Core based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public ServiceApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } - - - /** - *

Get a service

- *

Get an service of a given main tenant.

- *

200 - A service object - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param serviceName (required) - Name of the Service - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndExtendedService - * @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 { - 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"); - } - - // create path and map variables - final Map localVarPathParams = new HashMap(); - localVarPathParams.put("ServiceName", serviceName); - final String localVarPath = UriComponentsBuilder.fromPath("/admin/services/{ServiceName}").buildAndExpand(localVarPathParams).toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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 a service

- *

Get an service of a given main tenant.

- *

200 - A service object - *

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

404 - The specified resource was not found - *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param serviceName - * Name of the Service - * @return BckndExtendedService - * @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); - } - - /** - *

Gets all services of a given main tenant

- *

Retrieve a list of services for a given main tenant.

- *

200 - A list of services - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @param authorization (optional) - Authorization bearer token containing a JWT token. - * @return BckndServiceList - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndServiceList kubesubmitV4AiservicesGetAll( @Nullable final String authorization) throws OpenApiRequestException { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/admin/services").build().toUriString(); - - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); - - 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); - } - - /** - *

Gets all services of a given main tenant

- *

Retrieve a list of services for a given main tenant.

- *

200 - A list of services - *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. - * @return BckndServiceList - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public BckndServiceList kubesubmitV4AiservicesGetAll() throws OpenApiRequestException { - return kubesubmitV4AiservicesGetAll(null); - } + // create path and map variables + final Map localVarPathParams = new HashMap(); + localVarPathParams.put("ServiceName", serviceName); + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/services/{ServiceName}") + .buildAndExpand(localVarPathParams) + .toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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 a service + * + *

Get an service of a given main tenant. + * + *

200 - A service object + * + *

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

404 - The specified resource was not found + * + *

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param serviceName Name of the Service + * @return BckndExtendedService + * @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); + } + + /** + * Gets all services of a given main tenant + * + *

Retrieve a list of services for a given main tenant. + * + *

200 - A list of services + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @param authorization (optional) Authorization bearer token containing a JWT token. + * @return BckndServiceList + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndServiceList kubesubmitV4AiservicesGetAll(@Nullable final String authorization) + throws OpenApiRequestException { + final Object localVarPostBody = null; + + final String localVarPath = + UriComponentsBuilder.fromPath("/admin/services").build().toUriString(); + + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); + + 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); + } + + /** + * Gets all services of a given main tenant + * + *

Retrieve a list of services for a given main tenant. + * + *

200 - A list of services + * + *

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

0 - HTTP status codes 401, 403 or 500. Response body contains further details. + * + * @return BckndServiceList + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public BckndServiceList kubesubmitV4AiservicesGetAll() throws OpenApiRequestException { + return kubesubmitV4AiservicesGetAll(null); + } } diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java index 78d0875b..3d2d9586 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiApiError - */ +/** AiApiError */ // CHECKSTYLE:OFF -public class AiApiError +public class AiApiError // CHECKSTYLE:ON { @JsonProperty("code") @@ -57,153 +44,169 @@ public class AiApiError @JsonProperty("details") private Object details; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiApiError() { } - - /** - * Set the code of this {@link AiApiError} instance and return the same instance. - * - * @param code Descriptive error code (not http status code) - * @return The same instance of this {@link AiApiError} class - */ - @Nonnull public AiApiError code(@Nonnull final String code) { + + protected AiApiError() {} + + /** + * Set the code of this {@link AiApiError} instance and return the same instance. + * + * @param code Descriptive error code (not http status code) + * @return The same instance of this {@link AiApiError} class + */ + @Nonnull + public AiApiError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code) - * @return code The code of this {@link AiApiError} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code) + * + * @return code The code of this {@link AiApiError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link AiApiError} instance. * - * @param code Descriptive error code (not http status code) + * @param code Descriptive error code (not http status code) */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link AiApiError} instance and return the same instance. - * - * @param message Plaintext error description - * @return The same instance of this {@link AiApiError} class - */ - @Nonnull public AiApiError message(@Nonnull final String message) { + /** + * Set the message of this {@link AiApiError} instance and return the same instance. + * + * @param message Plaintext error description + * @return The same instance of this {@link AiApiError} class + */ + @Nonnull + public AiApiError message(@Nonnull final String message) { this.message = message; return this; } - /** - * Plaintext error description - * @return message The message of this {@link AiApiError} instance. - */ - @Nonnull public String getMessage() { + /** + * Plaintext error description + * + * @return message The message of this {@link AiApiError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiApiError} instance. * - * @param message Plaintext error description + * @param message Plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the requestId of this {@link AiApiError} instance and return the same instance. - * - * @param requestId ID of the individual request - * @return The same instance of this {@link AiApiError} class - */ - @Nonnull public AiApiError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link AiApiError} instance and return the same instance. + * + * @param requestId ID of the individual request + * @return The same instance of this {@link AiApiError} class + */ + @Nonnull + public AiApiError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * ID of the individual request - * @return requestId The requestId of this {@link AiApiError} instance. - */ - @Nonnull public String getRequestId() { + /** + * ID of the individual request + * + * @return requestId The requestId of this {@link AiApiError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link AiApiError} instance. * - * @param requestId ID of the individual request + * @param requestId ID of the individual request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the target of this {@link AiApiError} instance and return the same instance. - * - * @param target Invoked URL - * @return The same instance of this {@link AiApiError} class - */ - @Nonnull public AiApiError target(@Nonnull final String target) { + /** + * Set the target of this {@link AiApiError} instance and return the same instance. + * + * @param target Invoked URL + * @return The same instance of this {@link AiApiError} class + */ + @Nonnull + public AiApiError target(@Nonnull final String target) { this.target = target; return this; } - /** - * Invoked URL - * @return target The target of this {@link AiApiError} instance. - */ - @Nonnull public String getTarget() { + /** + * Invoked URL + * + * @return target The target of this {@link AiApiError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link AiApiError} instance. * - * @param target Invoked URL + * @param target Invoked URL */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the details of this {@link AiApiError} instance and return the same instance. - * - * @param details Optional details of the error message - * @return The same instance of this {@link AiApiError} class - */ - @Nonnull public AiApiError details(@Nonnull final Object details) { + /** + * Set the details of this {@link AiApiError} instance and return the same instance. + * + * @param details Optional details of the error message + * @return The same instance of this {@link AiApiError} class + */ + @Nonnull + public AiApiError details(@Nonnull final Object details) { this.details = details; return this; } - /** - * Optional details of the error message - * @return details The details of this {@link AiApiError} instance. - */ - @Nonnull public Object getDetails() { + /** + * Optional details of the error message + * + * @return details The details of this {@link AiApiError} instance. + */ + @Nonnull + public Object getDetails() { return details; } /** * Set the details of this {@link AiApiError} instance. * - * @param details Optional details of the error message + * @param details Optional details of the error message */ - public void setDetails( @Nonnull final Object details) { + public void setDetails(@Nonnull final Object details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link AiApiError}. + * * @return The set of properties names */ @JsonIgnore @@ -214,31 +217,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiApiError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiApiError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiApiError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiApiError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiApiError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,12 +251,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiApiError aiApiError = (AiApiError) o; - return Objects.equals(this.cloudSdkCustomFields, aiApiError.cloudSdkCustomFields) && - Objects.equals(this.code, aiApiError.code) && - Objects.equals(this.message, aiApiError.message) && - Objects.equals(this.requestId, aiApiError.requestId) && - Objects.equals(this.target, aiApiError.target) && - Objects.equals(this.details, aiApiError.details); + return Objects.equals(this.cloudSdkCustomFields, aiApiError.cloudSdkCustomFields) + && Objects.equals(this.code, aiApiError.code) + && Objects.equals(this.message, aiApiError.message) + && Objects.equals(this.requestId, aiApiError.requestId) + && Objects.equals(this.target, aiApiError.target) + && Objects.equals(this.details, aiApiError.details); } @Override @@ -262,7 +265,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiApiError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -270,14 +274,15 @@ public int hashCode() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -286,36 +291,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiApiError} instance + * with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new AiApiError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiApiError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new AiApiError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link AiApiError} instance. - * - * @param code Descriptive error code (not http status code) - * @return The AiApiError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiApiError} instance. - * - * @param message Plaintext error description - * @return The AiApiError instance. - */ - AiApiError message( @Nonnull final String message); - } + * Set the code of this {@link AiApiError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The AiApiError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiApiError} instance. + * + * @param message Plaintext error description + * @return The AiApiError instance. + */ + AiApiError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java index 5624ef77..0d212a7d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiApiErrorWithId.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiApiError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiApiErrorWithId - */ +/** AiApiErrorWithId */ // CHECKSTYLE:OFF -public class AiApiErrorWithId +public class AiApiErrorWithId // CHECKSTYLE:ON { @JsonProperty("id") @@ -49,69 +35,76 @@ public class AiApiErrorWithId @JsonProperty("error") private AiApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiApiErrorWithId() { } - - /** - * Set the id of this {@link AiApiErrorWithId} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiApiErrorWithId} class - */ - @Nonnull public AiApiErrorWithId id(@Nonnull final String id) { + + protected AiApiErrorWithId() {} + + /** + * Set the id of this {@link AiApiErrorWithId} instance and return the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiApiErrorWithId} class + */ + @Nonnull + public AiApiErrorWithId id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiApiErrorWithId} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiApiErrorWithId} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiApiErrorWithId} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the error of this {@link AiApiErrorWithId} instance and return the same instance. - * - * @param error The error of this {@link AiApiErrorWithId} - * @return The same instance of this {@link AiApiErrorWithId} class - */ - @Nonnull public AiApiErrorWithId error(@Nonnull final AiApiError error) { + /** + * Set the error of this {@link AiApiErrorWithId} instance and return the same instance. + * + * @param error The error of this {@link AiApiErrorWithId} + * @return The same instance of this {@link AiApiErrorWithId} class + */ + @Nonnull + public AiApiErrorWithId error(@Nonnull final AiApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link AiApiErrorWithId} instance. - */ - @Nonnull public AiApiError getError() { + /** + * Get error + * + * @return error The error of this {@link AiApiErrorWithId} instance. + */ + @Nonnull + public AiApiError getError() { return error; } /** * Set the error of this {@link AiApiErrorWithId} instance. * - * @param error The error of this {@link AiApiErrorWithId} + * @param error The error of this {@link AiApiErrorWithId} */ - public void setError( @Nonnull final AiApiError error) { + public void setError(@Nonnull final AiApiError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link AiApiErrorWithId}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiApiErrorWithId} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiApiErrorWithId has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiApiErrorWithId has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiApiErrorWithId} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiApiErrorWithId} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiApiErrorWithId aiApiErrorWithId = (AiApiErrorWithId) o; - return Objects.equals(this.cloudSdkCustomFields, aiApiErrorWithId.cloudSdkCustomFields) && - Objects.equals(this.id, aiApiErrorWithId.id) && - Objects.equals(this.error, aiApiErrorWithId.error); + return Objects.equals(this.cloudSdkCustomFields, aiApiErrorWithId.cloudSdkCustomFields) + && Objects.equals(this.id, aiApiErrorWithId.id) + && Objects.equals(this.error, aiApiErrorWithId.error); } @Override @@ -167,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiApiErrorWithId {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiApiErrorWithId} + * instance with all required arguments. + */ + public static Builder create() { + return (id) -> (error) -> new AiApiErrorWithId().id(id).error(error); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiApiErrorWithId} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (error) -> new AiApiErrorWithId().id(id).error(error); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiApiErrorWithId} instance. - * - * @param id Generic ID - * @return The AiApiErrorWithId builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the error of this {@link AiApiErrorWithId} instance. - * - * @param error The error of this {@link AiApiErrorWithId} - * @return The AiApiErrorWithId instance. - */ - AiApiErrorWithId error( @Nonnull final AiApiError error); - } + * Set the id of this {@link AiApiErrorWithId} instance. + * + * @param id Generic ID + * @return The AiApiErrorWithId builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the error of this {@link AiApiErrorWithId} instance. + * + * @param error The error of this {@link AiApiErrorWithId} + * @return The AiApiErrorWithId instance. + */ + AiApiErrorWithId error(@Nonnull final AiApiError error); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java index 93423d86..da17cbeb 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifact.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,32 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiLabel; -import com.sap.ai.sdk.core.client.model.AiScenario; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Base data of the artifact; this is the data that can be provided when the artifact is created; `name` and `kind` are required because they constitute important semantic filtering criteria for use in training / inference executables (`name` is a semantic handle of the artifact within a scenario and `kind` specifies the type of usage, e.g. you would only want to allow models in the model operator). + * Base data of the artifact; this is the data that can be provided when the artifact is created; + * `name` and `kind` are required because they constitute important semantic + * filtering criteria for use in training / inference executables (`name` is a semantic + * handle of the artifact within a scenario and `kind` specifies the type of usage, e.g. + * you would only want to allow models in the model operator). */ // CHECKSTYLE:OFF -public class AiArtifact +public class AiArtifact // CHECKSTYLE:ON { @JsonProperty("labels") @@ -54,28 +46,18 @@ public class AiArtifact @JsonProperty("name") private String name; - /** - * Kind of the artifact, i.e. model or dataset - */ + /** Kind of the artifact, i.e. model or dataset */ public enum KindEnum { - /** - * The MODEL option of this AiArtifact - */ + /** The MODEL option of this AiArtifact */ MODEL("model"), - - /** - * The DATASET option of this AiArtifact - */ + + /** The DATASET option of this AiArtifact */ DATASET("dataset"), - - /** - * The RESULTSET option of this AiArtifact - */ + + /** The RESULTSET option of this AiArtifact */ RESULTSET("resultset"), - - /** - * The OTHER option of this AiArtifact - */ + + /** The OTHER option of this AiArtifact */ OTHER("other"); private String value; @@ -85,30 +67,36 @@ public enum KindEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiArtifact - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiArtifact + */ @JsonCreator - @Nonnull public static KindEnum fromValue(@Nonnull final String value) { + @Nonnull + public static KindEnum fromValue(@Nonnull final String value) { for (KindEnum b : KindEnum.values()) { if (b.value.equals(value)) { return b; @@ -148,27 +136,31 @@ public enum KindEnum { @JsonProperty("scenario") private AiScenario scenario; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiArtifact() { } - - /** - * Set the labels of this {@link AiArtifact} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact labels(@Nonnull final List labels) { + + protected AiArtifact() {} + + /** + * Set the labels of this {@link AiArtifact} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link AiArtifact}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link AiArtifact} */ - @Nonnull public AiArtifact addLabelsItem( @Nonnull final AiLabel labelsItem) { + @Nonnull + public AiArtifact addLabelsItem(@Nonnull final AiLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -176,333 +168,369 @@ protected AiArtifact() { } return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link AiArtifact} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link AiArtifact} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link AiArtifact} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the name of this {@link AiArtifact} instance and return the same instance. - * - * @param name Name of the artifact - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact name(@Nonnull final String name) { + /** + * Set the name of this {@link AiArtifact} instance and return the same instance. + * + * @param name Name of the artifact + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the artifact - * @return name The name of this {@link AiArtifact} instance. - */ - @Nonnull public String getName() { + /** + * Name of the artifact + * + * @return name The name of this {@link AiArtifact} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiArtifact} instance. * - * @param name Name of the artifact + * @param name Name of the artifact */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the kind of this {@link AiArtifact} instance and return the same instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact kind(@Nonnull final KindEnum kind) { + /** + * Set the kind of this {@link AiArtifact} instance and return the same instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact kind(@Nonnull final KindEnum kind) { this.kind = kind; return this; } - /** - * Kind of the artifact, i.e. model or dataset - * @return kind The kind of this {@link AiArtifact} instance. - */ - @Nonnull public KindEnum getKind() { + /** + * Kind of the artifact, i.e. model or dataset + * + * @return kind The kind of this {@link AiArtifact} instance. + */ + @Nonnull + public KindEnum getKind() { return kind; } /** * Set the kind of this {@link AiArtifact} instance. * - * @param kind Kind of the artifact, i.e. model or dataset + * @param kind Kind of the artifact, i.e. model or dataset */ - public void setKind( @Nonnull final KindEnum kind) { + public void setKind(@Nonnull final KindEnum kind) { this.kind = kind; } - /** - * Set the url of this {@link AiArtifact} instance and return the same instance. - * - * @param url Reference to the location of the artifact. - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact url(@Nonnull final String url) { + /** + * Set the url of this {@link AiArtifact} instance and return the same instance. + * + * @param url Reference to the location of the artifact. + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact url(@Nonnull final String url) { this.url = url; return this; } - /** - * Reference to the location of the artifact. - * @return url The url of this {@link AiArtifact} instance. - */ - @Nonnull public String getUrl() { + /** + * Reference to the location of the artifact. + * + * @return url The url of this {@link AiArtifact} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link AiArtifact} instance. * - * @param url Reference to the location of the artifact. + * @param url Reference to the location of the artifact. */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the description of this {@link AiArtifact} instance and return the same instance. - * - * @param description Description of the artifact - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact description(@Nonnull final String description) { + /** + * Set the description of this {@link AiArtifact} instance and return the same instance. + * + * @param description Description of the artifact + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the artifact - * @return description The description of this {@link AiArtifact} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the artifact + * + * @return description The description of this {@link AiArtifact} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiArtifact} instance. * - * @param description Description of the artifact + * @param description Description of the artifact */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the id of this {@link AiArtifact} instance and return the same instance. - * - * @param id ID of the artifact - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact id(@Nonnull final String id) { + /** + * Set the id of this {@link AiArtifact} instance and return the same instance. + * + * @param id ID of the artifact + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the artifact - * @return id The id of this {@link AiArtifact} instance. - */ - @Nonnull public String getId() { + /** + * ID of the artifact + * + * @return id The id of this {@link AiArtifact} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiArtifact} instance. * - * @param id ID of the artifact + * @param id ID of the artifact */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the scenarioId of this {@link AiArtifact} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiArtifact} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiArtifact} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiArtifact} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiArtifact} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the configurationId of this {@link AiArtifact} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiArtifact} instance and return the same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiArtifact} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiArtifact} instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiArtifact} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the executionId of this {@link AiArtifact} instance and return the same instance. - * - * @param executionId ID of the execution - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact executionId(@Nonnull final String executionId) { + /** + * Set the executionId of this {@link AiArtifact} instance and return the same instance. + * + * @param executionId ID of the execution + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact executionId(@Nonnull final String executionId) { this.executionId = executionId; return this; } - /** - * ID of the execution - * @return executionId The executionId of this {@link AiArtifact} instance. - */ - @Nonnull public String getExecutionId() { + /** + * ID of the execution + * + * @return executionId The executionId of this {@link AiArtifact} instance. + */ + @Nonnull + public String getExecutionId() { return executionId; } /** * Set the executionId of this {@link AiArtifact} instance. * - * @param executionId ID of the execution + * @param executionId ID of the execution */ - public void setExecutionId( @Nonnull final String executionId) { + public void setExecutionId(@Nonnull final String executionId) { this.executionId = executionId; } - /** - * Set the createdAt of this {@link AiArtifact} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiArtifact} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiArtifact} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiArtifact} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiArtifact} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiArtifact} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiArtifact} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiArtifact} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiArtifact} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiArtifact} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } - /** - * Set the scenario of this {@link AiArtifact} instance and return the same instance. - * - * @param scenario The scenario of this {@link AiArtifact} - * @return The same instance of this {@link AiArtifact} class - */ - @Nonnull public AiArtifact scenario(@Nonnull final AiScenario scenario) { + /** + * Set the scenario of this {@link AiArtifact} instance and return the same instance. + * + * @param scenario The scenario of this {@link AiArtifact} + * @return The same instance of this {@link AiArtifact} class + */ + @Nonnull + public AiArtifact scenario(@Nonnull final AiScenario scenario) { this.scenario = scenario; return this; } - /** - * Get scenario - * @return scenario The scenario of this {@link AiArtifact} instance. - */ - @Nonnull public AiScenario getScenario() { + /** + * Get scenario + * + * @return scenario The scenario of this {@link AiArtifact} instance. + */ + @Nonnull + public AiScenario getScenario() { return scenario; } /** * Set the scenario of this {@link AiArtifact} instance. * - * @param scenario The scenario of this {@link AiArtifact} + * @param scenario The scenario of this {@link AiArtifact} */ - public void setScenario( @Nonnull final AiScenario scenario) { + public void setScenario(@Nonnull final AiScenario scenario) { this.scenario = scenario; } /** * Get the names of the unrecognizable properties of the {@link AiArtifact}. + * * @return The set of properties names */ @JsonIgnore @@ -513,31 +541,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiArtifact} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiArtifact has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiArtifact has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiArtifact} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiArtifact} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -547,28 +575,42 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiArtifact aiArtifact = (AiArtifact) o; - return Objects.equals(this.cloudSdkCustomFields, aiArtifact.cloudSdkCustomFields) && - Objects.equals(this.labels, aiArtifact.labels) && - Objects.equals(this.name, aiArtifact.name) && - Objects.equals(this.kind, aiArtifact.kind) && - Objects.equals(this.url, aiArtifact.url) && - Objects.equals(this.description, aiArtifact.description) && - Objects.equals(this.id, aiArtifact.id) && - Objects.equals(this.scenarioId, aiArtifact.scenarioId) && - Objects.equals(this.configurationId, aiArtifact.configurationId) && - Objects.equals(this.executionId, aiArtifact.executionId) && - Objects.equals(this.createdAt, aiArtifact.createdAt) && - Objects.equals(this.modifiedAt, aiArtifact.modifiedAt) && - Objects.equals(this.scenario, aiArtifact.scenario); + return Objects.equals(this.cloudSdkCustomFields, aiArtifact.cloudSdkCustomFields) + && Objects.equals(this.labels, aiArtifact.labels) + && Objects.equals(this.name, aiArtifact.name) + && Objects.equals(this.kind, aiArtifact.kind) + && Objects.equals(this.url, aiArtifact.url) + && Objects.equals(this.description, aiArtifact.description) + && Objects.equals(this.id, aiArtifact.id) + && Objects.equals(this.scenarioId, aiArtifact.scenarioId) + && Objects.equals(this.configurationId, aiArtifact.configurationId) + && Objects.equals(this.executionId, aiArtifact.executionId) + && Objects.equals(this.createdAt, aiArtifact.createdAt) + && Objects.equals(this.modifiedAt, aiArtifact.modifiedAt) + && Objects.equals(this.scenario, aiArtifact.scenario); } @Override public int hashCode() { - return Objects.hash(labels, name, kind, url, description, id, scenarioId, configurationId, executionId, createdAt, modifiedAt, scenario, cloudSdkCustomFields); + return Objects.hash( + labels, + name, + kind, + url, + description, + id, + scenarioId, + configurationId, + executionId, + createdAt, + modifiedAt, + scenario, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiArtifact {\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); @@ -583,14 +625,15 @@ public int hashCode() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -599,96 +642,102 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifact} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> + (kind) -> + (url) -> + (id) -> + (scenarioId) -> + (createdAt) -> + (modifiedAt) -> + new AiArtifact() + .name(name) + .kind(kind) + .url(url) + .id(id) + .scenarioId(scenarioId) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifact} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (kind) -> (url) -> (id) -> (scenarioId) -> (createdAt) -> (modifiedAt) -> new AiArtifact().name(name).kind(kind).url(url).id(id).scenarioId(scenarioId).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiArtifact} instance. - * - * @param name Name of the artifact - * @return The AiArtifact builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the kind of this {@link AiArtifact} instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The AiArtifact builder. - */ - Builder2 kind( @Nonnull final KindEnum kind); - } + * Set the name of this {@link AiArtifact} instance. + * + * @param name Name of the artifact + * @return The AiArtifact builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the url of this {@link AiArtifact} instance. - * - * @param url Reference to the location of the artifact. - * @return The AiArtifact builder. - */ - Builder3 url( @Nonnull final String url); - } + * Set the kind of this {@link AiArtifact} instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The AiArtifact builder. + */ + Builder2 kind(@Nonnull final KindEnum kind); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the id of this {@link AiArtifact} instance. - * - * @param id ID of the artifact - * @return The AiArtifact builder. - */ - Builder4 id( @Nonnull final String id); - } + * Set the url of this {@link AiArtifact} instance. + * + * @param url Reference to the location of the artifact. + * @return The AiArtifact builder. + */ + Builder3 url(@Nonnull final String url); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the scenarioId of this {@link AiArtifact} instance. - * - * @param scenarioId ID of the scenario - * @return The AiArtifact builder. - */ - Builder5 scenarioId( @Nonnull final String scenarioId); - } + * Set the id of this {@link AiArtifact} instance. + * + * @param id ID of the artifact + * @return The AiArtifact builder. + */ + Builder4 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder4 { /** - * Builder helper class. - */ - public interface Builder5 { - /** - * Set the createdAt of this {@link AiArtifact} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiArtifact builder. - */ - Builder6 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the scenarioId of this {@link AiArtifact} instance. + * + * @param scenarioId ID of the scenario + * @return The AiArtifact builder. + */ + Builder5 scenarioId(@Nonnull final String scenarioId); + } + + /** Builder helper class. */ + public interface Builder5 { /** - * Builder helper class. - */ - public interface Builder6 { - /** - * Set the modifiedAt of this {@link AiArtifact} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiArtifact instance. - */ - AiArtifact modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiArtifact} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiArtifact builder. + */ + Builder6 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder6 { + /** + * Set the modifiedAt of this {@link AiArtifact} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiArtifact instance. + */ + AiArtifact modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java index 8f7f16f2..363189db 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactArgumentBinding.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Required for execution Result of activation - */ +/** Required for execution Result of activation */ // CHECKSTYLE:OFF -public class AiArtifactArgumentBinding +public class AiArtifactArgumentBinding // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,77 @@ public class AiArtifactArgumentBinding @JsonProperty("artifactId") private String artifactId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiArtifactArgumentBinding() { } - - /** - * Set the key of this {@link AiArtifactArgumentBinding} instance and return the same instance. - * - * @param key The key of this {@link AiArtifactArgumentBinding} - * @return The same instance of this {@link AiArtifactArgumentBinding} class - */ - @Nonnull public AiArtifactArgumentBinding key(@Nonnull final String key) { + + protected AiArtifactArgumentBinding() {} + + /** + * Set the key of this {@link AiArtifactArgumentBinding} instance and return the same instance. + * + * @param key The key of this {@link AiArtifactArgumentBinding} + * @return The same instance of this {@link AiArtifactArgumentBinding} class + */ + @Nonnull + public AiArtifactArgumentBinding key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link AiArtifactArgumentBinding} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link AiArtifactArgumentBinding} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link AiArtifactArgumentBinding} instance. * - * @param key The key of this {@link AiArtifactArgumentBinding} + * @param key The key of this {@link AiArtifactArgumentBinding} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the artifactId of this {@link AiArtifactArgumentBinding} instance and return the same instance. - * - * @param artifactId ID of the artifact - * @return The same instance of this {@link AiArtifactArgumentBinding} class - */ - @Nonnull public AiArtifactArgumentBinding artifactId(@Nonnull final String artifactId) { + /** + * Set the artifactId of this {@link AiArtifactArgumentBinding} instance and return the same + * instance. + * + * @param artifactId ID of the artifact + * @return The same instance of this {@link AiArtifactArgumentBinding} class + */ + @Nonnull + public AiArtifactArgumentBinding artifactId(@Nonnull final String artifactId) { this.artifactId = artifactId; return this; } - /** - * ID of the artifact - * @return artifactId The artifactId of this {@link AiArtifactArgumentBinding} instance. - */ - @Nonnull public String getArtifactId() { + /** + * ID of the artifact + * + * @return artifactId The artifactId of this {@link AiArtifactArgumentBinding} instance. + */ + @Nonnull + public String getArtifactId() { return artifactId; } /** * Set the artifactId of this {@link AiArtifactArgumentBinding} instance. * - * @param artifactId ID of the artifact + * @param artifactId ID of the artifact */ - public void setArtifactId( @Nonnull final String artifactId) { + public void setArtifactId(@Nonnull final String artifactId) { this.artifactId = artifactId; } /** * Get the names of the unrecognizable properties of the {@link AiArtifactArgumentBinding}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +116,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiArtifactArgumentBinding} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiArtifactArgumentBinding has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiArtifactArgumentBinding has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiArtifactArgumentBinding} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiArtifactArgumentBinding} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiArtifactArgumentBinding aiArtifactArgumentBinding = (AiArtifactArgumentBinding) o; - return Objects.equals(this.cloudSdkCustomFields, aiArtifactArgumentBinding.cloudSdkCustomFields) && - Objects.equals(this.key, aiArtifactArgumentBinding.key) && - Objects.equals(this.artifactId, aiArtifactArgumentBinding.artifactId); + return Objects.equals(this.cloudSdkCustomFields, aiArtifactArgumentBinding.cloudSdkCustomFields) + && Objects.equals(this.key, aiArtifactArgumentBinding.key) + && Objects.equals(this.artifactId, aiArtifactArgumentBinding.artifactId); } @Override @@ -166,19 +162,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiArtifactArgumentBinding {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" artifactId: ").append(toIndentedString(artifactId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +185,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiArtifactArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (artifactId) -> new AiArtifactArgumentBinding().key(key).artifactId(artifactId); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactArgumentBinding} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (artifactId) -> new AiArtifactArgumentBinding().key(key).artifactId(artifactId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link AiArtifactArgumentBinding} instance. - * - * @param key The key of this {@link AiArtifactArgumentBinding} - * @return The AiArtifactArgumentBinding builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the artifactId of this {@link AiArtifactArgumentBinding} instance. - * - * @param artifactId ID of the artifact - * @return The AiArtifactArgumentBinding instance. - */ - AiArtifactArgumentBinding artifactId( @Nonnull final String artifactId); - } + * Set the key of this {@link AiArtifactArgumentBinding} instance. + * + * @param key The key of this {@link AiArtifactArgumentBinding} + * @return The AiArtifactArgumentBinding builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the artifactId of this {@link AiArtifactArgumentBinding} instance. + * + * @param artifactId ID of the artifact + * @return The AiArtifactArgumentBinding instance. + */ + AiArtifactArgumentBinding artifactId(@Nonnull final String artifactId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java index 6438c96f..e2d5607a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiArtifactCreationResponse - */ +/** AiArtifactCreationResponse */ // CHECKSTYLE:OFF -public class AiArtifactCreationResponse +public class AiArtifactCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -51,97 +38,108 @@ public class AiArtifactCreationResponse @JsonProperty("url") private String url; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiArtifactCreationResponse() { } - /** - * Set the id of this {@link AiArtifactCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiArtifactCreationResponse} class - */ - @Nonnull public AiArtifactCreationResponse id(@Nonnull final String id) { + protected AiArtifactCreationResponse() {} + + /** + * Set the id of this {@link AiArtifactCreationResponse} instance and return the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiArtifactCreationResponse} class + */ + @Nonnull + public AiArtifactCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiArtifactCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiArtifactCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiArtifactCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiArtifactCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiArtifactCreationResponse} class - */ - @Nonnull public AiArtifactCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiArtifactCreationResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiArtifactCreationResponse} class + */ + @Nonnull + public AiArtifactCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiArtifactCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiArtifactCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiArtifactCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the url of this {@link AiArtifactCreationResponse} instance and return the same instance. - * - * @param url Reference to the location of the artifact. - * @return The same instance of this {@link AiArtifactCreationResponse} class - */ - @Nonnull public AiArtifactCreationResponse url(@Nonnull final String url) { + /** + * Set the url of this {@link AiArtifactCreationResponse} instance and return the same instance. + * + * @param url Reference to the location of the artifact. + * @return The same instance of this {@link AiArtifactCreationResponse} class + */ + @Nonnull + public AiArtifactCreationResponse url(@Nonnull final String url) { this.url = url; return this; } - /** - * Reference to the location of the artifact. - * @return url The url of this {@link AiArtifactCreationResponse} instance. - */ - @Nonnull public String getUrl() { + /** + * Reference to the location of the artifact. + * + * @return url The url of this {@link AiArtifactCreationResponse} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link AiArtifactCreationResponse} instance. * - * @param url Reference to the location of the artifact. + * @param url Reference to the location of the artifact. */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } /** * Get the names of the unrecognizable properties of the {@link AiArtifactCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -151,32 +149,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiArtifactCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiArtifactCreationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiArtifactCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiArtifactCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiArtifactCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiArtifactCreationResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +186,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiArtifactCreationResponse aiArtifactCreationResponse = (AiArtifactCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiArtifactCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiArtifactCreationResponse.id) && - Objects.equals(this.message, aiArtifactCreationResponse.message) && - Objects.equals(this.url, aiArtifactCreationResponse.url); + return Objects.equals( + this.cloudSdkCustomFields, aiArtifactCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiArtifactCreationResponse.id) + && Objects.equals(this.message, aiArtifactCreationResponse.message) + && Objects.equals(this.url, aiArtifactCreationResponse.url); } @Override @@ -198,20 +199,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiArtifactCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,48 +223,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiArtifactCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> (url) -> new AiArtifactCreationResponse().id(id).message(message).url(url); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> (url) -> new AiArtifactCreationResponse().id(id).message(message).url(url); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiArtifactCreationResponse} instance. - * - * @param id Generic ID - * @return The AiArtifactCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiArtifactCreationResponse} instance. - * - * @param message Message - * @return The AiArtifactCreationResponse builder. - */ - Builder2 message( @Nonnull final String message); - } + * Set the id of this {@link AiArtifactCreationResponse} instance. + * + * @param id Generic ID + * @return The AiArtifactCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the url of this {@link AiArtifactCreationResponse} instance. - * - * @param url Reference to the location of the artifact. - * @return The AiArtifactCreationResponse instance. - */ - AiArtifactCreationResponse url( @Nonnull final String url); - } + * Set the message of this {@link AiArtifactCreationResponse} instance. + * + * @param message Message + * @return The AiArtifactCreationResponse builder. + */ + Builder2 message(@Nonnull final String message); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the url of this {@link AiArtifactCreationResponse} instance. + * + * @param url Reference to the location of the artifact. + * @return The AiArtifactCreationResponse instance. + */ + AiArtifactCreationResponse url(@Nonnull final String url); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java index f60f3943..a90f4f05 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiArtifact; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiArtifactList - */ +/** AiArtifactList */ // CHECKSTYLE:OFF -public class AiArtifactList +public class AiArtifactList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiArtifactList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiArtifactList() { } - - /** - * Set the count of this {@link AiArtifactList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiArtifactList} class - */ - @Nonnull public AiArtifactList count(@Nonnull final Integer count) { + + protected AiArtifactList() {} + + /** + * Set the count of this {@link AiArtifactList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiArtifactList} class + */ + @Nonnull + public AiArtifactList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiArtifactList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiArtifactList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiArtifactList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiArtifactList} instance and return the same instance. - * - * @param resources The resources of this {@link AiArtifactList} - * @return The same instance of this {@link AiArtifactList} class - */ - @Nonnull public AiArtifactList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiArtifactList} instance and return the same instance. + * + * @param resources The resources of this {@link AiArtifactList} + * @return The same instance of this {@link AiArtifactList} class + */ + @Nonnull + public AiArtifactList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiArtifactList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiArtifactList} */ - @Nonnull public AiArtifactList addResourcesItem( @Nonnull final AiArtifact resourcesItem) { + @Nonnull + public AiArtifactList addResourcesItem(@Nonnull final AiArtifact resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiArtifactList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiArtifactList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiArtifactList} instance. * - * @param resources The resources of this {@link AiArtifactList} + * @param resources The resources of this {@link AiArtifactList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiArtifactList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiArtifactList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiArtifactList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiArtifactList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiArtifactList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiArtifactList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiArtifactList aiArtifactList = (AiArtifactList) o; - return Objects.equals(this.cloudSdkCustomFields, aiArtifactList.cloudSdkCustomFields) && - Objects.equals(this.count, aiArtifactList.count) && - Objects.equals(this.resources, aiArtifactList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiArtifactList.cloudSdkCustomFields) + && Objects.equals(this.count, aiArtifactList.count) + && Objects.equals(this.resources, aiArtifactList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiArtifactList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiArtifactList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiArtifactList().count(count).resources(resources); - } + * Set the count of this {@link AiArtifactList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiArtifactList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiArtifactList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiArtifactList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiArtifactList} instance. + * + * @param resources The resources of this {@link AiArtifactList} + * @return The AiArtifactList instance. + */ + AiArtifactList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiArtifactList} instance. - * - * @param resources The resources of this {@link AiArtifactList} - * @return The AiArtifactList instance. - */ - AiArtifactList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiArtifactList} instance. - * - * @param resources The resources of this {@link AiArtifactList} - * @return The AiArtifactList instance. - */ - default AiArtifactList resources( @Nonnull final AiArtifact... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiArtifactList} instance. + * + * @param resources The resources of this {@link AiArtifactList} + * @return The AiArtifactList instance. + */ + default AiArtifactList resources(@Nonnull final AiArtifact... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java index fdefde78..9f6de086 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiArtifactPostData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,31 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiLabel; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Base data of the artifact; this is the data that can be provided when the artifact is created; `name` and `kind` are required because they constitute important semantic filtering criteria for use in training / inference executables (`name` is a semantic handle of the artifact within a scenario and `kind` specifies the type of usage, e.g. you would only want to allow models in the model operator). + * Base data of the artifact; this is the data that can be provided when the artifact is created; + * `name` and `kind` are required because they constitute important semantic + * filtering criteria for use in training / inference executables (`name` is a semantic + * handle of the artifact within a scenario and `kind` specifies the type of usage, e.g. + * you would only want to allow models in the model operator). */ // CHECKSTYLE:OFF -public class AiArtifactPostData +public class AiArtifactPostData // CHECKSTYLE:ON { @JsonProperty("labels") @@ -52,28 +45,18 @@ public class AiArtifactPostData @JsonProperty("name") private String name; - /** - * Kind of the artifact, i.e. model or dataset - */ + /** Kind of the artifact, i.e. model or dataset */ public enum KindEnum { - /** - * The MODEL option of this AiArtifactPostData - */ + /** The MODEL option of this AiArtifactPostData */ MODEL("model"), - - /** - * The DATASET option of this AiArtifactPostData - */ + + /** The DATASET option of this AiArtifactPostData */ DATASET("dataset"), - - /** - * The RESULTSET option of this AiArtifactPostData - */ + + /** The RESULTSET option of this AiArtifactPostData */ RESULTSET("resultset"), - - /** - * The OTHER option of this AiArtifactPostData - */ + + /** The OTHER option of this AiArtifactPostData */ OTHER("other"); private String value; @@ -83,30 +66,36 @@ public enum KindEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiArtifactPostData - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiArtifactPostData + */ @JsonCreator - @Nonnull public static KindEnum fromValue(@Nonnull final String value) { + @Nonnull + public static KindEnum fromValue(@Nonnull final String value) { for (KindEnum b : KindEnum.values()) { if (b.value.equals(value)) { return b; @@ -128,27 +117,31 @@ public enum KindEnum { @JsonProperty("scenarioId") private String scenarioId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiArtifactPostData() { } - - /** - * Set the labels of this {@link AiArtifactPostData} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link AiArtifactPostData} class - */ - @Nonnull public AiArtifactPostData labels(@Nonnull final List labels) { + + protected AiArtifactPostData() {} + + /** + * Set the labels of this {@link AiArtifactPostData} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link AiArtifactPostData} class + */ + @Nonnull + public AiArtifactPostData labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link AiArtifactPostData}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link AiArtifactPostData} */ - @Nonnull public AiArtifactPostData addLabelsItem( @Nonnull final AiLabel labelsItem) { + @Nonnull + public AiArtifactPostData addLabelsItem(@Nonnull final AiLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -156,165 +149,183 @@ protected AiArtifactPostData() { } return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link AiArtifactPostData} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link AiArtifactPostData} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link AiArtifactPostData} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the name of this {@link AiArtifactPostData} instance and return the same instance. - * - * @param name Name of the artifact - * @return The same instance of this {@link AiArtifactPostData} class - */ - @Nonnull public AiArtifactPostData name(@Nonnull final String name) { + /** + * Set the name of this {@link AiArtifactPostData} instance and return the same instance. + * + * @param name Name of the artifact + * @return The same instance of this {@link AiArtifactPostData} class + */ + @Nonnull + public AiArtifactPostData name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the artifact - * @return name The name of this {@link AiArtifactPostData} instance. - */ - @Nonnull public String getName() { + /** + * Name of the artifact + * + * @return name The name of this {@link AiArtifactPostData} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiArtifactPostData} instance. * - * @param name Name of the artifact + * @param name Name of the artifact */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the kind of this {@link AiArtifactPostData} instance and return the same instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The same instance of this {@link AiArtifactPostData} class - */ - @Nonnull public AiArtifactPostData kind(@Nonnull final KindEnum kind) { + /** + * Set the kind of this {@link AiArtifactPostData} instance and return the same instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The same instance of this {@link AiArtifactPostData} class + */ + @Nonnull + public AiArtifactPostData kind(@Nonnull final KindEnum kind) { this.kind = kind; return this; } - /** - * Kind of the artifact, i.e. model or dataset - * @return kind The kind of this {@link AiArtifactPostData} instance. - */ - @Nonnull public KindEnum getKind() { + /** + * Kind of the artifact, i.e. model or dataset + * + * @return kind The kind of this {@link AiArtifactPostData} instance. + */ + @Nonnull + public KindEnum getKind() { return kind; } /** * Set the kind of this {@link AiArtifactPostData} instance. * - * @param kind Kind of the artifact, i.e. model or dataset + * @param kind Kind of the artifact, i.e. model or dataset */ - public void setKind( @Nonnull final KindEnum kind) { + public void setKind(@Nonnull final KindEnum kind) { this.kind = kind; } - /** - * Set the url of this {@link AiArtifactPostData} instance and return the same instance. - * - * @param url Reference to the location of the artifact. - * @return The same instance of this {@link AiArtifactPostData} class - */ - @Nonnull public AiArtifactPostData url(@Nonnull final String url) { + /** + * Set the url of this {@link AiArtifactPostData} instance and return the same instance. + * + * @param url Reference to the location of the artifact. + * @return The same instance of this {@link AiArtifactPostData} class + */ + @Nonnull + public AiArtifactPostData url(@Nonnull final String url) { this.url = url; return this; } - /** - * Reference to the location of the artifact. - * @return url The url of this {@link AiArtifactPostData} instance. - */ - @Nonnull public String getUrl() { + /** + * Reference to the location of the artifact. + * + * @return url The url of this {@link AiArtifactPostData} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link AiArtifactPostData} instance. * - * @param url Reference to the location of the artifact. + * @param url Reference to the location of the artifact. */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the description of this {@link AiArtifactPostData} instance and return the same instance. - * - * @param description Description of the artifact - * @return The same instance of this {@link AiArtifactPostData} class - */ - @Nonnull public AiArtifactPostData description(@Nonnull final String description) { + /** + * Set the description of this {@link AiArtifactPostData} instance and return the same instance. + * + * @param description Description of the artifact + * @return The same instance of this {@link AiArtifactPostData} class + */ + @Nonnull + public AiArtifactPostData description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the artifact - * @return description The description of this {@link AiArtifactPostData} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the artifact + * + * @return description The description of this {@link AiArtifactPostData} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiArtifactPostData} instance. * - * @param description Description of the artifact + * @param description Description of the artifact */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the scenarioId of this {@link AiArtifactPostData} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiArtifactPostData} class - */ - @Nonnull public AiArtifactPostData scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiArtifactPostData} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiArtifactPostData} class + */ + @Nonnull + public AiArtifactPostData scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiArtifactPostData} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiArtifactPostData} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiArtifactPostData} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } /** * Get the names of the unrecognizable properties of the {@link AiArtifactPostData}. + * * @return The set of properties names */ @JsonIgnore @@ -325,31 +336,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiArtifactPostData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiArtifactPostData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiArtifactPostData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiArtifactPostData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiArtifactPostData} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -359,13 +370,13 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiArtifactPostData aiArtifactPostData = (AiArtifactPostData) o; - return Objects.equals(this.cloudSdkCustomFields, aiArtifactPostData.cloudSdkCustomFields) && - Objects.equals(this.labels, aiArtifactPostData.labels) && - Objects.equals(this.name, aiArtifactPostData.name) && - Objects.equals(this.kind, aiArtifactPostData.kind) && - Objects.equals(this.url, aiArtifactPostData.url) && - Objects.equals(this.description, aiArtifactPostData.description) && - Objects.equals(this.scenarioId, aiArtifactPostData.scenarioId); + return Objects.equals(this.cloudSdkCustomFields, aiArtifactPostData.cloudSdkCustomFields) + && Objects.equals(this.labels, aiArtifactPostData.labels) + && Objects.equals(this.name, aiArtifactPostData.name) + && Objects.equals(this.kind, aiArtifactPostData.kind) + && Objects.equals(this.url, aiArtifactPostData.url) + && Objects.equals(this.description, aiArtifactPostData.description) + && Objects.equals(this.scenarioId, aiArtifactPostData.scenarioId); } @Override @@ -374,7 +385,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiArtifactPostData {\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); @@ -383,14 +395,15 @@ public int hashCode() { sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" scenarioId: ").append(toIndentedString(scenarioId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -399,60 +412,59 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactPostData} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> + (kind) -> + (url) -> + (scenarioId) -> + new AiArtifactPostData().name(name).kind(kind).url(url).scenarioId(scenarioId); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiArtifactPostData} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (kind) -> (url) -> (scenarioId) -> new AiArtifactPostData().name(name).kind(kind).url(url).scenarioId(scenarioId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiArtifactPostData} instance. - * - * @param name Name of the artifact - * @return The AiArtifactPostData builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the kind of this {@link AiArtifactPostData} instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The AiArtifactPostData builder. - */ - Builder2 kind( @Nonnull final KindEnum kind); - } + * Set the name of this {@link AiArtifactPostData} instance. + * + * @param name Name of the artifact + * @return The AiArtifactPostData builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the url of this {@link AiArtifactPostData} instance. - * - * @param url Reference to the location of the artifact. - * @return The AiArtifactPostData builder. - */ - Builder3 url( @Nonnull final String url); - } + * Set the kind of this {@link AiArtifactPostData} instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The AiArtifactPostData builder. + */ + Builder2 kind(@Nonnull final KindEnum kind); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the scenarioId of this {@link AiArtifactPostData} instance. - * - * @param scenarioId ID of the scenario - * @return The AiArtifactPostData instance. - */ - AiArtifactPostData scenarioId( @Nonnull final String scenarioId); - } + * Set the url of this {@link AiArtifactPostData} instance. + * + * @param url Reference to the location of the artifact. + * @return The AiArtifactPostData builder. + */ + Builder3 url(@Nonnull final String url); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the scenarioId of this {@link AiArtifactPostData} instance. + * + * @param scenarioId ID of the scenario + * @return The AiArtifactPostData instance. + */ + AiArtifactPostData scenarioId(@Nonnull final String scenarioId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java index 65b924e8..4c6bba5b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfiguration.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiArtifactArgumentBinding; -import com.sap.ai.sdk.core.client.model.AiParameterArgumentBinding; -import com.sap.ai.sdk.core.client.model.AiScenario; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiConfiguration - */ +/** AiConfiguration */ // CHECKSTYLE:OFF -public class AiConfiguration +public class AiConfiguration // CHECKSTYLE:ON { @JsonProperty("name") @@ -73,111 +56,127 @@ public class AiConfiguration @JsonProperty("scenario") private AiScenario scenario; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiConfiguration() { } - - /** - * Set the name of this {@link AiConfiguration} instance and return the same instance. - * - * @param name Name of the configuration - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration name(@Nonnull final String name) { + + protected AiConfiguration() {} + + /** + * Set the name of this {@link AiConfiguration} instance and return the same instance. + * + * @param name Name of the configuration + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the configuration - * @return name The name of this {@link AiConfiguration} instance. - */ - @Nonnull public String getName() { + /** + * Name of the configuration + * + * @return name The name of this {@link AiConfiguration} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiConfiguration} instance. * - * @param name Name of the configuration + * @param name Name of the configuration */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the executableId of this {@link AiConfiguration} instance and return the same instance. - * - * @param executableId ID of the executable - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration executableId(@Nonnull final String executableId) { + /** + * Set the executableId of this {@link AiConfiguration} instance and return the same instance. + * + * @param executableId ID of the executable + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration executableId(@Nonnull final String executableId) { this.executableId = executableId; return this; } - /** - * ID of the executable - * @return executableId The executableId of this {@link AiConfiguration} instance. - */ - @Nonnull public String getExecutableId() { + /** + * ID of the executable + * + * @return executableId The executableId of this {@link AiConfiguration} instance. + */ + @Nonnull + public String getExecutableId() { return executableId; } /** * Set the executableId of this {@link AiConfiguration} instance. * - * @param executableId ID of the executable + * @param executableId ID of the executable */ - public void setExecutableId( @Nonnull final String executableId) { + public void setExecutableId(@Nonnull final String executableId) { this.executableId = executableId; } - /** - * Set the scenarioId of this {@link AiConfiguration} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiConfiguration} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiConfiguration} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiConfiguration} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiConfiguration} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the parameterBindings of this {@link AiConfiguration} instance and return the same instance. - * - * @param parameterBindings The parameterBindings of this {@link AiConfiguration} - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration parameterBindings(@Nonnull final List parameterBindings) { + /** + * Set the parameterBindings of this {@link AiConfiguration} instance and return the same + * instance. + * + * @param parameterBindings The parameterBindings of this {@link AiConfiguration} + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration parameterBindings( + @Nonnull final List parameterBindings) { this.parameterBindings = parameterBindings; return this; } + /** * Add one parameterBindings instance to this {@link AiConfiguration}. + * * @param parameterBindingsItem The parameterBindings that should be added * @return The same instance of type {@link AiConfiguration} */ - @Nonnull public AiConfiguration addParameterBindingsItem( @Nonnull final AiParameterArgumentBinding parameterBindingsItem) { + @Nonnull + public AiConfiguration addParameterBindingsItem( + @Nonnull final AiParameterArgumentBinding parameterBindingsItem) { if (this.parameterBindings == null) { this.parameterBindings = new ArrayList<>(); } @@ -185,39 +184,49 @@ public void setScenarioId( @Nonnull final String scenarioId) { return this; } - /** - * Get parameterBindings - * @return parameterBindings The parameterBindings of this {@link AiConfiguration} instance. - */ - @Nonnull public List getParameterBindings() { + /** + * Get parameterBindings + * + * @return parameterBindings The parameterBindings of this {@link AiConfiguration} instance. + */ + @Nonnull + public List getParameterBindings() { return parameterBindings; } /** * Set the parameterBindings of this {@link AiConfiguration} instance. * - * @param parameterBindings The parameterBindings of this {@link AiConfiguration} + * @param parameterBindings The parameterBindings of this {@link AiConfiguration} */ - public void setParameterBindings( @Nonnull final List parameterBindings) { + public void setParameterBindings( + @Nonnull final List parameterBindings) { this.parameterBindings = parameterBindings; } - /** - * Set the inputArtifactBindings of this {@link AiConfiguration} instance and return the same instance. - * - * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfiguration} - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration inputArtifactBindings(@Nonnull final List inputArtifactBindings) { + /** + * Set the inputArtifactBindings of this {@link AiConfiguration} instance and return the same + * instance. + * + * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfiguration} + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration inputArtifactBindings( + @Nonnull final List inputArtifactBindings) { this.inputArtifactBindings = inputArtifactBindings; return this; } + /** * Add one inputArtifactBindings instance to this {@link AiConfiguration}. + * * @param inputArtifactBindingsItem The inputArtifactBindings that should be added * @return The same instance of type {@link AiConfiguration} */ - @Nonnull public AiConfiguration addInputArtifactBindingsItem( @Nonnull final AiArtifactArgumentBinding inputArtifactBindingsItem) { + @Nonnull + public AiConfiguration addInputArtifactBindingsItem( + @Nonnull final AiArtifactArgumentBinding inputArtifactBindingsItem) { if (this.inputArtifactBindings == null) { this.inputArtifactBindings = new ArrayList<>(); } @@ -225,109 +234,123 @@ public void setParameterBindings( @Nonnull final List getInputArtifactBindings() { + /** + * Get inputArtifactBindings + * + * @return inputArtifactBindings The inputArtifactBindings of this {@link AiConfiguration} + * instance. + */ + @Nonnull + public List getInputArtifactBindings() { return inputArtifactBindings; } /** * Set the inputArtifactBindings of this {@link AiConfiguration} instance. * - * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfiguration} + * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfiguration} */ - public void setInputArtifactBindings( @Nonnull final List inputArtifactBindings) { + public void setInputArtifactBindings( + @Nonnull final List inputArtifactBindings) { this.inputArtifactBindings = inputArtifactBindings; } - /** - * Set the id of this {@link AiConfiguration} instance and return the same instance. - * - * @param id ID of the configuration - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration id(@Nonnull final String id) { + /** + * Set the id of this {@link AiConfiguration} instance and return the same instance. + * + * @param id ID of the configuration + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the configuration - * @return id The id of this {@link AiConfiguration} instance. - */ - @Nonnull public String getId() { + /** + * ID of the configuration + * + * @return id The id of this {@link AiConfiguration} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiConfiguration} instance. * - * @param id ID of the configuration + * @param id ID of the configuration */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the createdAt of this {@link AiConfiguration} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiConfiguration} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiConfiguration} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiConfiguration} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiConfiguration} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the scenario of this {@link AiConfiguration} instance and return the same instance. - * - * @param scenario The scenario of this {@link AiConfiguration} - * @return The same instance of this {@link AiConfiguration} class - */ - @Nonnull public AiConfiguration scenario(@Nonnull final AiScenario scenario) { + /** + * Set the scenario of this {@link AiConfiguration} instance and return the same instance. + * + * @param scenario The scenario of this {@link AiConfiguration} + * @return The same instance of this {@link AiConfiguration} class + */ + @Nonnull + public AiConfiguration scenario(@Nonnull final AiScenario scenario) { this.scenario = scenario; return this; } - /** - * Get scenario - * @return scenario The scenario of this {@link AiConfiguration} instance. - */ - @Nonnull public AiScenario getScenario() { + /** + * Get scenario + * + * @return scenario The scenario of this {@link AiConfiguration} instance. + */ + @Nonnull + public AiScenario getScenario() { return scenario; } /** * Set the scenario of this {@link AiConfiguration} instance. * - * @param scenario The scenario of this {@link AiConfiguration} + * @param scenario The scenario of this {@link AiConfiguration} */ - public void setScenario( @Nonnull final AiScenario scenario) { + public void setScenario(@Nonnull final AiScenario scenario) { this.scenario = scenario; } /** * Get the names of the unrecognizable properties of the {@link AiConfiguration}. + * * @return The set of properties names */ @JsonIgnore @@ -338,31 +361,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiConfiguration} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiConfiguration has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiConfiguration has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiConfiguration} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiConfiguration} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -372,42 +395,55 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiConfiguration aiConfiguration = (AiConfiguration) o; - return Objects.equals(this.cloudSdkCustomFields, aiConfiguration.cloudSdkCustomFields) && - Objects.equals(this.name, aiConfiguration.name) && - Objects.equals(this.executableId, aiConfiguration.executableId) && - Objects.equals(this.scenarioId, aiConfiguration.scenarioId) && - Objects.equals(this.parameterBindings, aiConfiguration.parameterBindings) && - Objects.equals(this.inputArtifactBindings, aiConfiguration.inputArtifactBindings) && - Objects.equals(this.id, aiConfiguration.id) && - Objects.equals(this.createdAt, aiConfiguration.createdAt) && - Objects.equals(this.scenario, aiConfiguration.scenario); + return Objects.equals(this.cloudSdkCustomFields, aiConfiguration.cloudSdkCustomFields) + && Objects.equals(this.name, aiConfiguration.name) + && Objects.equals(this.executableId, aiConfiguration.executableId) + && Objects.equals(this.scenarioId, aiConfiguration.scenarioId) + && Objects.equals(this.parameterBindings, aiConfiguration.parameterBindings) + && Objects.equals(this.inputArtifactBindings, aiConfiguration.inputArtifactBindings) + && Objects.equals(this.id, aiConfiguration.id) + && Objects.equals(this.createdAt, aiConfiguration.createdAt) + && Objects.equals(this.scenario, aiConfiguration.scenario); } @Override public int hashCode() { - return Objects.hash(name, executableId, scenarioId, parameterBindings, inputArtifactBindings, id, createdAt, scenario, cloudSdkCustomFields); + return Objects.hash( + name, + executableId, + scenarioId, + parameterBindings, + inputArtifactBindings, + id, + createdAt, + scenario, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiConfiguration {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" executableId: ").append(toIndentedString(executableId)).append("\n"); sb.append(" scenarioId: ").append(toIndentedString(scenarioId)).append("\n"); sb.append(" parameterBindings: ").append(toIndentedString(parameterBindings)).append("\n"); - sb.append(" inputArtifactBindings: ").append(toIndentedString(inputArtifactBindings)).append("\n"); + sb.append(" inputArtifactBindings: ") + .append(toIndentedString(inputArtifactBindings)) + .append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -416,72 +452,76 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiConfiguration} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> + (executableId) -> + (scenarioId) -> + (id) -> + (createdAt) -> + new AiConfiguration() + .name(name) + .executableId(executableId) + .scenarioId(scenarioId) + .id(id) + .createdAt(createdAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiConfiguration} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (executableId) -> (scenarioId) -> (id) -> (createdAt) -> new AiConfiguration().name(name).executableId(executableId).scenarioId(scenarioId).id(id).createdAt(createdAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiConfiguration} instance. - * - * @param name Name of the configuration - * @return The AiConfiguration builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executableId of this {@link AiConfiguration} instance. - * - * @param executableId ID of the executable - * @return The AiConfiguration builder. - */ - Builder2 executableId( @Nonnull final String executableId); - } + * Set the name of this {@link AiConfiguration} instance. + * + * @param name Name of the configuration + * @return The AiConfiguration builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the scenarioId of this {@link AiConfiguration} instance. - * - * @param scenarioId ID of the scenario - * @return The AiConfiguration builder. - */ - Builder3 scenarioId( @Nonnull final String scenarioId); - } + * Set the executableId of this {@link AiConfiguration} instance. + * + * @param executableId ID of the executable + * @return The AiConfiguration builder. + */ + Builder2 executableId(@Nonnull final String executableId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the id of this {@link AiConfiguration} instance. - * - * @param id ID of the configuration - * @return The AiConfiguration builder. - */ - Builder4 id( @Nonnull final String id); - } + * Set the scenarioId of this {@link AiConfiguration} instance. + * + * @param scenarioId ID of the scenario + * @return The AiConfiguration builder. + */ + Builder3 scenarioId(@Nonnull final String scenarioId); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the createdAt of this {@link AiConfiguration} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiConfiguration instance. - */ - AiConfiguration createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the id of this {@link AiConfiguration} instance. + * + * @param id ID of the configuration + * @return The AiConfiguration builder. + */ + Builder4 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the createdAt of this {@link AiConfiguration} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiConfiguration instance. + */ + AiConfiguration createdAt(@Nonnull final OffsetDateTime createdAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java index d7756bbf..25e741e2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationBaseData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiArtifactArgumentBinding; -import com.sap.ai.sdk.core.client.model.AiParameterArgumentBinding; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiConfigurationBaseData - */ +/** AiConfigurationBaseData */ // CHECKSTYLE:OFF -public class AiConfigurationBaseData +public class AiConfigurationBaseData // CHECKSTYLE:ON { @JsonProperty("name") @@ -62,111 +46,129 @@ public class AiConfigurationBaseData @JsonProperty("inputArtifactBindings") private List inputArtifactBindings = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiConfigurationBaseData() { } - - /** - * Set the name of this {@link AiConfigurationBaseData} instance and return the same instance. - * - * @param name Name of the configuration - * @return The same instance of this {@link AiConfigurationBaseData} class - */ - @Nonnull public AiConfigurationBaseData name(@Nonnull final String name) { + + protected AiConfigurationBaseData() {} + + /** + * Set the name of this {@link AiConfigurationBaseData} instance and return the same instance. + * + * @param name Name of the configuration + * @return The same instance of this {@link AiConfigurationBaseData} class + */ + @Nonnull + public AiConfigurationBaseData name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the configuration - * @return name The name of this {@link AiConfigurationBaseData} instance. - */ - @Nonnull public String getName() { + /** + * Name of the configuration + * + * @return name The name of this {@link AiConfigurationBaseData} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiConfigurationBaseData} instance. * - * @param name Name of the configuration + * @param name Name of the configuration */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the executableId of this {@link AiConfigurationBaseData} instance and return the same instance. - * - * @param executableId ID of the executable - * @return The same instance of this {@link AiConfigurationBaseData} class - */ - @Nonnull public AiConfigurationBaseData executableId(@Nonnull final String executableId) { + /** + * Set the executableId of this {@link AiConfigurationBaseData} instance and return the same + * instance. + * + * @param executableId ID of the executable + * @return The same instance of this {@link AiConfigurationBaseData} class + */ + @Nonnull + public AiConfigurationBaseData executableId(@Nonnull final String executableId) { this.executableId = executableId; return this; } - /** - * ID of the executable - * @return executableId The executableId of this {@link AiConfigurationBaseData} instance. - */ - @Nonnull public String getExecutableId() { + /** + * ID of the executable + * + * @return executableId The executableId of this {@link AiConfigurationBaseData} instance. + */ + @Nonnull + public String getExecutableId() { return executableId; } /** * Set the executableId of this {@link AiConfigurationBaseData} instance. * - * @param executableId ID of the executable + * @param executableId ID of the executable */ - public void setExecutableId( @Nonnull final String executableId) { + public void setExecutableId(@Nonnull final String executableId) { this.executableId = executableId; } - /** - * Set the scenarioId of this {@link AiConfigurationBaseData} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiConfigurationBaseData} class - */ - @Nonnull public AiConfigurationBaseData scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiConfigurationBaseData} instance and return the same + * instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiConfigurationBaseData} class + */ + @Nonnull + public AiConfigurationBaseData scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiConfigurationBaseData} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiConfigurationBaseData} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiConfigurationBaseData} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the parameterBindings of this {@link AiConfigurationBaseData} instance and return the same instance. - * - * @param parameterBindings The parameterBindings of this {@link AiConfigurationBaseData} - * @return The same instance of this {@link AiConfigurationBaseData} class - */ - @Nonnull public AiConfigurationBaseData parameterBindings(@Nonnull final List parameterBindings) { + /** + * Set the parameterBindings of this {@link AiConfigurationBaseData} instance and return the same + * instance. + * + * @param parameterBindings The parameterBindings of this {@link AiConfigurationBaseData} + * @return The same instance of this {@link AiConfigurationBaseData} class + */ + @Nonnull + public AiConfigurationBaseData parameterBindings( + @Nonnull final List parameterBindings) { this.parameterBindings = parameterBindings; return this; } + /** * Add one parameterBindings instance to this {@link AiConfigurationBaseData}. + * * @param parameterBindingsItem The parameterBindings that should be added * @return The same instance of type {@link AiConfigurationBaseData} */ - @Nonnull public AiConfigurationBaseData addParameterBindingsItem( @Nonnull final AiParameterArgumentBinding parameterBindingsItem) { + @Nonnull + public AiConfigurationBaseData addParameterBindingsItem( + @Nonnull final AiParameterArgumentBinding parameterBindingsItem) { if (this.parameterBindings == null) { this.parameterBindings = new ArrayList<>(); } @@ -174,39 +176,50 @@ public void setScenarioId( @Nonnull final String scenarioId) { return this; } - /** - * Get parameterBindings - * @return parameterBindings The parameterBindings of this {@link AiConfigurationBaseData} instance. - */ - @Nonnull public List getParameterBindings() { + /** + * Get parameterBindings + * + * @return parameterBindings The parameterBindings of this {@link AiConfigurationBaseData} + * instance. + */ + @Nonnull + public List getParameterBindings() { return parameterBindings; } /** * Set the parameterBindings of this {@link AiConfigurationBaseData} instance. * - * @param parameterBindings The parameterBindings of this {@link AiConfigurationBaseData} + * @param parameterBindings The parameterBindings of this {@link AiConfigurationBaseData} */ - public void setParameterBindings( @Nonnull final List parameterBindings) { + public void setParameterBindings( + @Nonnull final List parameterBindings) { this.parameterBindings = parameterBindings; } - /** - * Set the inputArtifactBindings of this {@link AiConfigurationBaseData} instance and return the same instance. - * - * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfigurationBaseData} - * @return The same instance of this {@link AiConfigurationBaseData} class - */ - @Nonnull public AiConfigurationBaseData inputArtifactBindings(@Nonnull final List inputArtifactBindings) { + /** + * Set the inputArtifactBindings of this {@link AiConfigurationBaseData} instance and return the + * same instance. + * + * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfigurationBaseData} + * @return The same instance of this {@link AiConfigurationBaseData} class + */ + @Nonnull + public AiConfigurationBaseData inputArtifactBindings( + @Nonnull final List inputArtifactBindings) { this.inputArtifactBindings = inputArtifactBindings; return this; } + /** * Add one inputArtifactBindings instance to this {@link AiConfigurationBaseData}. + * * @param inputArtifactBindingsItem The inputArtifactBindings that should be added * @return The same instance of type {@link AiConfigurationBaseData} */ - @Nonnull public AiConfigurationBaseData addInputArtifactBindingsItem( @Nonnull final AiArtifactArgumentBinding inputArtifactBindingsItem) { + @Nonnull + public AiConfigurationBaseData addInputArtifactBindingsItem( + @Nonnull final AiArtifactArgumentBinding inputArtifactBindingsItem) { if (this.inputArtifactBindings == null) { this.inputArtifactBindings = new ArrayList<>(); } @@ -214,25 +227,30 @@ public void setParameterBindings( @Nonnull final List getInputArtifactBindings() { + /** + * Get inputArtifactBindings + * + * @return inputArtifactBindings The inputArtifactBindings of this {@link AiConfigurationBaseData} + * instance. + */ + @Nonnull + public List getInputArtifactBindings() { return inputArtifactBindings; } /** * Set the inputArtifactBindings of this {@link AiConfigurationBaseData} instance. * - * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfigurationBaseData} + * @param inputArtifactBindings The inputArtifactBindings of this {@link AiConfigurationBaseData} */ - public void setInputArtifactBindings( @Nonnull final List inputArtifactBindings) { + public void setInputArtifactBindings( + @Nonnull final List inputArtifactBindings) { this.inputArtifactBindings = inputArtifactBindings; } /** * Get the names of the unrecognizable properties of the {@link AiConfigurationBaseData}. + * * @return The set of properties names */ @JsonIgnore @@ -243,31 +261,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiConfigurationBaseData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiConfigurationBaseData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiConfigurationBaseData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiConfigurationBaseData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiConfigurationBaseData} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -277,36 +296,47 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiConfigurationBaseData aiConfigurationBaseData = (AiConfigurationBaseData) o; - return Objects.equals(this.cloudSdkCustomFields, aiConfigurationBaseData.cloudSdkCustomFields) && - Objects.equals(this.name, aiConfigurationBaseData.name) && - Objects.equals(this.executableId, aiConfigurationBaseData.executableId) && - Objects.equals(this.scenarioId, aiConfigurationBaseData.scenarioId) && - Objects.equals(this.parameterBindings, aiConfigurationBaseData.parameterBindings) && - Objects.equals(this.inputArtifactBindings, aiConfigurationBaseData.inputArtifactBindings); + return Objects.equals(this.cloudSdkCustomFields, aiConfigurationBaseData.cloudSdkCustomFields) + && Objects.equals(this.name, aiConfigurationBaseData.name) + && Objects.equals(this.executableId, aiConfigurationBaseData.executableId) + && Objects.equals(this.scenarioId, aiConfigurationBaseData.scenarioId) + && Objects.equals(this.parameterBindings, aiConfigurationBaseData.parameterBindings) + && Objects.equals( + this.inputArtifactBindings, aiConfigurationBaseData.inputArtifactBindings); } @Override public int hashCode() { - return Objects.hash(name, executableId, scenarioId, parameterBindings, inputArtifactBindings, cloudSdkCustomFields); + return Objects.hash( + name, + executableId, + scenarioId, + parameterBindings, + inputArtifactBindings, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiConfigurationBaseData {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" executableId: ").append(toIndentedString(executableId)).append("\n"); sb.append(" scenarioId: ").append(toIndentedString(scenarioId)).append("\n"); sb.append(" parameterBindings: ").append(toIndentedString(parameterBindings)).append("\n"); - sb.append(" inputArtifactBindings: ").append(toIndentedString(inputArtifactBindings)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" inputArtifactBindings: ") + .append(toIndentedString(inputArtifactBindings)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -315,48 +345,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiConfigurationBaseData} instance with all required arguments. + */ + public static Builder create() { + return (name) -> + (executableId) -> + (scenarioId) -> + new AiConfigurationBaseData() + .name(name) + .executableId(executableId) + .scenarioId(scenarioId); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationBaseData} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (executableId) -> (scenarioId) -> new AiConfigurationBaseData().name(name).executableId(executableId).scenarioId(scenarioId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiConfigurationBaseData} instance. - * - * @param name Name of the configuration - * @return The AiConfigurationBaseData builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executableId of this {@link AiConfigurationBaseData} instance. - * - * @param executableId ID of the executable - * @return The AiConfigurationBaseData builder. - */ - Builder2 executableId( @Nonnull final String executableId); - } + * Set the name of this {@link AiConfigurationBaseData} instance. + * + * @param name Name of the configuration + * @return The AiConfigurationBaseData builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the scenarioId of this {@link AiConfigurationBaseData} instance. - * - * @param scenarioId ID of the scenario - * @return The AiConfigurationBaseData instance. - */ - AiConfigurationBaseData scenarioId( @Nonnull final String scenarioId); - } + * Set the executableId of this {@link AiConfigurationBaseData} instance. + * + * @param executableId ID of the executable + * @return The AiConfigurationBaseData builder. + */ + Builder2 executableId(@Nonnull final String executableId); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the scenarioId of this {@link AiConfigurationBaseData} instance. + * + * @param scenarioId ID of the scenario + * @return The AiConfigurationBaseData instance. + */ + AiConfigurationBaseData scenarioId(@Nonnull final String scenarioId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java index 3fe814ee..18e4b425 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiConfigurationCreationResponse - */ +/** AiConfigurationCreationResponse */ // CHECKSTYLE:OFF -public class AiConfigurationCreationResponse +public class AiConfigurationCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,78 @@ public class AiConfigurationCreationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiConfigurationCreationResponse() { } - - /** - * Set the id of this {@link AiConfigurationCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiConfigurationCreationResponse} class - */ - @Nonnull public AiConfigurationCreationResponse id(@Nonnull final String id) { + + protected AiConfigurationCreationResponse() {} + + /** + * Set the id of this {@link AiConfigurationCreationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiConfigurationCreationResponse} class + */ + @Nonnull + public AiConfigurationCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiConfigurationCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiConfigurationCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiConfigurationCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiConfigurationCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiConfigurationCreationResponse} class - */ - @Nonnull public AiConfigurationCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiConfigurationCreationResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiConfigurationCreationResponse} class + */ + @Nonnull + public AiConfigurationCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiConfigurationCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiConfigurationCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiConfigurationCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link AiConfigurationCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiConfigurationCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiConfigurationCreationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiConfigurationCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiConfigurationCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiConfigurationCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiConfigurationCreationResponse} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiConfigurationCreationResponse aiConfigurationCreationResponse = (AiConfigurationCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiConfigurationCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiConfigurationCreationResponse.id) && - Objects.equals(this.message, aiConfigurationCreationResponse.message); + final AiConfigurationCreationResponse aiConfigurationCreationResponse = + (AiConfigurationCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiConfigurationCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiConfigurationCreationResponse.id) + && Objects.equals(this.message, aiConfigurationCreationResponse.message); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiConfigurationCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +190,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiConfigurationCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiConfigurationCreationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiConfigurationCreationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiConfigurationCreationResponse} instance. - * - * @param id Generic ID - * @return The AiConfigurationCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiConfigurationCreationResponse} instance. - * - * @param message Message - * @return The AiConfigurationCreationResponse instance. - */ - AiConfigurationCreationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiConfigurationCreationResponse} instance. + * + * @param id Generic ID + * @return The AiConfigurationCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiConfigurationCreationResponse} instance. + * + * @param message Message + * @return The AiConfigurationCreationResponse instance. + */ + AiConfigurationCreationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java index 9be53be5..e6ddd4cf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiConfigurationList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiConfiguration; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiConfigurationList - */ +/** AiConfigurationList */ // CHECKSTYLE:OFF -public class AiConfigurationList +public class AiConfigurationList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiConfigurationList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiConfigurationList() { } - - /** - * Set the count of this {@link AiConfigurationList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiConfigurationList} class - */ - @Nonnull public AiConfigurationList count(@Nonnull final Integer count) { + + protected AiConfigurationList() {} + + /** + * Set the count of this {@link AiConfigurationList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiConfigurationList} class + */ + @Nonnull + public AiConfigurationList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiConfigurationList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiConfigurationList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiConfigurationList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiConfigurationList} instance and return the same instance. - * - * @param resources The resources of this {@link AiConfigurationList} - * @return The same instance of this {@link AiConfigurationList} class - */ - @Nonnull public AiConfigurationList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiConfigurationList} instance and return the same instance. + * + * @param resources The resources of this {@link AiConfigurationList} + * @return The same instance of this {@link AiConfigurationList} class + */ + @Nonnull + public AiConfigurationList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiConfigurationList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiConfigurationList} */ - @Nonnull public AiConfigurationList addResourcesItem( @Nonnull final AiConfiguration resourcesItem) { + @Nonnull + public AiConfigurationList addResourcesItem(@Nonnull final AiConfiguration resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiConfigurationList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiConfigurationList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiConfigurationList} instance. * - * @param resources The resources of this {@link AiConfigurationList} + * @param resources The resources of this {@link AiConfigurationList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiConfigurationList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiConfigurationList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiConfigurationList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiConfigurationList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiConfigurationList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiConfigurationList} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +168,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiConfigurationList aiConfigurationList = (AiConfigurationList) o; - return Objects.equals(this.cloudSdkCustomFields, aiConfigurationList.cloudSdkCustomFields) && - Objects.equals(this.count, aiConfigurationList.count) && - Objects.equals(this.resources, aiConfigurationList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiConfigurationList.cloudSdkCustomFields) + && Objects.equals(this.count, aiConfigurationList.count) + && Objects.equals(this.resources, aiConfigurationList.resources); } @Override @@ -182,19 +179,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiConfigurationList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +202,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiConfigurationList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiConfigurationList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiConfigurationList().count(count).resources(resources); - } + * Set the count of this {@link AiConfigurationList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiConfigurationList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiConfigurationList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiConfigurationList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiConfigurationList} instance. + * + * @param resources The resources of this {@link AiConfigurationList} + * @return The AiConfigurationList instance. + */ + AiConfigurationList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiConfigurationList} instance. - * - * @param resources The resources of this {@link AiConfigurationList} - * @return The AiConfigurationList instance. - */ - AiConfigurationList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiConfigurationList} instance. - * - * @param resources The resources of this {@link AiConfigurationList} - * @return The AiConfigurationList instance. - */ - default AiConfigurationList resources( @Nonnull final AiConfiguration... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiConfigurationList} instance. + * + * @param resources The resources of this {@link AiConfigurationList} + * @return The AiConfigurationList instance. + */ + default AiConfigurationList resources(@Nonnull final AiConfiguration... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java index 62918b66..6ee55271 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeployment.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiDeploymentDetails; -import com.sap.ai.sdk.core.client.model.AiDeploymentStatus; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Detailed data about a deployment - */ +/** Detailed data about a deployment */ // CHECKSTYLE:OFF -public class AiDeployment +public class AiDeployment // CHECKSTYLE:ON { @JsonProperty("id") @@ -66,23 +53,15 @@ public class AiDeployment @JsonProperty("statusMessage") private String statusMessage; - /** - * Deployment target status - */ + /** Deployment target status */ public enum TargetStatusEnum { - /** - * The RUNNING option of this AiDeployment - */ + /** The RUNNING option of this AiDeployment */ RUNNING("RUNNING"), - - /** - * The STOPPED option of this AiDeployment - */ + + /** The STOPPED option of this AiDeployment */ STOPPED("STOPPED"), - - /** - * The DELETED option of this AiDeployment - */ + + /** The DELETED option of this AiDeployment */ DELETED("DELETED"); private String value; @@ -92,30 +71,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiDeployment - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiDeployment + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -128,28 +113,18 @@ public enum TargetStatusEnum { @JsonProperty("targetStatus") private TargetStatusEnum targetStatus; - /** - * Gets or Sets lastOperation - */ + /** Gets or Sets lastOperation */ public enum LastOperationEnum { - /** - * The CREATE option of this AiDeployment - */ + /** The CREATE option of this AiDeployment */ CREATE("CREATE"), - - /** - * The UPDATE option of this AiDeployment - */ + + /** The UPDATE option of this AiDeployment */ UPDATE("UPDATE"), - - /** - * The DELETE option of this AiDeployment - */ + + /** The DELETE option of this AiDeployment */ DELETE("DELETE"), - - /** - * The CASCADE_UPDATE option of this AiDeployment - */ + + /** The CASCADE_UPDATE option of this AiDeployment */ CASCADE_UPDATE("CASCADE-UPDATE"); private String value; @@ -159,30 +134,36 @@ public enum LastOperationEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiDeployment - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiDeployment + */ @JsonCreator - @Nonnull public static LastOperationEnum fromValue(@Nonnull final String value) { + @Nonnull + public static LastOperationEnum fromValue(@Nonnull final String value) { for (LastOperationEnum b : LastOperationEnum.values()) { if (b.value.equals(value)) { return b; @@ -219,489 +200,553 @@ public enum LastOperationEnum { @JsonProperty("completionTime") private OffsetDateTime completionTime; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeployment() { } - - /** - * Set the id of this {@link AiDeployment} instance and return the same instance. - * - * @param id ID of the deployment - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment id(@Nonnull final String id) { + + protected AiDeployment() {} + + /** + * Set the id of this {@link AiDeployment} instance and return the same instance. + * + * @param id ID of the deployment + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the deployment - * @return id The id of this {@link AiDeployment} instance. - */ - @Nonnull public String getId() { + /** + * ID of the deployment + * + * @return id The id of this {@link AiDeployment} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeployment} instance. * - * @param id ID of the deployment + * @param id ID of the deployment */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the deploymentUrl of this {@link AiDeployment} instance and return the same instance. - * - * @param deploymentUrl Consumption URL of the deployment - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment deploymentUrl(@Nonnull final String deploymentUrl) { + /** + * Set the deploymentUrl of this {@link AiDeployment} instance and return the same instance. + * + * @param deploymentUrl Consumption URL of the deployment + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment deploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; return this; } - /** - * Consumption URL of the deployment - * @return deploymentUrl The deploymentUrl of this {@link AiDeployment} instance. - */ - @Nonnull public String getDeploymentUrl() { + /** + * Consumption URL of the deployment + * + * @return deploymentUrl The deploymentUrl of this {@link AiDeployment} instance. + */ + @Nonnull + public String getDeploymentUrl() { return deploymentUrl; } /** * Set the deploymentUrl of this {@link AiDeployment} instance. * - * @param deploymentUrl Consumption URL of the deployment + * @param deploymentUrl Consumption URL of the deployment */ - public void setDeploymentUrl( @Nonnull final String deploymentUrl) { + public void setDeploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; } - /** - * Set the configurationId of this {@link AiDeployment} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiDeployment} instance and return the same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiDeployment} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiDeployment} instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiDeployment} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the configurationName of this {@link AiDeployment} instance and return the same instance. - * - * @param configurationName Name of the configuration - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment configurationName(@Nonnull final String configurationName) { + /** + * Set the configurationName of this {@link AiDeployment} instance and return the same instance. + * + * @param configurationName Name of the configuration + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment configurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; return this; } - /** - * Name of the configuration - * @return configurationName The configurationName of this {@link AiDeployment} instance. - */ - @Nonnull public String getConfigurationName() { + /** + * Name of the configuration + * + * @return configurationName The configurationName of this {@link AiDeployment} instance. + */ + @Nonnull + public String getConfigurationName() { return configurationName; } /** * Set the configurationName of this {@link AiDeployment} instance. * - * @param configurationName Name of the configuration + * @param configurationName Name of the configuration */ - public void setConfigurationName( @Nonnull final String configurationName) { + public void setConfigurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; } - /** - * Set the scenarioId of this {@link AiDeployment} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiDeployment} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiDeployment} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiDeployment} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiDeployment} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the status of this {@link AiDeployment} instance and return the same instance. - * - * @param status The status of this {@link AiDeployment} - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment status(@Nonnull final AiDeploymentStatus status) { + /** + * Set the status of this {@link AiDeployment} instance and return the same instance. + * + * @param status The status of this {@link AiDeployment} + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment status(@Nonnull final AiDeploymentStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiDeployment} instance. - */ - @Nonnull public AiDeploymentStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiDeployment} instance. + */ + @Nonnull + public AiDeploymentStatus getStatus() { return status; } /** * Set the status of this {@link AiDeployment} instance. * - * @param status The status of this {@link AiDeployment} + * @param status The status of this {@link AiDeployment} */ - public void setStatus( @Nonnull final AiDeploymentStatus status) { + public void setStatus(@Nonnull final AiDeploymentStatus status) { this.status = status; } - /** - * Set the statusMessage of this {@link AiDeployment} instance and return the same instance. - * - * @param statusMessage Deployment status message - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link AiDeployment} instance and return the same instance. + * + * @param statusMessage Deployment status message + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * Deployment status message - * @return statusMessage The statusMessage of this {@link AiDeployment} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * Deployment status message + * + * @return statusMessage The statusMessage of this {@link AiDeployment} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link AiDeployment} instance. * - * @param statusMessage Deployment status message + * @param statusMessage Deployment status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the targetStatus of this {@link AiDeployment} instance and return the same instance. - * - * @param targetStatus Deployment target status - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + /** + * Set the targetStatus of this {@link AiDeployment} instance and return the same instance. + * + * @param targetStatus Deployment target status + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment targetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Deployment target status - * @return targetStatus The targetStatus of this {@link AiDeployment} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Deployment target status + * + * @return targetStatus The targetStatus of this {@link AiDeployment} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiDeployment} instance. * - * @param targetStatus Deployment target status + * @param targetStatus Deployment target status */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } - /** - * Set the lastOperation of this {@link AiDeployment} instance and return the same instance. - * - * @param lastOperation The lastOperation of this {@link AiDeployment} - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment lastOperation(@Nonnull final LastOperationEnum lastOperation) { + /** + * Set the lastOperation of this {@link AiDeployment} instance and return the same instance. + * + * @param lastOperation The lastOperation of this {@link AiDeployment} + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment lastOperation(@Nonnull final LastOperationEnum lastOperation) { this.lastOperation = lastOperation; return this; } - /** - * Get lastOperation - * @return lastOperation The lastOperation of this {@link AiDeployment} instance. - */ - @Nonnull public LastOperationEnum getLastOperation() { + /** + * Get lastOperation + * + * @return lastOperation The lastOperation of this {@link AiDeployment} instance. + */ + @Nonnull + public LastOperationEnum getLastOperation() { return lastOperation; } /** * Set the lastOperation of this {@link AiDeployment} instance. * - * @param lastOperation The lastOperation of this {@link AiDeployment} + * @param lastOperation The lastOperation of this {@link AiDeployment} */ - public void setLastOperation( @Nonnull final LastOperationEnum lastOperation) { + public void setLastOperation(@Nonnull final LastOperationEnum lastOperation) { this.lastOperation = lastOperation; } - /** - * Set the latestRunningConfigurationId of this {@link AiDeployment} instance and return the same instance. - * - * @param latestRunningConfigurationId configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment latestRunningConfigurationId(@Nonnull final String latestRunningConfigurationId) { + /** + * Set the latestRunningConfigurationId of this {@link AiDeployment} instance and return the same + * instance. + * + * @param latestRunningConfigurationId configurationId that was running before a PATCH operation + * has modified the configurationId of the deployment. This can be used for a manual rollback + * in case the new configurationId results in a DEAD deployment + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment latestRunningConfigurationId( + @Nonnull final String latestRunningConfigurationId) { this.latestRunningConfigurationId = latestRunningConfigurationId; return this; } - /** - * configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment - * @return latestRunningConfigurationId The latestRunningConfigurationId of this {@link AiDeployment} instance. - */ - @Nonnull public String getLatestRunningConfigurationId() { + /** + * configurationId that was running before a PATCH operation has modified the configurationId of + * the deployment. This can be used for a manual rollback in case the new configurationId results + * in a DEAD deployment + * + * @return latestRunningConfigurationId The latestRunningConfigurationId of this {@link + * AiDeployment} instance. + */ + @Nonnull + public String getLatestRunningConfigurationId() { return latestRunningConfigurationId; } /** * Set the latestRunningConfigurationId of this {@link AiDeployment} instance. * - * @param latestRunningConfigurationId configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment + * @param latestRunningConfigurationId configurationId that was running before a PATCH operation + * has modified the configurationId of the deployment. This can be used for a manual rollback + * in case the new configurationId results in a DEAD deployment */ - public void setLatestRunningConfigurationId( @Nonnull final String latestRunningConfigurationId) { + public void setLatestRunningConfigurationId(@Nonnull final String latestRunningConfigurationId) { this.latestRunningConfigurationId = latestRunningConfigurationId; } - /** - * Set the ttl of this {@link AiDeployment} instance and return the same instance. - * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment ttl(@Nonnull final String ttl) { + /** + * Set the ttl of this {@link AiDeployment} instance and return the same instance. + * + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment ttl(@Nonnull final String ttl) { this.ttl = ttl; return this; } - /** - * Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return ttl The ttl of this {@link AiDeployment} instance. - */ - @Nonnull public String getTtl() { + /** + * Time to live for a deployment. Its value can be either null or a number followed by the unit + * (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * + * @return ttl The ttl of this {@link AiDeployment} instance. + */ + @Nonnull + public String getTtl() { return ttl; } /** * Set the ttl of this {@link AiDeployment} instance. * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) */ - public void setTtl( @Nonnull final String ttl) { + public void setTtl(@Nonnull final String ttl) { this.ttl = ttl; } - /** - * Set the details of this {@link AiDeployment} instance and return the same instance. - * - * @param details The details of this {@link AiDeployment} - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment details(@Nonnull final AiDeploymentDetails details) { + /** + * Set the details of this {@link AiDeployment} instance and return the same instance. + * + * @param details The details of this {@link AiDeployment} + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment details(@Nonnull final AiDeploymentDetails details) { this.details = details; return this; } - /** - * Get details - * @return details The details of this {@link AiDeployment} instance. - */ - @Nonnull public AiDeploymentDetails getDetails() { + /** + * Get details + * + * @return details The details of this {@link AiDeployment} instance. + */ + @Nonnull + public AiDeploymentDetails getDetails() { return details; } /** * Set the details of this {@link AiDeployment} instance. * - * @param details The details of this {@link AiDeployment} + * @param details The details of this {@link AiDeployment} */ - public void setDetails( @Nonnull final AiDeploymentDetails details) { + public void setDetails(@Nonnull final AiDeploymentDetails details) { this.details = details; } - /** - * Set the createdAt of this {@link AiDeployment} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiDeployment} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiDeployment} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiDeployment} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiDeployment} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiDeployment} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiDeployment} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiDeployment} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiDeployment} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiDeployment} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } - /** - * Set the submissionTime of this {@link AiDeployment} instance and return the same instance. - * - * @param submissionTime Timestamp of job submitted - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment submissionTime(@Nonnull final OffsetDateTime submissionTime) { + /** + * Set the submissionTime of this {@link AiDeployment} instance and return the same instance. + * + * @param submissionTime Timestamp of job submitted + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment submissionTime(@Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; return this; } - /** - * Timestamp of job submitted - * @return submissionTime The submissionTime of this {@link AiDeployment} instance. - */ - @Nonnull public OffsetDateTime getSubmissionTime() { + /** + * Timestamp of job submitted + * + * @return submissionTime The submissionTime of this {@link AiDeployment} instance. + */ + @Nonnull + public OffsetDateTime getSubmissionTime() { return submissionTime; } /** * Set the submissionTime of this {@link AiDeployment} instance. * - * @param submissionTime Timestamp of job submitted + * @param submissionTime Timestamp of job submitted */ - public void setSubmissionTime( @Nonnull final OffsetDateTime submissionTime) { + public void setSubmissionTime(@Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; } - /** - * Set the startTime of this {@link AiDeployment} instance and return the same instance. - * - * @param startTime Timestamp of job status changed to RUNNING - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment startTime(@Nonnull final OffsetDateTime startTime) { + /** + * Set the startTime of this {@link AiDeployment} instance and return the same instance. + * + * @param startTime Timestamp of job status changed to RUNNING + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment startTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; return this; } - /** - * Timestamp of job status changed to RUNNING - * @return startTime The startTime of this {@link AiDeployment} instance. - */ - @Nonnull public OffsetDateTime getStartTime() { + /** + * Timestamp of job status changed to RUNNING + * + * @return startTime The startTime of this {@link AiDeployment} instance. + */ + @Nonnull + public OffsetDateTime getStartTime() { return startTime; } /** * Set the startTime of this {@link AiDeployment} instance. * - * @param startTime Timestamp of job status changed to RUNNING + * @param startTime Timestamp of job status changed to RUNNING */ - public void setStartTime( @Nonnull final OffsetDateTime startTime) { + public void setStartTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; } - /** - * Set the completionTime of this {@link AiDeployment} instance and return the same instance. - * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return The same instance of this {@link AiDeployment} class - */ - @Nonnull public AiDeployment completionTime(@Nonnull final OffsetDateTime completionTime) { + /** + * Set the completionTime of this {@link AiDeployment} instance and return the same instance. + * + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @return The same instance of this {@link AiDeployment} class + */ + @Nonnull + public AiDeployment completionTime(@Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; return this; } - /** - * Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return completionTime The completionTime of this {@link AiDeployment} instance. - */ - @Nonnull public OffsetDateTime getCompletionTime() { + /** + * Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * + * @return completionTime The completionTime of this {@link AiDeployment} instance. + */ + @Nonnull + public OffsetDateTime getCompletionTime() { return completionTime; } /** * Set the completionTime of this {@link AiDeployment} instance. * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED */ - public void setCompletionTime( @Nonnull final OffsetDateTime completionTime) { + public void setCompletionTime(@Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; } /** * Get the names of the unrecognizable properties of the {@link AiDeployment}. + * * @return The set of properties names */ @JsonIgnore @@ -712,31 +757,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiDeployment} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeployment has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiDeployment has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeployment} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeployment} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -746,33 +791,53 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiDeployment aiDeployment = (AiDeployment) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeployment.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeployment.id) && - Objects.equals(this.deploymentUrl, aiDeployment.deploymentUrl) && - Objects.equals(this.configurationId, aiDeployment.configurationId) && - Objects.equals(this.configurationName, aiDeployment.configurationName) && - Objects.equals(this.scenarioId, aiDeployment.scenarioId) && - Objects.equals(this.status, aiDeployment.status) && - Objects.equals(this.statusMessage, aiDeployment.statusMessage) && - Objects.equals(this.targetStatus, aiDeployment.targetStatus) && - Objects.equals(this.lastOperation, aiDeployment.lastOperation) && - Objects.equals(this.latestRunningConfigurationId, aiDeployment.latestRunningConfigurationId) && - Objects.equals(this.ttl, aiDeployment.ttl) && - Objects.equals(this.details, aiDeployment.details) && - Objects.equals(this.createdAt, aiDeployment.createdAt) && - Objects.equals(this.modifiedAt, aiDeployment.modifiedAt) && - Objects.equals(this.submissionTime, aiDeployment.submissionTime) && - Objects.equals(this.startTime, aiDeployment.startTime) && - Objects.equals(this.completionTime, aiDeployment.completionTime); + return Objects.equals(this.cloudSdkCustomFields, aiDeployment.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeployment.id) + && Objects.equals(this.deploymentUrl, aiDeployment.deploymentUrl) + && Objects.equals(this.configurationId, aiDeployment.configurationId) + && Objects.equals(this.configurationName, aiDeployment.configurationName) + && Objects.equals(this.scenarioId, aiDeployment.scenarioId) + && Objects.equals(this.status, aiDeployment.status) + && Objects.equals(this.statusMessage, aiDeployment.statusMessage) + && Objects.equals(this.targetStatus, aiDeployment.targetStatus) + && Objects.equals(this.lastOperation, aiDeployment.lastOperation) + && Objects.equals( + this.latestRunningConfigurationId, aiDeployment.latestRunningConfigurationId) + && Objects.equals(this.ttl, aiDeployment.ttl) + && Objects.equals(this.details, aiDeployment.details) + && Objects.equals(this.createdAt, aiDeployment.createdAt) + && Objects.equals(this.modifiedAt, aiDeployment.modifiedAt) + && Objects.equals(this.submissionTime, aiDeployment.submissionTime) + && Objects.equals(this.startTime, aiDeployment.startTime) + && Objects.equals(this.completionTime, aiDeployment.completionTime); } @Override public int hashCode() { - return Objects.hash(id, deploymentUrl, configurationId, configurationName, scenarioId, status, statusMessage, targetStatus, lastOperation, latestRunningConfigurationId, ttl, details, createdAt, modifiedAt, submissionTime, startTime, completionTime, cloudSdkCustomFields); + return Objects.hash( + id, + deploymentUrl, + configurationId, + configurationName, + scenarioId, + status, + statusMessage, + targetStatus, + lastOperation, + latestRunningConfigurationId, + ttl, + details, + createdAt, + modifiedAt, + submissionTime, + startTime, + completionTime, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeployment {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -784,7 +849,9 @@ public int hashCode() { sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" targetStatus: ").append(toIndentedString(targetStatus)).append("\n"); sb.append(" lastOperation: ").append(toIndentedString(lastOperation)).append("\n"); - sb.append(" latestRunningConfigurationId: ").append(toIndentedString(latestRunningConfigurationId)).append("\n"); + sb.append(" latestRunningConfigurationId: ") + .append(toIndentedString(latestRunningConfigurationId)) + .append("\n"); sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -792,14 +859,15 @@ public int hashCode() { sb.append(" submissionTime: ").append(toIndentedString(submissionTime)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" completionTime: ").append(toIndentedString(completionTime)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -808,72 +876,76 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeployment} instance + * with all required arguments. + */ + public static Builder create() { + return (id) -> + (configurationId) -> + (status) -> + (createdAt) -> + (modifiedAt) -> + new AiDeployment() + .id(id) + .configurationId(configurationId) + .status(status) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeployment} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiDeployment().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeployment} instance. - * - * @param id ID of the deployment - * @return The AiDeployment builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the configurationId of this {@link AiDeployment} instance. - * - * @param configurationId ID of the configuration - * @return The AiDeployment builder. - */ - Builder2 configurationId( @Nonnull final String configurationId); - } + * Set the id of this {@link AiDeployment} instance. + * + * @param id ID of the deployment + * @return The AiDeployment builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the status of this {@link AiDeployment} instance. - * - * @param status The status of this {@link AiDeployment} - * @return The AiDeployment builder. - */ - Builder3 status( @Nonnull final AiDeploymentStatus status); - } + * Set the configurationId of this {@link AiDeployment} instance. + * + * @param configurationId ID of the configuration + * @return The AiDeployment builder. + */ + Builder2 configurationId(@Nonnull final String configurationId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the createdAt of this {@link AiDeployment} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiDeployment builder. - */ - Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the status of this {@link AiDeployment} instance. + * + * @param status The status of this {@link AiDeployment} + * @return The AiDeployment builder. + */ + Builder3 status(@Nonnull final AiDeploymentStatus status); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the modifiedAt of this {@link AiDeployment} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiDeployment instance. - */ - AiDeployment modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiDeployment} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiDeployment builder. + */ + Builder4 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiDeployment} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiDeployment instance. + */ + AiDeployment modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java index 80dc01c3..f9ac0573 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,55 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.sap.ai.sdk.core.client.model.AiDeploymentModificationRequestWithIdentifier; -import java.util.LinkedHashSet; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Request object for changing the target status of multiple deployments - */ +/** Request object for changing the target status of multiple deployments */ // CHECKSTYLE:OFF -public class AiDeploymentBulkModificationRequest +public class AiDeploymentBulkModificationRequest // CHECKSTYLE:ON { @JsonProperty("deployments") private Set deployments = new LinkedHashSet<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentBulkModificationRequest() { } - - /** - * Set the deployments of this {@link AiDeploymentBulkModificationRequest} instance and return the same instance. - * - * @param deployments The deployments of this {@link AiDeploymentBulkModificationRequest} - * @return The same instance of this {@link AiDeploymentBulkModificationRequest} class - */ - @Nonnull public AiDeploymentBulkModificationRequest deployments(@Nonnull final Set deployments) { + + protected AiDeploymentBulkModificationRequest() {} + + /** + * Set the deployments of this {@link AiDeploymentBulkModificationRequest} instance and return the + * same instance. + * + * @param deployments The deployments of this {@link AiDeploymentBulkModificationRequest} + * @return The same instance of this {@link AiDeploymentBulkModificationRequest} class + */ + @Nonnull + public AiDeploymentBulkModificationRequest deployments( + @Nonnull final Set deployments) { this.deployments = deployments; return this; } + /** * Add one deployments instance to this {@link AiDeploymentBulkModificationRequest}. + * * @param deploymentsItem The deployments that should be added * @return The same instance of type {@link AiDeploymentBulkModificationRequest} */ - @Nonnull public AiDeploymentBulkModificationRequest addDeploymentsItem( @Nonnull final AiDeploymentModificationRequestWithIdentifier deploymentsItem) { + @Nonnull + public AiDeploymentBulkModificationRequest addDeploymentsItem( + @Nonnull final AiDeploymentModificationRequestWithIdentifier deploymentsItem) { if (this.deployments == null) { this.deployments = new LinkedHashSet<>(); } @@ -77,25 +68,31 @@ protected AiDeploymentBulkModificationRequest() { } return this; } - /** - * Get deployments - * @return deployments The deployments of this {@link AiDeploymentBulkModificationRequest} instance. - */ - @Nonnull public Set getDeployments() { + /** + * Get deployments + * + * @return deployments The deployments of this {@link AiDeploymentBulkModificationRequest} + * instance. + */ + @Nonnull + public Set getDeployments() { return deployments; } /** * Set the deployments of this {@link AiDeploymentBulkModificationRequest} instance. * - * @param deployments The deployments of this {@link AiDeploymentBulkModificationRequest} + * @param deployments The deployments of this {@link AiDeploymentBulkModificationRequest} */ - public void setDeployments( @Nonnull final Set deployments) { + public void setDeployments( + @Nonnull final Set deployments) { this.deployments = deployments; } /** - * Get the names of the unrecognizable properties of the {@link AiDeploymentBulkModificationRequest}. + * Get the names of the unrecognizable properties of the {@link + * AiDeploymentBulkModificationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -105,32 +102,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentBulkModificationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentBulkModificationRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentBulkModificationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentBulkModificationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentBulkModificationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentBulkModificationRequest} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -139,9 +139,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentBulkModificationRequest aiDeploymentBulkModificationRequest = (AiDeploymentBulkModificationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentBulkModificationRequest.cloudSdkCustomFields) && - Objects.equals(this.deployments, aiDeploymentBulkModificationRequest.deployments); + final AiDeploymentBulkModificationRequest aiDeploymentBulkModificationRequest = + (AiDeploymentBulkModificationRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentBulkModificationRequest.cloudSdkCustomFields) + && Objects.equals(this.deployments, aiDeploymentBulkModificationRequest.deployments); } @Override @@ -150,18 +152,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentBulkModificationRequest {\n"); sb.append(" deployments: ").append(toIndentedString(deployments)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +174,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiDeploymentBulkModificationRequest} instance. No arguments are required. - */ - public static AiDeploymentBulkModificationRequest create() { - return new AiDeploymentBulkModificationRequest(); - } - + /** + * Create a new {@link AiDeploymentBulkModificationRequest} instance. No arguments are required. + */ + public static AiDeploymentBulkModificationRequest create() { + return new AiDeploymentBulkModificationRequest(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java index 68567c65..bcc47526 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentBulkModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,56 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiDeploymentModificationResponseListInner; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Response object with array of deployments - */ +/** Response object with array of deployments */ // CHECKSTYLE:OFF -public class AiDeploymentBulkModificationResponse +public class AiDeploymentBulkModificationResponse // CHECKSTYLE:ON { @JsonProperty("deployments") private List deployments = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentBulkModificationResponse() { } - - /** - * Set the deployments of this {@link AiDeploymentBulkModificationResponse} instance and return the same instance. - * - * @param deployments The deployments of this {@link AiDeploymentBulkModificationResponse} - * @return The same instance of this {@link AiDeploymentBulkModificationResponse} class - */ - @Nonnull public AiDeploymentBulkModificationResponse deployments(@Nonnull final List deployments) { + + protected AiDeploymentBulkModificationResponse() {} + + /** + * Set the deployments of this {@link AiDeploymentBulkModificationResponse} instance and return + * the same instance. + * + * @param deployments The deployments of this {@link AiDeploymentBulkModificationResponse} + * @return The same instance of this {@link AiDeploymentBulkModificationResponse} class + */ + @Nonnull + public AiDeploymentBulkModificationResponse deployments( + @Nonnull final List deployments) { this.deployments = deployments; return this; } + /** * Add one deployments instance to this {@link AiDeploymentBulkModificationResponse}. + * * @param deploymentsItem The deployments that should be added * @return The same instance of type {@link AiDeploymentBulkModificationResponse} */ - @Nonnull public AiDeploymentBulkModificationResponse addDeploymentsItem( @Nonnull final AiDeploymentModificationResponseListInner deploymentsItem) { + @Nonnull + public AiDeploymentBulkModificationResponse addDeploymentsItem( + @Nonnull final AiDeploymentModificationResponseListInner deploymentsItem) { if (this.deployments == null) { this.deployments = new ArrayList<>(); } @@ -77,25 +69,31 @@ protected AiDeploymentBulkModificationResponse() { } return this; } - /** - * Get deployments - * @return deployments The deployments of this {@link AiDeploymentBulkModificationResponse} instance. - */ - @Nonnull public List getDeployments() { + /** + * Get deployments + * + * @return deployments The deployments of this {@link AiDeploymentBulkModificationResponse} + * instance. + */ + @Nonnull + public List getDeployments() { return deployments; } /** * Set the deployments of this {@link AiDeploymentBulkModificationResponse} instance. * - * @param deployments The deployments of this {@link AiDeploymentBulkModificationResponse} + * @param deployments The deployments of this {@link AiDeploymentBulkModificationResponse} */ - public void setDeployments( @Nonnull final List deployments) { + public void setDeployments( + @Nonnull final List deployments) { this.deployments = deployments; } /** - * Get the names of the unrecognizable properties of the {@link AiDeploymentBulkModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * AiDeploymentBulkModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -105,32 +103,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentBulkModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiDeploymentBulkModificationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentBulkModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentBulkModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentBulkModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentBulkModificationResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -139,9 +140,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentBulkModificationResponse aiDeploymentBulkModificationResponse = (AiDeploymentBulkModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentBulkModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.deployments, aiDeploymentBulkModificationResponse.deployments); + final AiDeploymentBulkModificationResponse aiDeploymentBulkModificationResponse = + (AiDeploymentBulkModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentBulkModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.deployments, aiDeploymentBulkModificationResponse.deployments); } @Override @@ -150,18 +153,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentBulkModificationResponse {\n"); sb.append(" deployments: ").append(toIndentedString(deployments)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +175,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiDeploymentBulkModificationResponse} instance. No arguments are required. - */ - public static AiDeploymentBulkModificationResponse create() { - return new AiDeploymentBulkModificationResponse(); - } - + /** + * Create a new {@link AiDeploymentBulkModificationResponse} instance. No arguments are required. + */ + public static AiDeploymentBulkModificationResponse create() { + return new AiDeploymentBulkModificationResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java index ec161a4a..eb021873 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Request object for creating an execution or an deployment - */ +/** Request object for creating an execution or an deployment */ // CHECKSTYLE:OFF -public class AiDeploymentCreationRequest +public class AiDeploymentCreationRequest // CHECKSTYLE:ON { @JsonProperty("ttl") @@ -48,69 +35,81 @@ public class AiDeploymentCreationRequest @JsonProperty("configurationId") private String configurationId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentCreationRequest() { } - - /** - * Set the ttl of this {@link AiDeploymentCreationRequest} instance and return the same instance. - * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return The same instance of this {@link AiDeploymentCreationRequest} class - */ - @Nonnull public AiDeploymentCreationRequest ttl(@Nonnull final String ttl) { + + protected AiDeploymentCreationRequest() {} + + /** + * Set the ttl of this {@link AiDeploymentCreationRequest} instance and return the same instance. + * + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @return The same instance of this {@link AiDeploymentCreationRequest} class + */ + @Nonnull + public AiDeploymentCreationRequest ttl(@Nonnull final String ttl) { this.ttl = ttl; return this; } - /** - * Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return ttl The ttl of this {@link AiDeploymentCreationRequest} instance. - */ - @Nonnull public String getTtl() { + /** + * Time to live for a deployment. Its value can be either null or a number followed by the unit + * (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * + * @return ttl The ttl of this {@link AiDeploymentCreationRequest} instance. + */ + @Nonnull + public String getTtl() { return ttl; } /** * Set the ttl of this {@link AiDeploymentCreationRequest} instance. * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) */ - public void setTtl( @Nonnull final String ttl) { + public void setTtl(@Nonnull final String ttl) { this.ttl = ttl; } - /** - * Set the configurationId of this {@link AiDeploymentCreationRequest} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiDeploymentCreationRequest} class - */ - @Nonnull public AiDeploymentCreationRequest configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiDeploymentCreationRequest} instance and return the + * same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiDeploymentCreationRequest} class + */ + @Nonnull + public AiDeploymentCreationRequest configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiDeploymentCreationRequest} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiDeploymentCreationRequest} + * instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiDeploymentCreationRequest} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentCreationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +119,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentCreationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentCreationRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentCreationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentCreationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentCreationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentCreationRequest} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +156,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiDeploymentCreationRequest aiDeploymentCreationRequest = (AiDeploymentCreationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentCreationRequest.cloudSdkCustomFields) && - Objects.equals(this.ttl, aiDeploymentCreationRequest.ttl) && - Objects.equals(this.configurationId, aiDeploymentCreationRequest.configurationId); + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentCreationRequest.cloudSdkCustomFields) + && Objects.equals(this.ttl, aiDeploymentCreationRequest.ttl) + && Objects.equals(this.configurationId, aiDeploymentCreationRequest.configurationId); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentCreationRequest {\n"); sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,24 +191,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentCreationRequest} instance with all required arguments. - */ - public static Builder create() { - return (configurationId) -> new AiDeploymentCreationRequest().configurationId(configurationId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the configurationId of this {@link AiDeploymentCreationRequest} instance. - * - * @param configurationId ID of the configuration - * @return The AiDeploymentCreationRequest instance. - */ - AiDeploymentCreationRequest configurationId( @Nonnull final String configurationId); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentCreationRequest} instance with all required arguments. + */ + public static Builder create() { + return (configurationId) -> new AiDeploymentCreationRequest().configurationId(configurationId); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the configurationId of this {@link AiDeploymentCreationRequest} instance. + * + * @param configurationId ID of the configuration + * @return The AiDeploymentCreationRequest instance. + */ + AiDeploymentCreationRequest configurationId(@Nonnull final String configurationId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java index b7962da8..1e0c92b7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutionStatus; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiDeploymentCreationResponse - */ +/** AiDeploymentCreationResponse */ // CHECKSTYLE:OFF -public class AiDeploymentCreationResponse +public class AiDeploymentCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -58,153 +44,175 @@ public class AiDeploymentCreationResponse @JsonProperty("ttl") private String ttl; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentCreationResponse() { } - - /** - * Set the id of this {@link AiDeploymentCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiDeploymentCreationResponse} class - */ - @Nonnull public AiDeploymentCreationResponse id(@Nonnull final String id) { + + protected AiDeploymentCreationResponse() {} + + /** + * Set the id of this {@link AiDeploymentCreationResponse} instance and return the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiDeploymentCreationResponse} class + */ + @Nonnull + public AiDeploymentCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiDeploymentCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiDeploymentCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeploymentCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiDeploymentCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiDeploymentCreationResponse} class - */ - @Nonnull public AiDeploymentCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiDeploymentCreationResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiDeploymentCreationResponse} class + */ + @Nonnull + public AiDeploymentCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiDeploymentCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiDeploymentCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiDeploymentCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the deploymentUrl of this {@link AiDeploymentCreationResponse} instance and return the same instance. - * - * @param deploymentUrl Consumption URL of the deployment - * @return The same instance of this {@link AiDeploymentCreationResponse} class - */ - @Nonnull public AiDeploymentCreationResponse deploymentUrl(@Nonnull final String deploymentUrl) { + /** + * Set the deploymentUrl of this {@link AiDeploymentCreationResponse} instance and return the same + * instance. + * + * @param deploymentUrl Consumption URL of the deployment + * @return The same instance of this {@link AiDeploymentCreationResponse} class + */ + @Nonnull + public AiDeploymentCreationResponse deploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; return this; } - /** - * Consumption URL of the deployment - * @return deploymentUrl The deploymentUrl of this {@link AiDeploymentCreationResponse} instance. - */ - @Nonnull public String getDeploymentUrl() { + /** + * Consumption URL of the deployment + * + * @return deploymentUrl The deploymentUrl of this {@link AiDeploymentCreationResponse} instance. + */ + @Nonnull + public String getDeploymentUrl() { return deploymentUrl; } /** * Set the deploymentUrl of this {@link AiDeploymentCreationResponse} instance. * - * @param deploymentUrl Consumption URL of the deployment + * @param deploymentUrl Consumption URL of the deployment */ - public void setDeploymentUrl( @Nonnull final String deploymentUrl) { + public void setDeploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; } - /** - * Set the status of this {@link AiDeploymentCreationResponse} instance and return the same instance. - * - * @param status The status of this {@link AiDeploymentCreationResponse} - * @return The same instance of this {@link AiDeploymentCreationResponse} class - */ - @Nonnull public AiDeploymentCreationResponse status(@Nonnull final AiExecutionStatus status) { + /** + * Set the status of this {@link AiDeploymentCreationResponse} instance and return the same + * instance. + * + * @param status The status of this {@link AiDeploymentCreationResponse} + * @return The same instance of this {@link AiDeploymentCreationResponse} class + */ + @Nonnull + public AiDeploymentCreationResponse status(@Nonnull final AiExecutionStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiDeploymentCreationResponse} instance. - */ - @Nonnull public AiExecutionStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiDeploymentCreationResponse} instance. + */ + @Nonnull + public AiExecutionStatus getStatus() { return status; } /** * Set the status of this {@link AiDeploymentCreationResponse} instance. * - * @param status The status of this {@link AiDeploymentCreationResponse} + * @param status The status of this {@link AiDeploymentCreationResponse} */ - public void setStatus( @Nonnull final AiExecutionStatus status) { + public void setStatus(@Nonnull final AiExecutionStatus status) { this.status = status; } - /** - * Set the ttl of this {@link AiDeploymentCreationResponse} instance and return the same instance. - * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return The same instance of this {@link AiDeploymentCreationResponse} class - */ - @Nonnull public AiDeploymentCreationResponse ttl(@Nonnull final String ttl) { + /** + * Set the ttl of this {@link AiDeploymentCreationResponse} instance and return the same instance. + * + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @return The same instance of this {@link AiDeploymentCreationResponse} class + */ + @Nonnull + public AiDeploymentCreationResponse ttl(@Nonnull final String ttl) { this.ttl = ttl; return this; } - /** - * Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return ttl The ttl of this {@link AiDeploymentCreationResponse} instance. - */ - @Nonnull public String getTtl() { + /** + * Time to live for a deployment. Its value can be either null or a number followed by the unit + * (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * + * @return ttl The ttl of this {@link AiDeploymentCreationResponse} instance. + */ + @Nonnull + public String getTtl() { return ttl; } /** * Set the ttl of this {@link AiDeploymentCreationResponse} instance. * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) */ - public void setTtl( @Nonnull final String ttl) { + public void setTtl(@Nonnull final String ttl) { this.ttl = ttl; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -214,32 +222,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentCreationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentCreationResponse} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,13 +259,15 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentCreationResponse aiDeploymentCreationResponse = (AiDeploymentCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeploymentCreationResponse.id) && - Objects.equals(this.message, aiDeploymentCreationResponse.message) && - Objects.equals(this.deploymentUrl, aiDeploymentCreationResponse.deploymentUrl) && - Objects.equals(this.status, aiDeploymentCreationResponse.status) && - Objects.equals(this.ttl, aiDeploymentCreationResponse.ttl); + final AiDeploymentCreationResponse aiDeploymentCreationResponse = + (AiDeploymentCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeploymentCreationResponse.id) + && Objects.equals(this.message, aiDeploymentCreationResponse.message) + && Objects.equals(this.deploymentUrl, aiDeploymentCreationResponse.deploymentUrl) + && Objects.equals(this.status, aiDeploymentCreationResponse.status) + && Objects.equals(this.ttl, aiDeploymentCreationResponse.ttl); } @Override @@ -263,7 +276,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -271,14 +285,15 @@ public int hashCode() { sb.append(" deploymentUrl: ").append(toIndentedString(deploymentUrl)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -287,36 +302,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiDeploymentCreationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiDeploymentCreationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeploymentCreationResponse} instance. - * - * @param id Generic ID - * @return The AiDeploymentCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiDeploymentCreationResponse} instance. - * - * @param message Message - * @return The AiDeploymentCreationResponse instance. - */ - AiDeploymentCreationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiDeploymentCreationResponse} instance. + * + * @param id Generic ID + * @return The AiDeploymentCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentCreationResponse} instance. + * + * @param message Message + * @return The AiDeploymentCreationResponse instance. + */ + AiDeploymentCreationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java index 1ff553f0..527dcd48 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiDeploymentDeletionResponse - */ +/** AiDeploymentDeletionResponse */ // CHECKSTYLE:OFF -public class AiDeploymentDeletionResponse +public class AiDeploymentDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,77 @@ public class AiDeploymentDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentDeletionResponse() { } - - /** - * Set the id of this {@link AiDeploymentDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiDeploymentDeletionResponse} class - */ - @Nonnull public AiDeploymentDeletionResponse id(@Nonnull final String id) { + + protected AiDeploymentDeletionResponse() {} + + /** + * Set the id of this {@link AiDeploymentDeletionResponse} instance and return the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiDeploymentDeletionResponse} class + */ + @Nonnull + public AiDeploymentDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiDeploymentDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiDeploymentDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeploymentDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiDeploymentDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiDeploymentDeletionResponse} class - */ - @Nonnull public AiDeploymentDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiDeploymentDeletionResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiDeploymentDeletionResponse} class + */ + @Nonnull + public AiDeploymentDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiDeploymentDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiDeploymentDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiDeploymentDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +115,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentDeletionResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentDeletionResponse} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +152,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentDeletionResponse aiDeploymentDeletionResponse = (AiDeploymentDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeploymentDeletionResponse.id) && - Objects.equals(this.message, aiDeploymentDeletionResponse.message); + final AiDeploymentDeletionResponse aiDeploymentDeletionResponse = + (AiDeploymentDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeploymentDeletionResponse.id) + && Objects.equals(this.message, aiDeploymentDeletionResponse.message); } @Override @@ -166,19 +166,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +189,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiDeploymentDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiDeploymentDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeploymentDeletionResponse} instance. - * - * @param id Generic ID - * @return The AiDeploymentDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiDeploymentDeletionResponse} instance. - * - * @param message Message - * @return The AiDeploymentDeletionResponse instance. - */ - AiDeploymentDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiDeploymentDeletionResponse} instance. + * + * @param id Generic ID + * @return The AiDeploymentDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentDeletionResponse} instance. + * + * @param message Message + * @return The AiDeploymentDeletionResponse instance. + */ + AiDeploymentDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java index 0416d86c..ecc2764d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiResourcesDetails; -import com.sap.ai.sdk.core.client.model.AiScalingDetails; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Detail information about a deployment (including predefined sections: `scaling` and `resources`). JSON String representation of this object is limited to 5000 characters + * Detail information about a deployment (including predefined sections: `scaling` and + * `resources`). JSON String representation of this object is limited to 5000 characters */ // CHECKSTYLE:OFF -public class AiDeploymentDetails +public class AiDeploymentDetails // CHECKSTYLE:ON { @JsonProperty("scaling") @@ -50,69 +38,76 @@ public class AiDeploymentDetails @JsonProperty("resources") private AiResourcesDetails resources; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentDetails() { } - - /** - * Set the scaling of this {@link AiDeploymentDetails} instance and return the same instance. - * - * @param scaling The scaling of this {@link AiDeploymentDetails} - * @return The same instance of this {@link AiDeploymentDetails} class - */ - @Nonnull public AiDeploymentDetails scaling(@Nonnull final AiScalingDetails scaling) { + + protected AiDeploymentDetails() {} + + /** + * Set the scaling of this {@link AiDeploymentDetails} instance and return the same instance. + * + * @param scaling The scaling of this {@link AiDeploymentDetails} + * @return The same instance of this {@link AiDeploymentDetails} class + */ + @Nonnull + public AiDeploymentDetails scaling(@Nonnull final AiScalingDetails scaling) { this.scaling = scaling; return this; } - /** - * Get scaling - * @return scaling The scaling of this {@link AiDeploymentDetails} instance. - */ - @Nonnull public AiScalingDetails getScaling() { + /** + * Get scaling + * + * @return scaling The scaling of this {@link AiDeploymentDetails} instance. + */ + @Nonnull + public AiScalingDetails getScaling() { return scaling; } /** * Set the scaling of this {@link AiDeploymentDetails} instance. * - * @param scaling The scaling of this {@link AiDeploymentDetails} + * @param scaling The scaling of this {@link AiDeploymentDetails} */ - public void setScaling( @Nonnull final AiScalingDetails scaling) { + public void setScaling(@Nonnull final AiScalingDetails scaling) { this.scaling = scaling; } - /** - * Set the resources of this {@link AiDeploymentDetails} instance and return the same instance. - * - * @param resources The resources of this {@link AiDeploymentDetails} - * @return The same instance of this {@link AiDeploymentDetails} class - */ - @Nonnull public AiDeploymentDetails resources(@Nonnull final AiResourcesDetails resources) { + /** + * Set the resources of this {@link AiDeploymentDetails} instance and return the same instance. + * + * @param resources The resources of this {@link AiDeploymentDetails} + * @return The same instance of this {@link AiDeploymentDetails} class + */ + @Nonnull + public AiDeploymentDetails resources(@Nonnull final AiResourcesDetails resources) { this.resources = resources; return this; } - /** - * Get resources - * @return resources The resources of this {@link AiDeploymentDetails} instance. - */ - @Nonnull public AiResourcesDetails getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiDeploymentDetails} instance. + */ + @Nonnull + public AiResourcesDetails getResources() { return resources; } /** * Set the resources of this {@link AiDeploymentDetails} instance. * - * @param resources The resources of this {@link AiDeploymentDetails} + * @param resources The resources of this {@link AiDeploymentDetails} */ - public void setResources( @Nonnull final AiResourcesDetails resources) { + public void setResources(@Nonnull final AiResourcesDetails resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -123,31 +118,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiDeploymentDetails} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentDetails} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -157,9 +153,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiDeploymentDetails aiDeploymentDetails = (AiDeploymentDetails) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentDetails.cloudSdkCustomFields) && - Objects.equals(this.scaling, aiDeploymentDetails.scaling) && - Objects.equals(this.resources, aiDeploymentDetails.resources); + return Objects.equals(this.cloudSdkCustomFields, aiDeploymentDetails.cloudSdkCustomFields) + && Objects.equals(this.scaling, aiDeploymentDetails.scaling) + && Objects.equals(this.resources, aiDeploymentDetails.resources); } @Override @@ -168,19 +164,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentDetails {\n"); sb.append(" scaling: ").append(toIndentedString(scaling)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -189,12 +187,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiDeploymentDetails} instance. No arguments are required. - */ - public static AiDeploymentDetails create() { - return new AiDeploymentDetails(); - } - + /** Create a new {@link AiDeploymentDetails} instance. No arguments are required. */ + public static AiDeploymentDetails create() { + return new AiDeploymentDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java index 1dbcfeb4..5618cefc 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiDeployment; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiDeploymentList - */ +/** AiDeploymentList */ // CHECKSTYLE:OFF -public class AiDeploymentList +public class AiDeploymentList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiDeploymentList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentList() { } - - /** - * Set the count of this {@link AiDeploymentList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiDeploymentList} class - */ - @Nonnull public AiDeploymentList count(@Nonnull final Integer count) { + + protected AiDeploymentList() {} + + /** + * Set the count of this {@link AiDeploymentList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiDeploymentList} class + */ + @Nonnull + public AiDeploymentList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiDeploymentList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiDeploymentList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiDeploymentList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiDeploymentList} instance and return the same instance. - * - * @param resources The resources of this {@link AiDeploymentList} - * @return The same instance of this {@link AiDeploymentList} class - */ - @Nonnull public AiDeploymentList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiDeploymentList} instance and return the same instance. + * + * @param resources The resources of this {@link AiDeploymentList} + * @return The same instance of this {@link AiDeploymentList} class + */ + @Nonnull + public AiDeploymentList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiDeploymentList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiDeploymentList} */ - @Nonnull public AiDeploymentList addResourcesItem( @Nonnull final AiDeployment resourcesItem) { + @Nonnull + public AiDeploymentList addResourcesItem(@Nonnull final AiDeployment resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiDeploymentList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiDeploymentList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiDeploymentList} instance. * - * @param resources The resources of this {@link AiDeploymentList} + * @param resources The resources of this {@link AiDeploymentList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiDeploymentList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiDeploymentList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiDeploymentList aiDeploymentList = (AiDeploymentList) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentList.cloudSdkCustomFields) && - Objects.equals(this.count, aiDeploymentList.count) && - Objects.equals(this.resources, aiDeploymentList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiDeploymentList.cloudSdkCustomFields) + && Objects.equals(this.count, aiDeploymentList.count) + && Objects.equals(this.resources, aiDeploymentList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiDeploymentList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiDeploymentList().count(count).resources(resources); - } + * Set the count of this {@link AiDeploymentList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiDeploymentList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiDeploymentList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiDeploymentList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiDeploymentList} instance. + * + * @param resources The resources of this {@link AiDeploymentList} + * @return The AiDeploymentList instance. + */ + AiDeploymentList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiDeploymentList} instance. - * - * @param resources The resources of this {@link AiDeploymentList} - * @return The AiDeploymentList instance. - */ - AiDeploymentList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiDeploymentList} instance. - * - * @param resources The resources of this {@link AiDeploymentList} - * @return The AiDeploymentList instance. - */ - default AiDeploymentList resources( @Nonnull final AiDeployment... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiDeploymentList} instance. + * + * @param resources The resources of this {@link AiDeploymentList} + * @return The AiDeploymentList instance. + */ + default AiDeploymentList resources(@Nonnull final AiDeployment... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java index 2d28942a..b5e8c696 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiDeploymentTargetStatus; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Request object for changing the target status of a deployment (currently only STOPPED is supported) + * Request object for changing the target status of a deployment (currently only STOPPED is + * supported) */ // CHECKSTYLE:OFF -public class AiDeploymentModificationRequest +public class AiDeploymentModificationRequest // CHECKSTYLE:ON { @JsonProperty("targetStatus") @@ -49,69 +38,80 @@ public class AiDeploymentModificationRequest @JsonProperty("configurationId") private String configurationId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentModificationRequest() { } - - /** - * Set the targetStatus of this {@link AiDeploymentModificationRequest} instance and return the same instance. - * - * @param targetStatus The targetStatus of this {@link AiDeploymentModificationRequest} - * @return The same instance of this {@link AiDeploymentModificationRequest} class - */ - @Nonnull public AiDeploymentModificationRequest targetStatus(@Nonnull final AiDeploymentTargetStatus targetStatus) { + + protected AiDeploymentModificationRequest() {} + + /** + * Set the targetStatus of this {@link AiDeploymentModificationRequest} instance and return the + * same instance. + * + * @param targetStatus The targetStatus of this {@link AiDeploymentModificationRequest} + * @return The same instance of this {@link AiDeploymentModificationRequest} class + */ + @Nonnull + public AiDeploymentModificationRequest targetStatus( + @Nonnull final AiDeploymentTargetStatus targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Get targetStatus - * @return targetStatus The targetStatus of this {@link AiDeploymentModificationRequest} instance. - */ - @Nonnull public AiDeploymentTargetStatus getTargetStatus() { + /** + * Get targetStatus + * + * @return targetStatus The targetStatus of this {@link AiDeploymentModificationRequest} instance. + */ + @Nonnull + public AiDeploymentTargetStatus getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiDeploymentModificationRequest} instance. * - * @param targetStatus The targetStatus of this {@link AiDeploymentModificationRequest} + * @param targetStatus The targetStatus of this {@link AiDeploymentModificationRequest} */ - public void setTargetStatus( @Nonnull final AiDeploymentTargetStatus targetStatus) { + public void setTargetStatus(@Nonnull final AiDeploymentTargetStatus targetStatus) { this.targetStatus = targetStatus; } - /** - * Set the configurationId of this {@link AiDeploymentModificationRequest} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiDeploymentModificationRequest} class - */ - @Nonnull public AiDeploymentModificationRequest configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiDeploymentModificationRequest} instance and return the + * same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiDeploymentModificationRequest} class + */ + @Nonnull + public AiDeploymentModificationRequest configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiDeploymentModificationRequest} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiDeploymentModificationRequest} + * instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiDeploymentModificationRequest} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentModificationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -121,32 +121,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentModificationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentModificationRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentModificationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentModificationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentModificationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentModificationRequest} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,10 +158,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentModificationRequest aiDeploymentModificationRequest = (AiDeploymentModificationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentModificationRequest.cloudSdkCustomFields) && - Objects.equals(this.targetStatus, aiDeploymentModificationRequest.targetStatus) && - Objects.equals(this.configurationId, aiDeploymentModificationRequest.configurationId); + final AiDeploymentModificationRequest aiDeploymentModificationRequest = + (AiDeploymentModificationRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentModificationRequest.cloudSdkCustomFields) + && Objects.equals(this.targetStatus, aiDeploymentModificationRequest.targetStatus) + && Objects.equals(this.configurationId, aiDeploymentModificationRequest.configurationId); } @Override @@ -167,19 +172,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentModificationRequest {\n"); sb.append(" targetStatus: ").append(toIndentedString(targetStatus)).append("\n"); sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +195,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiDeploymentModificationRequest} instance. No arguments are required. - */ - public static AiDeploymentModificationRequest create() { - return new AiDeploymentModificationRequest(); - } - + /** Create a new {@link AiDeploymentModificationRequest} instance. No arguments are required. */ + public static AiDeploymentModificationRequest create() { + return new AiDeploymentModificationRequest(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java index 1f9b92df..e16741e6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationRequestWithIdentifier.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,49 +12,37 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Request object for changing the target status of a deployment ( STOPPED and DELETED are supported) + * Request object for changing the target status of a deployment ( STOPPED and DELETED are + * supported) */ // CHECKSTYLE:OFF -public class AiDeploymentModificationRequestWithIdentifier +public class AiDeploymentModificationRequestWithIdentifier // CHECKSTYLE:ON { @JsonProperty("id") private String id; - /** - * Deployment target status - */ + /** Deployment target status */ public enum TargetStatusEnum { - /** - * The STOPPED option of this AiDeploymentModificationRequestWithIdentifier - */ + /** The STOPPED option of this AiDeploymentModificationRequestWithIdentifier */ STOPPED("STOPPED"), - - /** - * The DELETED option of this AiDeploymentModificationRequestWithIdentifier - */ + + /** The DELETED option of this AiDeploymentModificationRequestWithIdentifier */ DELETED("DELETED"); private String value; @@ -66,30 +52,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiDeploymentModificationRequestWithIdentifier - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiDeploymentModificationRequestWithIdentifier + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -102,69 +94,81 @@ public enum TargetStatusEnum { @JsonProperty("targetStatus") private TargetStatusEnum targetStatus; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentModificationRequestWithIdentifier() { } - /** - * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance and return the same instance. - * - * @param id ID of the deployment - * @return The same instance of this {@link AiDeploymentModificationRequestWithIdentifier} class - */ - @Nonnull public AiDeploymentModificationRequestWithIdentifier id(@Nonnull final String id) { + protected AiDeploymentModificationRequestWithIdentifier() {} + + /** + * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance and return + * the same instance. + * + * @param id ID of the deployment + * @return The same instance of this {@link AiDeploymentModificationRequestWithIdentifier} class + */ + @Nonnull + public AiDeploymentModificationRequestWithIdentifier id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the deployment - * @return id The id of this {@link AiDeploymentModificationRequestWithIdentifier} instance. - */ - @Nonnull public String getId() { + /** + * ID of the deployment + * + * @return id The id of this {@link AiDeploymentModificationRequestWithIdentifier} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance. * - * @param id ID of the deployment + * @param id ID of the deployment */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance and return the same instance. - * - * @param targetStatus Deployment target status - * @return The same instance of this {@link AiDeploymentModificationRequestWithIdentifier} class - */ - @Nonnull public AiDeploymentModificationRequestWithIdentifier targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + /** + * Set the targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance and + * return the same instance. + * + * @param targetStatus Deployment target status + * @return The same instance of this {@link AiDeploymentModificationRequestWithIdentifier} class + */ + @Nonnull + public AiDeploymentModificationRequestWithIdentifier targetStatus( + @Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Deployment target status - * @return targetStatus The targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Deployment target status + * + * @return targetStatus The targetStatus of this {@link + * AiDeploymentModificationRequestWithIdentifier} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance. * - * @param targetStatus Deployment target status + * @param targetStatus Deployment target status */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } /** - * Get the names of the unrecognizable properties of the {@link AiDeploymentModificationRequestWithIdentifier}. + * Get the names of the unrecognizable properties of the {@link + * AiDeploymentModificationRequestWithIdentifier}. + * * @return The set of properties names */ @JsonIgnore @@ -174,32 +178,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentModificationRequestWithIdentifier} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiDeploymentModificationRequestWithIdentifier} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentModificationRequestWithIdentifier has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentModificationRequestWithIdentifier has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentModificationRequestWithIdentifier} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentModificationRequestWithIdentifier} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -208,10 +215,15 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentModificationRequestWithIdentifier aiDeploymentModificationRequestWithIdentifier = (AiDeploymentModificationRequestWithIdentifier) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentModificationRequestWithIdentifier.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeploymentModificationRequestWithIdentifier.id) && - Objects.equals(this.targetStatus, aiDeploymentModificationRequestWithIdentifier.targetStatus); + final AiDeploymentModificationRequestWithIdentifier + aiDeploymentModificationRequestWithIdentifier = + (AiDeploymentModificationRequestWithIdentifier) o; + return Objects.equals( + this.cloudSdkCustomFields, + aiDeploymentModificationRequestWithIdentifier.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeploymentModificationRequestWithIdentifier.id) + && Objects.equals( + this.targetStatus, aiDeploymentModificationRequestWithIdentifier.targetStatus); } @Override @@ -220,19 +232,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentModificationRequestWithIdentifier {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" targetStatus: ").append(toIndentedString(targetStatus)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -241,36 +255,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentModificationRequestWithIdentifier} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (targetStatus) -> + new AiDeploymentModificationRequestWithIdentifier().id(id).targetStatus(targetStatus); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentModificationRequestWithIdentifier} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (targetStatus) -> new AiDeploymentModificationRequestWithIdentifier().id(id).targetStatus(targetStatus); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance. - * - * @param id ID of the deployment - * @return The AiDeploymentModificationRequestWithIdentifier builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance. - * - * @param targetStatus Deployment target status - * @return The AiDeploymentModificationRequestWithIdentifier instance. - */ - AiDeploymentModificationRequestWithIdentifier targetStatus( @Nonnull final TargetStatusEnum targetStatus); - } + * Set the id of this {@link AiDeploymentModificationRequestWithIdentifier} instance. + * + * @param id ID of the deployment + * @return The AiDeploymentModificationRequestWithIdentifier builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the targetStatus of this {@link AiDeploymentModificationRequestWithIdentifier} instance. + * + * @param targetStatus Deployment target status + * @return The AiDeploymentModificationRequestWithIdentifier instance. + */ + AiDeploymentModificationRequestWithIdentifier targetStatus( + @Nonnull final TargetStatusEnum targetStatus); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java index 3a442040..862d6e79 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiDeploymentModificationResponse - */ +/** AiDeploymentModificationResponse */ // CHECKSTYLE:OFF -public class AiDeploymentModificationResponse +public class AiDeploymentModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,78 @@ public class AiDeploymentModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentModificationResponse() { } - - /** - * Set the id of this {@link AiDeploymentModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiDeploymentModificationResponse} class - */ - @Nonnull public AiDeploymentModificationResponse id(@Nonnull final String id) { + + protected AiDeploymentModificationResponse() {} + + /** + * Set the id of this {@link AiDeploymentModificationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiDeploymentModificationResponse} class + */ + @Nonnull + public AiDeploymentModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiDeploymentModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiDeploymentModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeploymentModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiDeploymentModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiDeploymentModificationResponse} class - */ - @Nonnull public AiDeploymentModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiDeploymentModificationResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiDeploymentModificationResponse} class + */ + @Nonnull + public AiDeploymentModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiDeploymentModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiDeploymentModificationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiDeploymentModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentModificationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentModificationResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentModificationResponse aiDeploymentModificationResponse = (AiDeploymentModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeploymentModificationResponse.id) && - Objects.equals(this.message, aiDeploymentModificationResponse.message); + final AiDeploymentModificationResponse aiDeploymentModificationResponse = + (AiDeploymentModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeploymentModificationResponse.id) + && Objects.equals(this.message, aiDeploymentModificationResponse.message); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +190,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiDeploymentModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiDeploymentModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeploymentModificationResponse} instance. - * - * @param id Generic ID - * @return The AiDeploymentModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiDeploymentModificationResponse} instance. - * - * @param message Message - * @return The AiDeploymentModificationResponse instance. - */ - AiDeploymentModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiDeploymentModificationResponse} instance. + * + * @param id Generic ID + * @return The AiDeploymentModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiDeploymentModificationResponse} instance. + * + * @param message Message + * @return The AiDeploymentModificationResponse instance. + */ + AiDeploymentModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java index c1a0c971..c8378977 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentModificationResponseListInner.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiApiError; -import com.sap.ai.sdk.core.client.model.AiApiErrorWithId; -import com.sap.ai.sdk.core.client.model.AiDeploymentModificationResponse; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiDeploymentModificationResponseListInner - */ +/** AiDeploymentModificationResponseListInner */ // CHECKSTYLE:OFF -public class AiDeploymentModificationResponseListInner +public class AiDeploymentModificationResponseListInner // CHECKSTYLE:ON { @JsonProperty("id") @@ -54,97 +38,111 @@ public class AiDeploymentModificationResponseListInner @JsonProperty("error") private AiApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentModificationResponseListInner() { } - /** - * Set the id of this {@link AiDeploymentModificationResponseListInner} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiDeploymentModificationResponseListInner} class - */ - @Nonnull public AiDeploymentModificationResponseListInner id(@Nonnull final String id) { + protected AiDeploymentModificationResponseListInner() {} + + /** + * Set the id of this {@link AiDeploymentModificationResponseListInner} instance and return the + * same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiDeploymentModificationResponseListInner} class + */ + @Nonnull + public AiDeploymentModificationResponseListInner id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiDeploymentModificationResponseListInner} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiDeploymentModificationResponseListInner} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeploymentModificationResponseListInner} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiDeploymentModificationResponseListInner} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiDeploymentModificationResponseListInner} class - */ - @Nonnull public AiDeploymentModificationResponseListInner message(@Nonnull final String message) { + /** + * Set the message of this {@link AiDeploymentModificationResponseListInner} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link AiDeploymentModificationResponseListInner} class + */ + @Nonnull + public AiDeploymentModificationResponseListInner message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiDeploymentModificationResponseListInner} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiDeploymentModificationResponseListInner} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiDeploymentModificationResponseListInner} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the error of this {@link AiDeploymentModificationResponseListInner} instance and return the same instance. - * - * @param error The error of this {@link AiDeploymentModificationResponseListInner} - * @return The same instance of this {@link AiDeploymentModificationResponseListInner} class - */ - @Nonnull public AiDeploymentModificationResponseListInner error(@Nonnull final AiApiError error) { + /** + * Set the error of this {@link AiDeploymentModificationResponseListInner} instance and return the + * same instance. + * + * @param error The error of this {@link AiDeploymentModificationResponseListInner} + * @return The same instance of this {@link AiDeploymentModificationResponseListInner} class + */ + @Nonnull + public AiDeploymentModificationResponseListInner error(@Nonnull final AiApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link AiDeploymentModificationResponseListInner} instance. - */ - @Nonnull public AiApiError getError() { + /** + * Get error + * + * @return error The error of this {@link AiDeploymentModificationResponseListInner} instance. + */ + @Nonnull + public AiApiError getError() { return error; } /** * Set the error of this {@link AiDeploymentModificationResponseListInner} instance. * - * @param error The error of this {@link AiDeploymentModificationResponseListInner} + * @param error The error of this {@link AiDeploymentModificationResponseListInner} */ - public void setError( @Nonnull final AiApiError error) { + public void setError(@Nonnull final AiApiError error) { this.error = error; } /** - * Get the names of the unrecognizable properties of the {@link AiDeploymentModificationResponseListInner}. + * Get the names of the unrecognizable properties of the {@link + * AiDeploymentModificationResponseListInner}. + * * @return The set of properties names */ @JsonIgnore @@ -154,32 +152,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentModificationResponseListInner} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiDeploymentModificationResponseListInner} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentModificationResponseListInner has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentModificationResponseListInner has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentModificationResponseListInner} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentModificationResponseListInner} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -188,11 +189,14 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentModificationResponseListInner aiDeploymentModificationResponseListInner = (AiDeploymentModificationResponseListInner) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentModificationResponseListInner.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeploymentModificationResponseListInner.id) && - Objects.equals(this.message, aiDeploymentModificationResponseListInner.message) && - Objects.equals(this.error, aiDeploymentModificationResponseListInner.error); + final AiDeploymentModificationResponseListInner aiDeploymentModificationResponseListInner = + (AiDeploymentModificationResponseListInner) o; + return Objects.equals( + this.cloudSdkCustomFields, + aiDeploymentModificationResponseListInner.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeploymentModificationResponseListInner.id) + && Objects.equals(this.message, aiDeploymentModificationResponseListInner.message) + && Objects.equals(this.error, aiDeploymentModificationResponseListInner.error); } @Override @@ -201,20 +205,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentModificationResponseListInner {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -223,48 +229,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentModificationResponseListInner} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> + (error) -> + new AiDeploymentModificationResponseListInner() + .id(id) + .message(message) + .error(error); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentModificationResponseListInner} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> (error) -> new AiDeploymentModificationResponseListInner().id(id).message(message).error(error); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeploymentModificationResponseListInner} instance. - * - * @param id Generic ID - * @return The AiDeploymentModificationResponseListInner builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiDeploymentModificationResponseListInner} instance. - * - * @param message Message - * @return The AiDeploymentModificationResponseListInner builder. - */ - Builder2 message( @Nonnull final String message); - } + * Set the id of this {@link AiDeploymentModificationResponseListInner} instance. + * + * @param id Generic ID + * @return The AiDeploymentModificationResponseListInner builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the error of this {@link AiDeploymentModificationResponseListInner} instance. - * - * @param error The error of this {@link AiDeploymentModificationResponseListInner} - * @return The AiDeploymentModificationResponseListInner instance. - */ - AiDeploymentModificationResponseListInner error( @Nonnull final AiApiError error); - } + * Set the message of this {@link AiDeploymentModificationResponseListInner} instance. + * + * @param message Message + * @return The AiDeploymentModificationResponseListInner builder. + */ + Builder2 message(@Nonnull final String message); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the error of this {@link AiDeploymentModificationResponseListInner} instance. + * + * @param error The error of this {@link AiDeploymentModificationResponseListInner} + * @return The AiDeploymentModificationResponseListInner instance. + */ + AiDeploymentModificationResponseListInner error(@Nonnull final AiApiError error); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java index c2521e6f..8b6f53d9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentResponseWithDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiDeploymentDetails; -import com.sap.ai.sdk.core.client.model.AiDeploymentStatus; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Detail properties of the deployment - */ +/** Detail properties of the deployment */ // CHECKSTYLE:OFF -public class AiDeploymentResponseWithDetails +public class AiDeploymentResponseWithDetails // CHECKSTYLE:ON { @JsonProperty("id") @@ -66,23 +53,15 @@ public class AiDeploymentResponseWithDetails @JsonProperty("statusMessage") private String statusMessage; - /** - * Deployment target status - */ + /** Deployment target status */ public enum TargetStatusEnum { - /** - * The RUNNING option of this AiDeploymentResponseWithDetails - */ + /** The RUNNING option of this AiDeploymentResponseWithDetails */ RUNNING("RUNNING"), - - /** - * The STOPPED option of this AiDeploymentResponseWithDetails - */ + + /** The STOPPED option of this AiDeploymentResponseWithDetails */ STOPPED("STOPPED"), - - /** - * The DELETED option of this AiDeploymentResponseWithDetails - */ + + /** The DELETED option of this AiDeploymentResponseWithDetails */ DELETED("DELETED"); private String value; @@ -92,30 +71,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiDeploymentResponseWithDetails - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiDeploymentResponseWithDetails + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -128,28 +113,18 @@ public enum TargetStatusEnum { @JsonProperty("targetStatus") private TargetStatusEnum targetStatus; - /** - * Gets or Sets lastOperation - */ + /** Gets or Sets lastOperation */ public enum LastOperationEnum { - /** - * The CREATE option of this AiDeploymentResponseWithDetails - */ + /** The CREATE option of this AiDeploymentResponseWithDetails */ CREATE("CREATE"), - - /** - * The UPDATE option of this AiDeploymentResponseWithDetails - */ + + /** The UPDATE option of this AiDeploymentResponseWithDetails */ UPDATE("UPDATE"), - - /** - * The DELETE option of this AiDeploymentResponseWithDetails - */ + + /** The DELETE option of this AiDeploymentResponseWithDetails */ DELETE("DELETE"), - - /** - * The CASCADE_UPDATE option of this AiDeploymentResponseWithDetails - */ + + /** The CASCADE_UPDATE option of this AiDeploymentResponseWithDetails */ CASCADE_UPDATE("CASCADE-UPDATE"); private String value; @@ -159,30 +134,36 @@ public enum LastOperationEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiDeploymentResponseWithDetails - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiDeploymentResponseWithDetails + */ @JsonCreator - @Nonnull public static LastOperationEnum fromValue(@Nonnull final String value) { + @Nonnull + public static LastOperationEnum fromValue(@Nonnull final String value) { for (LastOperationEnum b : LastOperationEnum.values()) { if (b.value.equals(value)) { return b; @@ -222,517 +203,614 @@ public enum LastOperationEnum { @JsonProperty("statusDetails") private Object statusDetails; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiDeploymentResponseWithDetails() { } - - /** - * Set the id of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param id ID of the deployment - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails id(@Nonnull final String id) { + + protected AiDeploymentResponseWithDetails() {} + + /** + * Set the id of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param id ID of the deployment + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the deployment - * @return id The id of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getId() { + /** + * ID of the deployment + * + * @return id The id of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiDeploymentResponseWithDetails} instance. * - * @param id ID of the deployment + * @param id ID of the deployment */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the deploymentUrl of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param deploymentUrl Consumption URL of the deployment - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails deploymentUrl(@Nonnull final String deploymentUrl) { + /** + * Set the deploymentUrl of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param deploymentUrl Consumption URL of the deployment + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails deploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; return this; } - /** - * Consumption URL of the deployment - * @return deploymentUrl The deploymentUrl of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getDeploymentUrl() { + /** + * Consumption URL of the deployment + * + * @return deploymentUrl The deploymentUrl of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public String getDeploymentUrl() { return deploymentUrl; } /** * Set the deploymentUrl of this {@link AiDeploymentResponseWithDetails} instance. * - * @param deploymentUrl Consumption URL of the deployment + * @param deploymentUrl Consumption URL of the deployment */ - public void setDeploymentUrl( @Nonnull final String deploymentUrl) { + public void setDeploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; } - /** - * Set the configurationId of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiDeploymentResponseWithDetails} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the configurationName of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param configurationName Name of the configuration - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails configurationName(@Nonnull final String configurationName) { + /** + * Set the configurationName of this {@link AiDeploymentResponseWithDetails} instance and return + * the same instance. + * + * @param configurationName Name of the configuration + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails configurationName( + @Nonnull final String configurationName) { this.configurationName = configurationName; return this; } - /** - * Name of the configuration - * @return configurationName The configurationName of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getConfigurationName() { + /** + * Name of the configuration + * + * @return configurationName The configurationName of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public String getConfigurationName() { return configurationName; } /** * Set the configurationName of this {@link AiDeploymentResponseWithDetails} instance. * - * @param configurationName Name of the configuration + * @param configurationName Name of the configuration */ - public void setConfigurationName( @Nonnull final String configurationName) { + public void setConfigurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; } - /** - * Set the scenarioId of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiDeploymentResponseWithDetails} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the status of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param status The status of this {@link AiDeploymentResponseWithDetails} - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails status(@Nonnull final AiDeploymentStatus status) { + /** + * Set the status of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param status The status of this {@link AiDeploymentResponseWithDetails} + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails status(@Nonnull final AiDeploymentStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public AiDeploymentStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public AiDeploymentStatus getStatus() { return status; } /** * Set the status of this {@link AiDeploymentResponseWithDetails} instance. * - * @param status The status of this {@link AiDeploymentResponseWithDetails} + * @param status The status of this {@link AiDeploymentResponseWithDetails} */ - public void setStatus( @Nonnull final AiDeploymentStatus status) { + public void setStatus(@Nonnull final AiDeploymentStatus status) { this.status = status; } - /** - * Set the statusMessage of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param statusMessage Deployment status message - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param statusMessage Deployment status message + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * Deployment status message - * @return statusMessage The statusMessage of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * Deployment status message + * + * @return statusMessage The statusMessage of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link AiDeploymentResponseWithDetails} instance. * - * @param statusMessage Deployment status message + * @param statusMessage Deployment status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the targetStatus of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param targetStatus Deployment target status - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + /** + * Set the targetStatus of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param targetStatus Deployment target status + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails targetStatus( + @Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Deployment target status - * @return targetStatus The targetStatus of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Deployment target status + * + * @return targetStatus The targetStatus of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiDeploymentResponseWithDetails} instance. * - * @param targetStatus Deployment target status + * @param targetStatus Deployment target status */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } - /** - * Set the lastOperation of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param lastOperation The lastOperation of this {@link AiDeploymentResponseWithDetails} - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails lastOperation(@Nonnull final LastOperationEnum lastOperation) { + /** + * Set the lastOperation of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param lastOperation The lastOperation of this {@link AiDeploymentResponseWithDetails} + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails lastOperation( + @Nonnull final LastOperationEnum lastOperation) { this.lastOperation = lastOperation; return this; } - /** - * Get lastOperation - * @return lastOperation The lastOperation of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public LastOperationEnum getLastOperation() { + /** + * Get lastOperation + * + * @return lastOperation The lastOperation of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public LastOperationEnum getLastOperation() { return lastOperation; } /** * Set the lastOperation of this {@link AiDeploymentResponseWithDetails} instance. * - * @param lastOperation The lastOperation of this {@link AiDeploymentResponseWithDetails} + * @param lastOperation The lastOperation of this {@link AiDeploymentResponseWithDetails} */ - public void setLastOperation( @Nonnull final LastOperationEnum lastOperation) { + public void setLastOperation(@Nonnull final LastOperationEnum lastOperation) { this.lastOperation = lastOperation; } - /** - * Set the latestRunningConfigurationId of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param latestRunningConfigurationId configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails latestRunningConfigurationId(@Nonnull final String latestRunningConfigurationId) { + /** + * Set the latestRunningConfigurationId of this {@link AiDeploymentResponseWithDetails} instance + * and return the same instance. + * + * @param latestRunningConfigurationId configurationId that was running before a PATCH operation + * has modified the configurationId of the deployment. This can be used for a manual rollback + * in case the new configurationId results in a DEAD deployment + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails latestRunningConfigurationId( + @Nonnull final String latestRunningConfigurationId) { this.latestRunningConfigurationId = latestRunningConfigurationId; return this; } - /** - * configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment - * @return latestRunningConfigurationId The latestRunningConfigurationId of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getLatestRunningConfigurationId() { + /** + * configurationId that was running before a PATCH operation has modified the configurationId of + * the deployment. This can be used for a manual rollback in case the new configurationId results + * in a DEAD deployment + * + * @return latestRunningConfigurationId The latestRunningConfigurationId of this {@link + * AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public String getLatestRunningConfigurationId() { return latestRunningConfigurationId; } /** * Set the latestRunningConfigurationId of this {@link AiDeploymentResponseWithDetails} instance. * - * @param latestRunningConfigurationId configurationId that was running before a PATCH operation has modified the configurationId of the deployment. This can be used for a manual rollback in case the new configurationId results in a DEAD deployment + * @param latestRunningConfigurationId configurationId that was running before a PATCH operation + * has modified the configurationId of the deployment. This can be used for a manual rollback + * in case the new configurationId results in a DEAD deployment */ - public void setLatestRunningConfigurationId( @Nonnull final String latestRunningConfigurationId) { + public void setLatestRunningConfigurationId(@Nonnull final String latestRunningConfigurationId) { this.latestRunningConfigurationId = latestRunningConfigurationId; } - /** - * Set the ttl of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails ttl(@Nonnull final String ttl) { + /** + * Set the ttl of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails ttl(@Nonnull final String ttl) { this.ttl = ttl; return this; } - /** - * Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) - * @return ttl The ttl of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public String getTtl() { + /** + * Time to live for a deployment. Its value can be either null or a number followed by the unit + * (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * + * @return ttl The ttl of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public String getTtl() { return ttl; } /** * Set the ttl of this {@link AiDeploymentResponseWithDetails} instance. * - * @param ttl Time to live for a deployment. Its value can be either null or a number followed by the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) + * @param ttl Time to live for a deployment. Its value can be either null or a number followed by + * the unit (any of following values, minutes(m|M), hours(h|H) or days(d|D)) */ - public void setTtl( @Nonnull final String ttl) { + public void setTtl(@Nonnull final String ttl) { this.ttl = ttl; } - /** - * Set the details of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param details The details of this {@link AiDeploymentResponseWithDetails} - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails details(@Nonnull final AiDeploymentDetails details) { + /** + * Set the details of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param details The details of this {@link AiDeploymentResponseWithDetails} + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails details(@Nonnull final AiDeploymentDetails details) { this.details = details; return this; } - /** - * Get details - * @return details The details of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public AiDeploymentDetails getDetails() { + /** + * Get details + * + * @return details The details of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public AiDeploymentDetails getDetails() { return details; } /** * Set the details of this {@link AiDeploymentResponseWithDetails} instance. * - * @param details The details of this {@link AiDeploymentResponseWithDetails} + * @param details The details of this {@link AiDeploymentResponseWithDetails} */ - public void setDetails( @Nonnull final AiDeploymentDetails details) { + public void setDetails(@Nonnull final AiDeploymentDetails details) { this.details = details; } - /** - * Set the createdAt of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiDeploymentResponseWithDetails} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiDeploymentResponseWithDetails} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } - /** - * Set the submissionTime of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param submissionTime Timestamp of job submitted - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails submissionTime(@Nonnull final OffsetDateTime submissionTime) { + /** + * Set the submissionTime of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param submissionTime Timestamp of job submitted + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails submissionTime( + @Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; return this; } - /** - * Timestamp of job submitted - * @return submissionTime The submissionTime of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getSubmissionTime() { + /** + * Timestamp of job submitted + * + * @return submissionTime The submissionTime of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public OffsetDateTime getSubmissionTime() { return submissionTime; } /** * Set the submissionTime of this {@link AiDeploymentResponseWithDetails} instance. * - * @param submissionTime Timestamp of job submitted + * @param submissionTime Timestamp of job submitted */ - public void setSubmissionTime( @Nonnull final OffsetDateTime submissionTime) { + public void setSubmissionTime(@Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; } - /** - * Set the startTime of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param startTime Timestamp of job status changed to RUNNING - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails startTime(@Nonnull final OffsetDateTime startTime) { + /** + * Set the startTime of this {@link AiDeploymentResponseWithDetails} instance and return the same + * instance. + * + * @param startTime Timestamp of job status changed to RUNNING + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails startTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; return this; } - /** - * Timestamp of job status changed to RUNNING - * @return startTime The startTime of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getStartTime() { + /** + * Timestamp of job status changed to RUNNING + * + * @return startTime The startTime of this {@link AiDeploymentResponseWithDetails} instance. + */ + @Nonnull + public OffsetDateTime getStartTime() { return startTime; } /** * Set the startTime of this {@link AiDeploymentResponseWithDetails} instance. * - * @param startTime Timestamp of job status changed to RUNNING + * @param startTime Timestamp of job status changed to RUNNING */ - public void setStartTime( @Nonnull final OffsetDateTime startTime) { + public void setStartTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; } - /** - * Set the completionTime of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails completionTime(@Nonnull final OffsetDateTime completionTime) { + /** + * Set the completionTime of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails completionTime( + @Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; return this; } - /** - * Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return completionTime The completionTime of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getCompletionTime() { + /** + * Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * + * @return completionTime The completionTime of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public OffsetDateTime getCompletionTime() { return completionTime; } /** * Set the completionTime of this {@link AiDeploymentResponseWithDetails} instance. * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED */ - public void setCompletionTime( @Nonnull final OffsetDateTime completionTime) { + public void setCompletionTime(@Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; } - /** - * Set the statusDetails of this {@link AiDeploymentResponseWithDetails} instance and return the same instance. - * - * @param statusDetails Current status details of the deployment - * @return The same instance of this {@link AiDeploymentResponseWithDetails} class - */ - @Nonnull public AiDeploymentResponseWithDetails statusDetails(@Nonnull final Object statusDetails) { + /** + * Set the statusDetails of this {@link AiDeploymentResponseWithDetails} instance and return the + * same instance. + * + * @param statusDetails Current status details of the deployment + * @return The same instance of this {@link AiDeploymentResponseWithDetails} class + */ + @Nonnull + public AiDeploymentResponseWithDetails statusDetails(@Nonnull final Object statusDetails) { this.statusDetails = statusDetails; return this; } - /** - * Current status details of the deployment - * @return statusDetails The statusDetails of this {@link AiDeploymentResponseWithDetails} instance. - */ - @Nonnull public Object getStatusDetails() { + /** + * Current status details of the deployment + * + * @return statusDetails The statusDetails of this {@link AiDeploymentResponseWithDetails} + * instance. + */ + @Nonnull + public Object getStatusDetails() { return statusDetails; } /** * Set the statusDetails of this {@link AiDeploymentResponseWithDetails} instance. * - * @param statusDetails Current status details of the deployment + * @param statusDetails Current status details of the deployment */ - public void setStatusDetails( @Nonnull final Object statusDetails) { + public void setStatusDetails(@Nonnull final Object statusDetails) { this.statusDetails = statusDetails; } /** * Get the names of the unrecognizable properties of the {@link AiDeploymentResponseWithDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -742,32 +820,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiDeploymentResponseWithDetails} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiDeploymentResponseWithDetails} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiDeploymentResponseWithDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiDeploymentResponseWithDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiDeploymentResponseWithDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiDeploymentResponseWithDetails} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -776,35 +857,59 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiDeploymentResponseWithDetails aiDeploymentResponseWithDetails = (AiDeploymentResponseWithDetails) o; - return Objects.equals(this.cloudSdkCustomFields, aiDeploymentResponseWithDetails.cloudSdkCustomFields) && - Objects.equals(this.id, aiDeploymentResponseWithDetails.id) && - Objects.equals(this.deploymentUrl, aiDeploymentResponseWithDetails.deploymentUrl) && - Objects.equals(this.configurationId, aiDeploymentResponseWithDetails.configurationId) && - Objects.equals(this.configurationName, aiDeploymentResponseWithDetails.configurationName) && - Objects.equals(this.scenarioId, aiDeploymentResponseWithDetails.scenarioId) && - Objects.equals(this.status, aiDeploymentResponseWithDetails.status) && - Objects.equals(this.statusMessage, aiDeploymentResponseWithDetails.statusMessage) && - Objects.equals(this.targetStatus, aiDeploymentResponseWithDetails.targetStatus) && - Objects.equals(this.lastOperation, aiDeploymentResponseWithDetails.lastOperation) && - Objects.equals(this.latestRunningConfigurationId, aiDeploymentResponseWithDetails.latestRunningConfigurationId) && - Objects.equals(this.ttl, aiDeploymentResponseWithDetails.ttl) && - Objects.equals(this.details, aiDeploymentResponseWithDetails.details) && - Objects.equals(this.createdAt, aiDeploymentResponseWithDetails.createdAt) && - Objects.equals(this.modifiedAt, aiDeploymentResponseWithDetails.modifiedAt) && - Objects.equals(this.submissionTime, aiDeploymentResponseWithDetails.submissionTime) && - Objects.equals(this.startTime, aiDeploymentResponseWithDetails.startTime) && - Objects.equals(this.completionTime, aiDeploymentResponseWithDetails.completionTime) && - Objects.equals(this.statusDetails, aiDeploymentResponseWithDetails.statusDetails); + final AiDeploymentResponseWithDetails aiDeploymentResponseWithDetails = + (AiDeploymentResponseWithDetails) o; + return Objects.equals( + this.cloudSdkCustomFields, aiDeploymentResponseWithDetails.cloudSdkCustomFields) + && Objects.equals(this.id, aiDeploymentResponseWithDetails.id) + && Objects.equals(this.deploymentUrl, aiDeploymentResponseWithDetails.deploymentUrl) + && Objects.equals(this.configurationId, aiDeploymentResponseWithDetails.configurationId) + && Objects.equals(this.configurationName, aiDeploymentResponseWithDetails.configurationName) + && Objects.equals(this.scenarioId, aiDeploymentResponseWithDetails.scenarioId) + && Objects.equals(this.status, aiDeploymentResponseWithDetails.status) + && Objects.equals(this.statusMessage, aiDeploymentResponseWithDetails.statusMessage) + && Objects.equals(this.targetStatus, aiDeploymentResponseWithDetails.targetStatus) + && Objects.equals(this.lastOperation, aiDeploymentResponseWithDetails.lastOperation) + && Objects.equals( + this.latestRunningConfigurationId, + aiDeploymentResponseWithDetails.latestRunningConfigurationId) + && Objects.equals(this.ttl, aiDeploymentResponseWithDetails.ttl) + && Objects.equals(this.details, aiDeploymentResponseWithDetails.details) + && Objects.equals(this.createdAt, aiDeploymentResponseWithDetails.createdAt) + && Objects.equals(this.modifiedAt, aiDeploymentResponseWithDetails.modifiedAt) + && Objects.equals(this.submissionTime, aiDeploymentResponseWithDetails.submissionTime) + && Objects.equals(this.startTime, aiDeploymentResponseWithDetails.startTime) + && Objects.equals(this.completionTime, aiDeploymentResponseWithDetails.completionTime) + && Objects.equals(this.statusDetails, aiDeploymentResponseWithDetails.statusDetails); } @Override public int hashCode() { - return Objects.hash(id, deploymentUrl, configurationId, configurationName, scenarioId, status, statusMessage, targetStatus, lastOperation, latestRunningConfigurationId, ttl, details, createdAt, modifiedAt, submissionTime, startTime, completionTime, statusDetails, cloudSdkCustomFields); + return Objects.hash( + id, + deploymentUrl, + configurationId, + configurationName, + scenarioId, + status, + statusMessage, + targetStatus, + lastOperation, + latestRunningConfigurationId, + ttl, + details, + createdAt, + modifiedAt, + submissionTime, + startTime, + completionTime, + statusDetails, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiDeploymentResponseWithDetails {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -816,7 +921,9 @@ public int hashCode() { sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" targetStatus: ").append(toIndentedString(targetStatus)).append("\n"); sb.append(" lastOperation: ").append(toIndentedString(lastOperation)).append("\n"); - sb.append(" latestRunningConfigurationId: ").append(toIndentedString(latestRunningConfigurationId)).append("\n"); + sb.append(" latestRunningConfigurationId: ") + .append(toIndentedString(latestRunningConfigurationId)) + .append("\n"); sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -825,14 +932,15 @@ public int hashCode() { sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" completionTime: ").append(toIndentedString(completionTime)).append("\n"); sb.append(" statusDetails: ").append(toIndentedString(statusDetails)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -841,72 +949,76 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiDeploymentResponseWithDetails} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (configurationId) -> + (status) -> + (createdAt) -> + (modifiedAt) -> + new AiDeploymentResponseWithDetails() + .id(id) + .configurationId(configurationId) + .status(status) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiDeploymentResponseWithDetails} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiDeploymentResponseWithDetails().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiDeploymentResponseWithDetails} instance. - * - * @param id ID of the deployment - * @return The AiDeploymentResponseWithDetails builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the configurationId of this {@link AiDeploymentResponseWithDetails} instance. - * - * @param configurationId ID of the configuration - * @return The AiDeploymentResponseWithDetails builder. - */ - Builder2 configurationId( @Nonnull final String configurationId); - } + * Set the id of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param id ID of the deployment + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the status of this {@link AiDeploymentResponseWithDetails} instance. - * - * @param status The status of this {@link AiDeploymentResponseWithDetails} - * @return The AiDeploymentResponseWithDetails builder. - */ - Builder3 status( @Nonnull final AiDeploymentStatus status); - } + * Set the configurationId of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param configurationId ID of the configuration + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder2 configurationId(@Nonnull final String configurationId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the createdAt of this {@link AiDeploymentResponseWithDetails} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiDeploymentResponseWithDetails builder. - */ - Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the status of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param status The status of this {@link AiDeploymentResponseWithDetails} + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder3 status(@Nonnull final AiDeploymentStatus status); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the modifiedAt of this {@link AiDeploymentResponseWithDetails} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiDeploymentResponseWithDetails instance. - */ - AiDeploymentResponseWithDetails modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiDeploymentResponseWithDetails builder. + */ + Builder4 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiDeploymentResponseWithDetails} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiDeploymentResponseWithDetails instance. + */ + AiDeploymentResponseWithDetails modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentStatus.java index 92f2412f..aca4509e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,42 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Deployment status - */ +/** Deployment status */ public enum AiDeploymentStatus { - PENDING("PENDING"), - + RUNNING("RUNNING"), - + COMPLETED("COMPLETED"), - + DEAD("DEAD"), - + STOPPING("STOPPING"), - + STOPPED("STOPPED"), - + UNKNOWN("UNKNOWN"); private final String value; @@ -70,7 +50,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -78,7 +59,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -91,4 +71,3 @@ public static AiDeploymentStatus fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentTargetStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentTargetStatus.java index 7d559468..f94b1d1d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentTargetStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiDeploymentTargetStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,30 +12,12 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Status - */ +/** Status */ public enum AiDeploymentTargetStatus { - STOPPED("STOPPED"); private final String value; @@ -58,7 +38,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -66,7 +47,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -79,4 +59,3 @@ public static AiDeploymentTargetStatus fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java index c2105c3b..d2ecaece 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiEnactmentCreationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,67 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Request object for creating an execution or an deployment - */ +/** Request object for creating an execution or an deployment */ // CHECKSTYLE:OFF -public class AiEnactmentCreationRequest +public class AiEnactmentCreationRequest // CHECKSTYLE:ON { @JsonProperty("configurationId") private String configurationId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiEnactmentCreationRequest() { } - - /** - * Set the configurationId of this {@link AiEnactmentCreationRequest} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiEnactmentCreationRequest} class - */ - @Nonnull public AiEnactmentCreationRequest configurationId(@Nonnull final String configurationId) { + + protected AiEnactmentCreationRequest() {} + + /** + * Set the configurationId of this {@link AiEnactmentCreationRequest} instance and return the same + * instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiEnactmentCreationRequest} class + */ + @Nonnull + public AiEnactmentCreationRequest configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiEnactmentCreationRequest} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiEnactmentCreationRequest} + * instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiEnactmentCreationRequest} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } /** * Get the names of the unrecognizable properties of the {@link AiEnactmentCreationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +82,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiEnactmentCreationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiEnactmentCreationRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiEnactmentCreationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiEnactmentCreationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiEnactmentCreationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiEnactmentCreationRequest} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +119,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiEnactmentCreationRequest aiEnactmentCreationRequest = (AiEnactmentCreationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiEnactmentCreationRequest.cloudSdkCustomFields) && - Objects.equals(this.configurationId, aiEnactmentCreationRequest.configurationId); + return Objects.equals( + this.cloudSdkCustomFields, aiEnactmentCreationRequest.cloudSdkCustomFields) + && Objects.equals(this.configurationId, aiEnactmentCreationRequest.configurationId); } @Override @@ -134,18 +130,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiEnactmentCreationRequest {\n"); sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,24 +152,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiEnactmentCreationRequest} instance with all required arguments. - */ - public static Builder create() { - return (configurationId) -> new AiEnactmentCreationRequest().configurationId(configurationId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the configurationId of this {@link AiEnactmentCreationRequest} instance. - * - * @param configurationId ID of the configuration - * @return The AiEnactmentCreationRequest instance. - */ - AiEnactmentCreationRequest configurationId( @Nonnull final String configurationId); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiEnactmentCreationRequest} instance with all required arguments. + */ + public static Builder create() { + return (configurationId) -> new AiEnactmentCreationRequest().configurationId(configurationId); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the configurationId of this {@link AiEnactmentCreationRequest} instance. + * + * @param configurationId ID of the configuration + * @return The AiEnactmentCreationRequest instance. + */ + AiEnactmentCreationRequest configurationId(@Nonnull final String configurationId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java index 15367a8d..cc9f75ea 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutable.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,27 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutableArtifact; -import com.sap.ai.sdk.core.client.model.AiExecutableParameter; -import com.sap.ai.sdk.core.client.model.AiLabel; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * An ML executable consists of a set of ML tasks, flows between tasks, dependencies between tasks, models (or model versions?). + * An ML executable consists of a set of ML tasks, flows between tasks, dependencies between tasks, + * models (or model versions?). */ // CHECKSTYLE:OFF -public class AiExecutable +public class AiExecutable // CHECKSTYLE:ON { @JsonProperty("labels") @@ -85,27 +71,31 @@ public class AiExecutable @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutable() { } - - /** - * Set the labels of this {@link AiExecutable} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable labels(@Nonnull final List labels) { + + protected AiExecutable() {} + + /** + * Set the labels of this {@link AiExecutable} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link AiExecutable}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link AiExecutable} */ - @Nonnull public AiExecutable addLabelsItem( @Nonnull final AiLabel labelsItem) { + @Nonnull + public AiExecutable addLabelsItem(@Nonnull final AiLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -113,179 +103,200 @@ protected AiExecutable() { } return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link AiExecutable} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link AiExecutable} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link AiExecutable} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the name of this {@link AiExecutable} instance and return the same instance. - * - * @param name Name of the executable - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable name(@Nonnull final String name) { + /** + * Set the name of this {@link AiExecutable} instance and return the same instance. + * + * @param name Name of the executable + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the executable - * @return name The name of this {@link AiExecutable} instance. - */ - @Nonnull public String getName() { + /** + * Name of the executable + * + * @return name The name of this {@link AiExecutable} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiExecutable} instance. * - * @param name Name of the executable + * @param name Name of the executable */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link AiExecutable} instance and return the same instance. - * - * @param description Description of the executable - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable description(@Nonnull final String description) { + /** + * Set the description of this {@link AiExecutable} instance and return the same instance. + * + * @param description Description of the executable + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the executable - * @return description The description of this {@link AiExecutable} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the executable + * + * @return description The description of this {@link AiExecutable} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiExecutable} instance. * - * @param description Description of the executable + * @param description Description of the executable */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the id of this {@link AiExecutable} instance and return the same instance. - * - * @param id ID of the executable - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable id(@Nonnull final String id) { + /** + * Set the id of this {@link AiExecutable} instance and return the same instance. + * + * @param id ID of the executable + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the executable - * @return id The id of this {@link AiExecutable} instance. - */ - @Nonnull public String getId() { + /** + * ID of the executable + * + * @return id The id of this {@link AiExecutable} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutable} instance. * - * @param id ID of the executable + * @param id ID of the executable */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the scenarioId of this {@link AiExecutable} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiExecutable} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiExecutable} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiExecutable} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiExecutable} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the versionId of this {@link AiExecutable} instance and return the same instance. - * - * @param versionId Version ID - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable versionId(@Nonnull final String versionId) { + /** + * Set the versionId of this {@link AiExecutable} instance and return the same instance. + * + * @param versionId Version ID + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable versionId(@Nonnull final String versionId) { this.versionId = versionId; return this; } - /** - * Version ID - * @return versionId The versionId of this {@link AiExecutable} instance. - */ - @Nonnull public String getVersionId() { + /** + * Version ID + * + * @return versionId The versionId of this {@link AiExecutable} instance. + */ + @Nonnull + public String getVersionId() { return versionId; } /** * Set the versionId of this {@link AiExecutable} instance. * - * @param versionId Version ID + * @param versionId Version ID */ - public void setVersionId( @Nonnull final String versionId) { + public void setVersionId(@Nonnull final String versionId) { this.versionId = versionId; } - /** - * Set the parameters of this {@link AiExecutable} instance and return the same instance. - * - * @param parameters Executable parameters - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable parameters(@Nonnull final List parameters) { + /** + * Set the parameters of this {@link AiExecutable} instance and return the same instance. + * + * @param parameters Executable parameters + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable parameters(@Nonnull final List parameters) { this.parameters = parameters; return this; } + /** * Add one parameters instance to this {@link AiExecutable}. + * * @param parametersItem The parameters that should be added * @return The same instance of type {@link AiExecutable} */ - @Nonnull public AiExecutable addParametersItem( @Nonnull final AiExecutableParameter parametersItem) { + @Nonnull + public AiExecutable addParametersItem(@Nonnull final AiExecutableParameter parametersItem) { if (this.parameters == null) { this.parameters = new ArrayList<>(); } @@ -293,39 +304,46 @@ public void setVersionId( @Nonnull final String versionId) { return this; } - /** - * Executable parameters - * @return parameters The parameters of this {@link AiExecutable} instance. - */ - @Nonnull public List getParameters() { + /** + * Executable parameters + * + * @return parameters The parameters of this {@link AiExecutable} instance. + */ + @Nonnull + public List getParameters() { return parameters; } /** * Set the parameters of this {@link AiExecutable} instance. * - * @param parameters Executable parameters + * @param parameters Executable parameters */ - public void setParameters( @Nonnull final List parameters) { + public void setParameters(@Nonnull final List parameters) { this.parameters = parameters; } - /** - * Set the inputArtifacts of this {@link AiExecutable} instance and return the same instance. - * - * @param inputArtifacts Executable parameters - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable inputArtifacts(@Nonnull final List inputArtifacts) { + /** + * Set the inputArtifacts of this {@link AiExecutable} instance and return the same instance. + * + * @param inputArtifacts Executable parameters + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable inputArtifacts(@Nonnull final List inputArtifacts) { this.inputArtifacts = inputArtifacts; return this; } + /** * Add one inputArtifacts instance to this {@link AiExecutable}. + * * @param inputArtifactsItem The inputArtifacts that should be added * @return The same instance of type {@link AiExecutable} */ - @Nonnull public AiExecutable addInputArtifactsItem( @Nonnull final AiExecutableArtifact inputArtifactsItem) { + @Nonnull + public AiExecutable addInputArtifactsItem( + @Nonnull final AiExecutableArtifact inputArtifactsItem) { if (this.inputArtifacts == null) { this.inputArtifacts = new ArrayList<>(); } @@ -333,39 +351,46 @@ public void setParameters( @Nonnull final List parameters return this; } - /** - * Executable parameters - * @return inputArtifacts The inputArtifacts of this {@link AiExecutable} instance. - */ - @Nonnull public List getInputArtifacts() { + /** + * Executable parameters + * + * @return inputArtifacts The inputArtifacts of this {@link AiExecutable} instance. + */ + @Nonnull + public List getInputArtifacts() { return inputArtifacts; } /** * Set the inputArtifacts of this {@link AiExecutable} instance. * - * @param inputArtifacts Executable parameters + * @param inputArtifacts Executable parameters */ - public void setInputArtifacts( @Nonnull final List inputArtifacts) { + public void setInputArtifacts(@Nonnull final List inputArtifacts) { this.inputArtifacts = inputArtifacts; } - /** - * Set the outputArtifacts of this {@link AiExecutable} instance and return the same instance. - * - * @param outputArtifacts Executable parameters - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable outputArtifacts(@Nonnull final List outputArtifacts) { + /** + * Set the outputArtifacts of this {@link AiExecutable} instance and return the same instance. + * + * @param outputArtifacts Executable parameters + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable outputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; return this; } + /** * Add one outputArtifacts instance to this {@link AiExecutable}. + * * @param outputArtifactsItem The outputArtifacts that should be added * @return The same instance of type {@link AiExecutable} */ - @Nonnull public AiExecutable addOutputArtifactsItem( @Nonnull final AiExecutableArtifact outputArtifactsItem) { + @Nonnull + public AiExecutable addOutputArtifactsItem( + @Nonnull final AiExecutableArtifact outputArtifactsItem) { if (this.outputArtifacts == null) { this.outputArtifacts = new ArrayList<>(); } @@ -373,109 +398,121 @@ public void setInputArtifacts( @Nonnull final List inputAr return this; } - /** - * Executable parameters - * @return outputArtifacts The outputArtifacts of this {@link AiExecutable} instance. - */ - @Nonnull public List getOutputArtifacts() { + /** + * Executable parameters + * + * @return outputArtifacts The outputArtifacts of this {@link AiExecutable} instance. + */ + @Nonnull + public List getOutputArtifacts() { return outputArtifacts; } /** * Set the outputArtifacts of this {@link AiExecutable} instance. * - * @param outputArtifacts Executable parameters + * @param outputArtifacts Executable parameters */ - public void setOutputArtifacts( @Nonnull final List outputArtifacts) { + public void setOutputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; } - /** - * Set the deployable of this {@link AiExecutable} instance and return the same instance. - * - * @param deployable Whether this executable is deployable - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable deployable(@Nonnull final Boolean deployable) { + /** + * Set the deployable of this {@link AiExecutable} instance and return the same instance. + * + * @param deployable Whether this executable is deployable + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable deployable(@Nonnull final Boolean deployable) { this.deployable = deployable; return this; } - /** - * Whether this executable is deployable - * @return deployable The deployable of this {@link AiExecutable} instance. - */ - @Nonnull public Boolean isDeployable() { + /** + * Whether this executable is deployable + * + * @return deployable The deployable of this {@link AiExecutable} instance. + */ + @Nonnull + public Boolean isDeployable() { return deployable; } /** * Set the deployable of this {@link AiExecutable} instance. * - * @param deployable Whether this executable is deployable + * @param deployable Whether this executable is deployable */ - public void setDeployable( @Nonnull final Boolean deployable) { + public void setDeployable(@Nonnull final Boolean deployable) { this.deployable = deployable; } - /** - * Set the createdAt of this {@link AiExecutable} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiExecutable} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiExecutable} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiExecutable} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiExecutable} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiExecutable} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiExecutable} class - */ - @Nonnull public AiExecutable modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiExecutable} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiExecutable} class + */ + @Nonnull + public AiExecutable modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiExecutable} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiExecutable} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiExecutable} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link AiExecutable}. + * * @return The set of properties names */ @JsonIgnore @@ -486,31 +523,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutable} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutable has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiExecutable has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutable} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutable} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -520,28 +557,42 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutable aiExecutable = (AiExecutable) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutable.cloudSdkCustomFields) && - Objects.equals(this.labels, aiExecutable.labels) && - Objects.equals(this.name, aiExecutable.name) && - Objects.equals(this.description, aiExecutable.description) && - Objects.equals(this.id, aiExecutable.id) && - Objects.equals(this.scenarioId, aiExecutable.scenarioId) && - Objects.equals(this.versionId, aiExecutable.versionId) && - Objects.equals(this.parameters, aiExecutable.parameters) && - Objects.equals(this.inputArtifacts, aiExecutable.inputArtifacts) && - Objects.equals(this.outputArtifacts, aiExecutable.outputArtifacts) && - Objects.equals(this.deployable, aiExecutable.deployable) && - Objects.equals(this.createdAt, aiExecutable.createdAt) && - Objects.equals(this.modifiedAt, aiExecutable.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, aiExecutable.cloudSdkCustomFields) + && Objects.equals(this.labels, aiExecutable.labels) + && Objects.equals(this.name, aiExecutable.name) + && Objects.equals(this.description, aiExecutable.description) + && Objects.equals(this.id, aiExecutable.id) + && Objects.equals(this.scenarioId, aiExecutable.scenarioId) + && Objects.equals(this.versionId, aiExecutable.versionId) + && Objects.equals(this.parameters, aiExecutable.parameters) + && Objects.equals(this.inputArtifacts, aiExecutable.inputArtifacts) + && Objects.equals(this.outputArtifacts, aiExecutable.outputArtifacts) + && Objects.equals(this.deployable, aiExecutable.deployable) + && Objects.equals(this.createdAt, aiExecutable.createdAt) + && Objects.equals(this.modifiedAt, aiExecutable.modifiedAt); } @Override public int hashCode() { - return Objects.hash(labels, name, description, id, scenarioId, versionId, parameters, inputArtifacts, outputArtifacts, deployable, createdAt, modifiedAt, cloudSdkCustomFields); + return Objects.hash( + labels, + name, + description, + id, + scenarioId, + versionId, + parameters, + inputArtifacts, + outputArtifacts, + deployable, + createdAt, + modifiedAt, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutable {\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); @@ -556,14 +607,15 @@ public int hashCode() { sb.append(" deployable: ").append(toIndentedString(deployable)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -572,84 +624,89 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutable} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> + (id) -> + (versionId) -> + (deployable) -> + (createdAt) -> + (modifiedAt) -> + new AiExecutable() + .name(name) + .id(id) + .versionId(versionId) + .deployable(deployable) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutable} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (id) -> (versionId) -> (deployable) -> (createdAt) -> (modifiedAt) -> new AiExecutable().name(name).id(id).versionId(versionId).deployable(deployable).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiExecutable} instance. - * - * @param name Name of the executable - * @return The AiExecutable builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the id of this {@link AiExecutable} instance. - * - * @param id ID of the executable - * @return The AiExecutable builder. - */ - Builder2 id( @Nonnull final String id); - } + * Set the name of this {@link AiExecutable} instance. + * + * @param name Name of the executable + * @return The AiExecutable builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the versionId of this {@link AiExecutable} instance. - * - * @param versionId Version ID - * @return The AiExecutable builder. - */ - Builder3 versionId( @Nonnull final String versionId); - } + * Set the id of this {@link AiExecutable} instance. + * + * @param id ID of the executable + * @return The AiExecutable builder. + */ + Builder2 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the deployable of this {@link AiExecutable} instance. - * - * @param deployable Whether this executable is deployable - * @return The AiExecutable builder. - */ - Builder4 deployable( @Nonnull final Boolean deployable); - } + * Set the versionId of this {@link AiExecutable} instance. + * + * @param versionId Version ID + * @return The AiExecutable builder. + */ + Builder3 versionId(@Nonnull final String versionId); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the createdAt of this {@link AiExecutable} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiExecutable builder. - */ - Builder5 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the deployable of this {@link AiExecutable} instance. + * + * @param deployable Whether this executable is deployable + * @return The AiExecutable builder. + */ + Builder4 deployable(@Nonnull final Boolean deployable); + } + + /** Builder helper class. */ + public interface Builder4 { /** - * Builder helper class. - */ - public interface Builder5 { - /** - * Set the modifiedAt of this {@link AiExecutable} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiExecutable instance. - */ - AiExecutable modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiExecutable} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecutable builder. + */ + Builder5 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder5 { + /** + * Set the modifiedAt of this {@link AiExecutable} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecutable instance. + */ + AiExecutable modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java index 22835572..0b4bde68 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableArtifact.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiLabel; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutableArtifact - */ +/** AiExecutableArtifact */ // CHECKSTYLE:OFF -public class AiExecutableArtifact +public class AiExecutableArtifact // CHECKSTYLE:ON { @JsonProperty("name") @@ -58,111 +43,124 @@ public class AiExecutableArtifact @JsonProperty("labels") private List labels = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutableArtifact() { } - /** - * Set the name of this {@link AiExecutableArtifact} instance and return the same instance. - * - * @param name Name of the executable input artifacts - * @return The same instance of this {@link AiExecutableArtifact} class - */ - @Nonnull public AiExecutableArtifact name(@Nonnull final String name) { + protected AiExecutableArtifact() {} + + /** + * Set the name of this {@link AiExecutableArtifact} instance and return the same instance. + * + * @param name Name of the executable input artifacts + * @return The same instance of this {@link AiExecutableArtifact} class + */ + @Nonnull + public AiExecutableArtifact name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the executable input artifacts - * @return name The name of this {@link AiExecutableArtifact} instance. - */ - @Nonnull public String getName() { + /** + * Name of the executable input artifacts + * + * @return name The name of this {@link AiExecutableArtifact} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiExecutableArtifact} instance. * - * @param name Name of the executable input artifacts + * @param name Name of the executable input artifacts */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the kind of this {@link AiExecutableArtifact} instance and return the same instance. - * - * @param kind Artifact kind (model, dataset, other) - * @return The same instance of this {@link AiExecutableArtifact} class - */ - @Nonnull public AiExecutableArtifact kind(@Nonnull final String kind) { + /** + * Set the kind of this {@link AiExecutableArtifact} instance and return the same instance. + * + * @param kind Artifact kind (model, dataset, other) + * @return The same instance of this {@link AiExecutableArtifact} class + */ + @Nonnull + public AiExecutableArtifact kind(@Nonnull final String kind) { this.kind = kind; return this; } - /** - * Artifact kind (model, dataset, other) - * @return kind The kind of this {@link AiExecutableArtifact} instance. - */ - @Nonnull public String getKind() { + /** + * Artifact kind (model, dataset, other) + * + * @return kind The kind of this {@link AiExecutableArtifact} instance. + */ + @Nonnull + public String getKind() { return kind; } /** * Set the kind of this {@link AiExecutableArtifact} instance. * - * @param kind Artifact kind (model, dataset, other) + * @param kind Artifact kind (model, dataset, other) */ - public void setKind( @Nonnull final String kind) { + public void setKind(@Nonnull final String kind) { this.kind = kind; } - /** - * Set the description of this {@link AiExecutableArtifact} instance and return the same instance. - * - * @param description Description of the signature argument - * @return The same instance of this {@link AiExecutableArtifact} class - */ - @Nonnull public AiExecutableArtifact description(@Nonnull final String description) { + /** + * Set the description of this {@link AiExecutableArtifact} instance and return the same instance. + * + * @param description Description of the signature argument + * @return The same instance of this {@link AiExecutableArtifact} class + */ + @Nonnull + public AiExecutableArtifact description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the signature argument - * @return description The description of this {@link AiExecutableArtifact} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the signature argument + * + * @return description The description of this {@link AiExecutableArtifact} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiExecutableArtifact} instance. * - * @param description Description of the signature argument + * @param description Description of the signature argument */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the labels of this {@link AiExecutableArtifact} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link AiExecutableArtifact} class - */ - @Nonnull public AiExecutableArtifact labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link AiExecutableArtifact} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link AiExecutableArtifact} class + */ + @Nonnull + public AiExecutableArtifact labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link AiExecutableArtifact}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link AiExecutableArtifact} */ - @Nonnull public AiExecutableArtifact addLabelsItem( @Nonnull final AiLabel labelsItem) { + @Nonnull + public AiExecutableArtifact addLabelsItem(@Nonnull final AiLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -170,25 +168,28 @@ public void setDescription( @Nonnull final String description) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link AiExecutableArtifact} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link AiExecutableArtifact} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link AiExecutableArtifact} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } /** * Get the names of the unrecognizable properties of the {@link AiExecutableArtifact}. + * * @return The set of properties names */ @JsonIgnore @@ -199,31 +200,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutableArtifact} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutableArtifact has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutableArtifact has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutableArtifact} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutableArtifact} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -233,11 +235,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutableArtifact aiExecutableArtifact = (AiExecutableArtifact) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutableArtifact.cloudSdkCustomFields) && - Objects.equals(this.name, aiExecutableArtifact.name) && - Objects.equals(this.kind, aiExecutableArtifact.kind) && - Objects.equals(this.description, aiExecutableArtifact.description) && - Objects.equals(this.labels, aiExecutableArtifact.labels); + return Objects.equals(this.cloudSdkCustomFields, aiExecutableArtifact.cloudSdkCustomFields) + && Objects.equals(this.name, aiExecutableArtifact.name) + && Objects.equals(this.kind, aiExecutableArtifact.kind) + && Objects.equals(this.description, aiExecutableArtifact.description) + && Objects.equals(this.labels, aiExecutableArtifact.labels); } @Override @@ -246,21 +248,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutableArtifact {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -269,24 +273,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableArtifact} instance with all required arguments. - */ - public static Builder create() { - return (name) -> new AiExecutableArtifact().name(name); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiExecutableArtifact} instance. - * - * @param name Name of the executable input artifacts - * @return The AiExecutableArtifact instance. - */ - AiExecutableArtifact name( @Nonnull final String name); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableArtifact} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> new AiExecutableArtifact().name(name); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the name of this {@link AiExecutableArtifact} instance. + * + * @param name Name of the executable input artifacts + * @return The AiExecutableArtifact instance. + */ + AiExecutableArtifact name(@Nonnull final String name); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java index 8f1361c6..1955cc95 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutable; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutableList - */ +/** AiExecutableList */ // CHECKSTYLE:OFF -public class AiExecutableList +public class AiExecutableList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiExecutableList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutableList() { } - - /** - * Set the count of this {@link AiExecutableList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiExecutableList} class - */ - @Nonnull public AiExecutableList count(@Nonnull final Integer count) { + + protected AiExecutableList() {} + + /** + * Set the count of this {@link AiExecutableList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiExecutableList} class + */ + @Nonnull + public AiExecutableList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiExecutableList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiExecutableList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiExecutableList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiExecutableList} instance and return the same instance. - * - * @param resources The resources of this {@link AiExecutableList} - * @return The same instance of this {@link AiExecutableList} class - */ - @Nonnull public AiExecutableList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiExecutableList} instance and return the same instance. + * + * @param resources The resources of this {@link AiExecutableList} + * @return The same instance of this {@link AiExecutableList} class + */ + @Nonnull + public AiExecutableList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiExecutableList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiExecutableList} */ - @Nonnull public AiExecutableList addResourcesItem( @Nonnull final AiExecutable resourcesItem) { + @Nonnull + public AiExecutableList addResourcesItem(@Nonnull final AiExecutable resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiExecutableList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiExecutableList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiExecutableList} instance. * - * @param resources The resources of this {@link AiExecutableList} + * @param resources The resources of this {@link AiExecutableList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiExecutableList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutableList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutableList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiExecutableList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutableList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutableList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutableList aiExecutableList = (AiExecutableList) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutableList.cloudSdkCustomFields) && - Objects.equals(this.count, aiExecutableList.count) && - Objects.equals(this.resources, aiExecutableList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiExecutableList.cloudSdkCustomFields) + && Objects.equals(this.count, aiExecutableList.count) + && Objects.equals(this.resources, aiExecutableList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutableList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiExecutableList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiExecutableList().count(count).resources(resources); - } + * Set the count of this {@link AiExecutableList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiExecutableList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiExecutableList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiExecutableList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiExecutableList} instance. + * + * @param resources The resources of this {@link AiExecutableList} + * @return The AiExecutableList instance. + */ + AiExecutableList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiExecutableList} instance. - * - * @param resources The resources of this {@link AiExecutableList} - * @return The AiExecutableList instance. - */ - AiExecutableList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiExecutableList} instance. - * - * @param resources The resources of this {@link AiExecutableList} - * @return The AiExecutableList instance. - */ - default AiExecutableList resources( @Nonnull final AiExecutable... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiExecutableList} instance. + * + * @param resources The resources of this {@link AiExecutableList} + * @return The AiExecutableList instance. + */ + default AiExecutableList resources(@Nonnull final AiExecutable... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java index 374d4aa2..9b44c965 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutableParameter.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutableParameter - */ +/** AiExecutableParameter */ // CHECKSTYLE:OFF -public class AiExecutableParameter +public class AiExecutableParameter // CHECKSTYLE:ON { @JsonProperty("name") @@ -51,13 +40,9 @@ public class AiExecutableParameter @JsonProperty("default") private String _default; - /** - * Type of the executable parameter - */ + /** Type of the executable parameter */ public enum TypeEnum { - /** - * The STRING option of this AiExecutableParameter - */ + /** The STRING option of this AiExecutableParameter */ STRING("string"); private String value; @@ -67,30 +52,36 @@ public enum TypeEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiExecutableParameter - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiExecutableParameter + */ @JsonCreator - @Nonnull public static TypeEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TypeEnum fromValue(@Nonnull final String value) { for (TypeEnum b : TypeEnum.values()) { if (b.value.equals(value)) { return b; @@ -103,125 +94,139 @@ public enum TypeEnum { @JsonProperty("type") private TypeEnum type; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutableParameter() { } - - /** - * Set the name of this {@link AiExecutableParameter} instance and return the same instance. - * - * @param name Name of the executable parameter - * @return The same instance of this {@link AiExecutableParameter} class - */ - @Nonnull public AiExecutableParameter name(@Nonnull final String name) { + + protected AiExecutableParameter() {} + + /** + * Set the name of this {@link AiExecutableParameter} instance and return the same instance. + * + * @param name Name of the executable parameter + * @return The same instance of this {@link AiExecutableParameter} class + */ + @Nonnull + public AiExecutableParameter name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the executable parameter - * @return name The name of this {@link AiExecutableParameter} instance. - */ - @Nonnull public String getName() { + /** + * Name of the executable parameter + * + * @return name The name of this {@link AiExecutableParameter} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiExecutableParameter} instance. * - * @param name Name of the executable parameter + * @param name Name of the executable parameter */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link AiExecutableParameter} instance and return the same instance. - * - * @param description Description of the signature argument - * @return The same instance of this {@link AiExecutableParameter} class - */ - @Nonnull public AiExecutableParameter description(@Nonnull final String description) { + /** + * Set the description of this {@link AiExecutableParameter} instance and return the same + * instance. + * + * @param description Description of the signature argument + * @return The same instance of this {@link AiExecutableParameter} class + */ + @Nonnull + public AiExecutableParameter description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the signature argument - * @return description The description of this {@link AiExecutableParameter} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the signature argument + * + * @return description The description of this {@link AiExecutableParameter} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiExecutableParameter} instance. * - * @param description Description of the signature argument + * @param description Description of the signature argument */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the _default of this {@link AiExecutableParameter} instance and return the same instance. - * - * @param _default Default value of the signature argument - * @return The same instance of this {@link AiExecutableParameter} class - */ - @Nonnull public AiExecutableParameter _default(@Nonnull final String _default) { + /** + * Set the _default of this {@link AiExecutableParameter} instance and return the same instance. + * + * @param _default Default value of the signature argument + * @return The same instance of this {@link AiExecutableParameter} class + */ + @Nonnull + public AiExecutableParameter _default(@Nonnull final String _default) { this._default = _default; return this; } - /** - * Default value of the signature argument - * @return _default The _default of this {@link AiExecutableParameter} instance. - */ - @Nonnull public String getDefault() { + /** + * Default value of the signature argument + * + * @return _default The _default of this {@link AiExecutableParameter} instance. + */ + @Nonnull + public String getDefault() { return _default; } /** * Set the _default of this {@link AiExecutableParameter} instance. * - * @param _default Default value of the signature argument + * @param _default Default value of the signature argument */ - public void setDefault( @Nonnull final String _default) { + public void setDefault(@Nonnull final String _default) { this._default = _default; } - /** - * Set the type of this {@link AiExecutableParameter} instance and return the same instance. - * - * @param type Type of the executable parameter - * @return The same instance of this {@link AiExecutableParameter} class - */ - @Nonnull public AiExecutableParameter type(@Nonnull final TypeEnum type) { + /** + * Set the type of this {@link AiExecutableParameter} instance and return the same instance. + * + * @param type Type of the executable parameter + * @return The same instance of this {@link AiExecutableParameter} class + */ + @Nonnull + public AiExecutableParameter type(@Nonnull final TypeEnum type) { this.type = type; return this; } - /** - * Type of the executable parameter - * @return type The type of this {@link AiExecutableParameter} instance. - */ - @Nonnull public TypeEnum getType() { + /** + * Type of the executable parameter + * + * @return type The type of this {@link AiExecutableParameter} instance. + */ + @Nonnull + public TypeEnum getType() { return type; } /** * Set the type of this {@link AiExecutableParameter} instance. * - * @param type Type of the executable parameter + * @param type Type of the executable parameter */ - public void setType( @Nonnull final TypeEnum type) { + public void setType(@Nonnull final TypeEnum type) { this.type = type; } /** * Get the names of the unrecognizable properties of the {@link AiExecutableParameter}. + * * @return The set of properties names */ @JsonIgnore @@ -232,31 +237,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutableParameter} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutableParameter has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutableParameter has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutableParameter} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutableParameter} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -266,11 +272,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutableParameter aiExecutableParameter = (AiExecutableParameter) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutableParameter.cloudSdkCustomFields) && - Objects.equals(this.name, aiExecutableParameter.name) && - Objects.equals(this.description, aiExecutableParameter.description) && - Objects.equals(this._default, aiExecutableParameter._default) && - Objects.equals(this.type, aiExecutableParameter.type); + return Objects.equals(this.cloudSdkCustomFields, aiExecutableParameter.cloudSdkCustomFields) + && Objects.equals(this.name, aiExecutableParameter.name) + && Objects.equals(this.description, aiExecutableParameter.description) + && Objects.equals(this._default, aiExecutableParameter._default) + && Objects.equals(this.type, aiExecutableParameter.type); } @Override @@ -279,21 +285,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutableParameter {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -302,24 +310,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableParameter} instance with all required arguments. - */ - public static Builder create() { - return (name) -> new AiExecutableParameter().name(name); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiExecutableParameter} instance. - * - * @param name Name of the executable parameter - * @return The AiExecutableParameter instance. - */ - AiExecutableParameter name( @Nonnull final String name); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutableParameter} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> new AiExecutableParameter().name(name); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the name of this {@link AiExecutableParameter} instance. + * + * @param name Name of the executable parameter + * @return The AiExecutableParameter instance. + */ + AiExecutableParameter name(@Nonnull final String name); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java index 532f0f95..e6d8e6d3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecution.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,26 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiArtifact; -import com.sap.ai.sdk.core.client.model.AiExecutionStatus; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Execution that may generate artifacts - */ +/** Execution that may generate artifacts */ // CHECKSTYLE:OFF -public class AiExecution +public class AiExecution // CHECKSTYLE:ON { @JsonProperty("id") @@ -60,28 +46,18 @@ public class AiExecution @JsonProperty("scenarioId") private String scenarioId; - /** - * Target status of the execution - */ + /** Target status of the execution */ public enum TargetStatusEnum { - /** - * The COMPLETED option of this AiExecution - */ + /** The COMPLETED option of this AiExecution */ COMPLETED("COMPLETED"), - - /** - * The RUNNING option of this AiExecution - */ + + /** The RUNNING option of this AiExecution */ RUNNING("RUNNING"), - - /** - * The STOPPED option of this AiExecution - */ + + /** The STOPPED option of this AiExecution */ STOPPED("STOPPED"), - - /** - * The DELETED option of this AiExecution - */ + + /** The DELETED option of this AiExecution */ DELETED("DELETED"); private String value; @@ -91,30 +67,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiExecution - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiExecution + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -154,223 +136,248 @@ public enum TargetStatusEnum { @JsonProperty("completionTime") private OffsetDateTime completionTime; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecution() { } - - /** - * Set the id of this {@link AiExecution} instance and return the same instance. - * - * @param id ID of the execution - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution id(@Nonnull final String id) { + + protected AiExecution() {} + + /** + * Set the id of this {@link AiExecution} instance and return the same instance. + * + * @param id ID of the execution + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the execution - * @return id The id of this {@link AiExecution} instance. - */ - @Nonnull public String getId() { + /** + * ID of the execution + * + * @return id The id of this {@link AiExecution} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecution} instance. * - * @param id ID of the execution + * @param id ID of the execution */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the configurationId of this {@link AiExecution} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiExecution} instance and return the same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiExecution} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiExecution} instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiExecution} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the configurationName of this {@link AiExecution} instance and return the same instance. - * - * @param configurationName Name of the configuration - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution configurationName(@Nonnull final String configurationName) { + /** + * Set the configurationName of this {@link AiExecution} instance and return the same instance. + * + * @param configurationName Name of the configuration + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution configurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; return this; } - /** - * Name of the configuration - * @return configurationName The configurationName of this {@link AiExecution} instance. - */ - @Nonnull public String getConfigurationName() { + /** + * Name of the configuration + * + * @return configurationName The configurationName of this {@link AiExecution} instance. + */ + @Nonnull + public String getConfigurationName() { return configurationName; } /** * Set the configurationName of this {@link AiExecution} instance. * - * @param configurationName Name of the configuration + * @param configurationName Name of the configuration */ - public void setConfigurationName( @Nonnull final String configurationName) { + public void setConfigurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; } - /** - * Set the scenarioId of this {@link AiExecution} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiExecution} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiExecution} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiExecution} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiExecution} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the targetStatus of this {@link AiExecution} instance and return the same instance. - * - * @param targetStatus Target status of the execution - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + /** + * Set the targetStatus of this {@link AiExecution} instance and return the same instance. + * + * @param targetStatus Target status of the execution + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution targetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Target status of the execution - * @return targetStatus The targetStatus of this {@link AiExecution} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Target status of the execution + * + * @return targetStatus The targetStatus of this {@link AiExecution} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiExecution} instance. * - * @param targetStatus Target status of the execution + * @param targetStatus Target status of the execution */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } - /** - * Set the status of this {@link AiExecution} instance and return the same instance. - * - * @param status The status of this {@link AiExecution} - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution status(@Nonnull final AiExecutionStatus status) { + /** + * Set the status of this {@link AiExecution} instance and return the same instance. + * + * @param status The status of this {@link AiExecution} + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution status(@Nonnull final AiExecutionStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiExecution} instance. - */ - @Nonnull public AiExecutionStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiExecution} instance. + */ + @Nonnull + public AiExecutionStatus getStatus() { return status; } /** * Set the status of this {@link AiExecution} instance. * - * @param status The status of this {@link AiExecution} + * @param status The status of this {@link AiExecution} */ - public void setStatus( @Nonnull final AiExecutionStatus status) { + public void setStatus(@Nonnull final AiExecutionStatus status) { this.status = status; } - /** - * Set the statusMessage of this {@link AiExecution} instance and return the same instance. - * - * @param statusMessage Execution status message - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link AiExecution} instance and return the same instance. + * + * @param statusMessage Execution status message + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * Execution status message - * @return statusMessage The statusMessage of this {@link AiExecution} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * Execution status message + * + * @return statusMessage The statusMessage of this {@link AiExecution} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link AiExecution} instance. * - * @param statusMessage Execution status message + * @param statusMessage Execution status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the outputArtifacts of this {@link AiExecution} instance and return the same instance. - * - * @param outputArtifacts The outputArtifacts of this {@link AiExecution} - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution outputArtifacts(@Nonnull final List outputArtifacts) { + /** + * Set the outputArtifacts of this {@link AiExecution} instance and return the same instance. + * + * @param outputArtifacts The outputArtifacts of this {@link AiExecution} + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution outputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; return this; } + /** * Add one outputArtifacts instance to this {@link AiExecution}. + * * @param outputArtifactsItem The outputArtifacts that should be added * @return The same instance of type {@link AiExecution} */ - @Nonnull public AiExecution addOutputArtifactsItem( @Nonnull final AiArtifact outputArtifactsItem) { + @Nonnull + public AiExecution addOutputArtifactsItem(@Nonnull final AiArtifact outputArtifactsItem) { if (this.outputArtifacts == null) { this.outputArtifacts = new ArrayList<>(); } @@ -378,193 +385,214 @@ public void setStatusMessage( @Nonnull final String statusMessage) { return this; } - /** - * Get outputArtifacts - * @return outputArtifacts The outputArtifacts of this {@link AiExecution} instance. - */ - @Nonnull public List getOutputArtifacts() { + /** + * Get outputArtifacts + * + * @return outputArtifacts The outputArtifacts of this {@link AiExecution} instance. + */ + @Nonnull + public List getOutputArtifacts() { return outputArtifacts; } /** * Set the outputArtifacts of this {@link AiExecution} instance. * - * @param outputArtifacts The outputArtifacts of this {@link AiExecution} + * @param outputArtifacts The outputArtifacts of this {@link AiExecution} */ - public void setOutputArtifacts( @Nonnull final List outputArtifacts) { + public void setOutputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; } - /** - * Set the executionScheduleId of this {@link AiExecution} instance and return the same instance. - * - * @param executionScheduleId ID of the execution schedule - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution executionScheduleId(@Nonnull final String executionScheduleId) { + /** + * Set the executionScheduleId of this {@link AiExecution} instance and return the same instance. + * + * @param executionScheduleId ID of the execution schedule + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution executionScheduleId(@Nonnull final String executionScheduleId) { this.executionScheduleId = executionScheduleId; return this; } - /** - * ID of the execution schedule - * @return executionScheduleId The executionScheduleId of this {@link AiExecution} instance. - */ - @Nonnull public String getExecutionScheduleId() { + /** + * ID of the execution schedule + * + * @return executionScheduleId The executionScheduleId of this {@link AiExecution} instance. + */ + @Nonnull + public String getExecutionScheduleId() { return executionScheduleId; } /** * Set the executionScheduleId of this {@link AiExecution} instance. * - * @param executionScheduleId ID of the execution schedule + * @param executionScheduleId ID of the execution schedule */ - public void setExecutionScheduleId( @Nonnull final String executionScheduleId) { + public void setExecutionScheduleId(@Nonnull final String executionScheduleId) { this.executionScheduleId = executionScheduleId; } - /** - * Set the createdAt of this {@link AiExecution} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiExecution} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiExecution} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiExecution} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiExecution} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiExecution} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiExecution} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiExecution} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiExecution} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiExecution} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } - /** - * Set the submissionTime of this {@link AiExecution} instance and return the same instance. - * - * @param submissionTime Timestamp of job submitted - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution submissionTime(@Nonnull final OffsetDateTime submissionTime) { + /** + * Set the submissionTime of this {@link AiExecution} instance and return the same instance. + * + * @param submissionTime Timestamp of job submitted + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution submissionTime(@Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; return this; } - /** - * Timestamp of job submitted - * @return submissionTime The submissionTime of this {@link AiExecution} instance. - */ - @Nonnull public OffsetDateTime getSubmissionTime() { + /** + * Timestamp of job submitted + * + * @return submissionTime The submissionTime of this {@link AiExecution} instance. + */ + @Nonnull + public OffsetDateTime getSubmissionTime() { return submissionTime; } /** * Set the submissionTime of this {@link AiExecution} instance. * - * @param submissionTime Timestamp of job submitted + * @param submissionTime Timestamp of job submitted */ - public void setSubmissionTime( @Nonnull final OffsetDateTime submissionTime) { + public void setSubmissionTime(@Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; } - /** - * Set the startTime of this {@link AiExecution} instance and return the same instance. - * - * @param startTime Timestamp of job status changed to RUNNING - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution startTime(@Nonnull final OffsetDateTime startTime) { + /** + * Set the startTime of this {@link AiExecution} instance and return the same instance. + * + * @param startTime Timestamp of job status changed to RUNNING + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution startTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; return this; } - /** - * Timestamp of job status changed to RUNNING - * @return startTime The startTime of this {@link AiExecution} instance. - */ - @Nonnull public OffsetDateTime getStartTime() { + /** + * Timestamp of job status changed to RUNNING + * + * @return startTime The startTime of this {@link AiExecution} instance. + */ + @Nonnull + public OffsetDateTime getStartTime() { return startTime; } /** * Set the startTime of this {@link AiExecution} instance. * - * @param startTime Timestamp of job status changed to RUNNING + * @param startTime Timestamp of job status changed to RUNNING */ - public void setStartTime( @Nonnull final OffsetDateTime startTime) { + public void setStartTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; } - /** - * Set the completionTime of this {@link AiExecution} instance and return the same instance. - * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return The same instance of this {@link AiExecution} class - */ - @Nonnull public AiExecution completionTime(@Nonnull final OffsetDateTime completionTime) { + /** + * Set the completionTime of this {@link AiExecution} instance and return the same instance. + * + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @return The same instance of this {@link AiExecution} class + */ + @Nonnull + public AiExecution completionTime(@Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; return this; } - /** - * Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return completionTime The completionTime of this {@link AiExecution} instance. - */ - @Nonnull public OffsetDateTime getCompletionTime() { + /** + * Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * + * @return completionTime The completionTime of this {@link AiExecution} instance. + */ + @Nonnull + public OffsetDateTime getCompletionTime() { return completionTime; } /** * Set the completionTime of this {@link AiExecution} instance. * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED */ - public void setCompletionTime( @Nonnull final OffsetDateTime completionTime) { + public void setCompletionTime(@Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; } /** * Get the names of the unrecognizable properties of the {@link AiExecution}. + * * @return The set of properties names */ @JsonIgnore @@ -575,31 +603,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecution} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecution has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiExecution has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecution} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecution} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -609,30 +637,46 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecution aiExecution = (AiExecution) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecution.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecution.id) && - Objects.equals(this.configurationId, aiExecution.configurationId) && - Objects.equals(this.configurationName, aiExecution.configurationName) && - Objects.equals(this.scenarioId, aiExecution.scenarioId) && - Objects.equals(this.targetStatus, aiExecution.targetStatus) && - Objects.equals(this.status, aiExecution.status) && - Objects.equals(this.statusMessage, aiExecution.statusMessage) && - Objects.equals(this.outputArtifacts, aiExecution.outputArtifacts) && - Objects.equals(this.executionScheduleId, aiExecution.executionScheduleId) && - Objects.equals(this.createdAt, aiExecution.createdAt) && - Objects.equals(this.modifiedAt, aiExecution.modifiedAt) && - Objects.equals(this.submissionTime, aiExecution.submissionTime) && - Objects.equals(this.startTime, aiExecution.startTime) && - Objects.equals(this.completionTime, aiExecution.completionTime); + return Objects.equals(this.cloudSdkCustomFields, aiExecution.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecution.id) + && Objects.equals(this.configurationId, aiExecution.configurationId) + && Objects.equals(this.configurationName, aiExecution.configurationName) + && Objects.equals(this.scenarioId, aiExecution.scenarioId) + && Objects.equals(this.targetStatus, aiExecution.targetStatus) + && Objects.equals(this.status, aiExecution.status) + && Objects.equals(this.statusMessage, aiExecution.statusMessage) + && Objects.equals(this.outputArtifacts, aiExecution.outputArtifacts) + && Objects.equals(this.executionScheduleId, aiExecution.executionScheduleId) + && Objects.equals(this.createdAt, aiExecution.createdAt) + && Objects.equals(this.modifiedAt, aiExecution.modifiedAt) + && Objects.equals(this.submissionTime, aiExecution.submissionTime) + && Objects.equals(this.startTime, aiExecution.startTime) + && Objects.equals(this.completionTime, aiExecution.completionTime); } @Override public int hashCode() { - return Objects.hash(id, configurationId, configurationName, scenarioId, targetStatus, status, statusMessage, outputArtifacts, executionScheduleId, createdAt, modifiedAt, submissionTime, startTime, completionTime, cloudSdkCustomFields); + return Objects.hash( + id, + configurationId, + configurationName, + scenarioId, + targetStatus, + status, + statusMessage, + outputArtifacts, + executionScheduleId, + createdAt, + modifiedAt, + submissionTime, + startTime, + completionTime, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecution {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -643,20 +687,23 @@ public int hashCode() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" outputArtifacts: ").append(toIndentedString(outputArtifacts)).append("\n"); - sb.append(" executionScheduleId: ").append(toIndentedString(executionScheduleId)).append("\n"); + sb.append(" executionScheduleId: ") + .append(toIndentedString(executionScheduleId)) + .append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" submissionTime: ").append(toIndentedString(submissionTime)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" completionTime: ").append(toIndentedString(completionTime)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -665,72 +712,76 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecution} instance + * with all required arguments. + */ + public static Builder create() { + return (id) -> + (configurationId) -> + (status) -> + (createdAt) -> + (modifiedAt) -> + new AiExecution() + .id(id) + .configurationId(configurationId) + .status(status) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecution} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiExecution().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecution} instance. - * - * @param id ID of the execution - * @return The AiExecution builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the configurationId of this {@link AiExecution} instance. - * - * @param configurationId ID of the configuration - * @return The AiExecution builder. - */ - Builder2 configurationId( @Nonnull final String configurationId); - } + * Set the id of this {@link AiExecution} instance. + * + * @param id ID of the execution + * @return The AiExecution builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the status of this {@link AiExecution} instance. - * - * @param status The status of this {@link AiExecution} - * @return The AiExecution builder. - */ - Builder3 status( @Nonnull final AiExecutionStatus status); - } + * Set the configurationId of this {@link AiExecution} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecution builder. + */ + Builder2 configurationId(@Nonnull final String configurationId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the createdAt of this {@link AiExecution} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiExecution builder. - */ - Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the status of this {@link AiExecution} instance. + * + * @param status The status of this {@link AiExecution} + * @return The AiExecution builder. + */ + Builder3 status(@Nonnull final AiExecutionStatus status); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the modifiedAt of this {@link AiExecution} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiExecution instance. - */ - AiExecution modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiExecution} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecution builder. + */ + Builder4 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiExecution} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecution instance. + */ + AiExecution modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java index a1fa0e5d..2bddbc65 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,55 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.sap.ai.sdk.core.client.model.AiExecutionModificationRequestWithIdentifier; -import java.util.LinkedHashSet; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Request object to change status of multiple executions - */ +/** Request object to change status of multiple executions */ // CHECKSTYLE:OFF -public class AiExecutionBulkModificationRequest +public class AiExecutionBulkModificationRequest // CHECKSTYLE:ON { @JsonProperty("executions") private Set executions = new LinkedHashSet<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionBulkModificationRequest() { } - - /** - * Set the executions of this {@link AiExecutionBulkModificationRequest} instance and return the same instance. - * - * @param executions The executions of this {@link AiExecutionBulkModificationRequest} - * @return The same instance of this {@link AiExecutionBulkModificationRequest} class - */ - @Nonnull public AiExecutionBulkModificationRequest executions(@Nonnull final Set executions) { + + protected AiExecutionBulkModificationRequest() {} + + /** + * Set the executions of this {@link AiExecutionBulkModificationRequest} instance and return the + * same instance. + * + * @param executions The executions of this {@link AiExecutionBulkModificationRequest} + * @return The same instance of this {@link AiExecutionBulkModificationRequest} class + */ + @Nonnull + public AiExecutionBulkModificationRequest executions( + @Nonnull final Set executions) { this.executions = executions; return this; } + /** * Add one executions instance to this {@link AiExecutionBulkModificationRequest}. + * * @param executionsItem The executions that should be added * @return The same instance of type {@link AiExecutionBulkModificationRequest} */ - @Nonnull public AiExecutionBulkModificationRequest addExecutionsItem( @Nonnull final AiExecutionModificationRequestWithIdentifier executionsItem) { + @Nonnull + public AiExecutionBulkModificationRequest addExecutionsItem( + @Nonnull final AiExecutionModificationRequestWithIdentifier executionsItem) { if (this.executions == null) { this.executions = new LinkedHashSet<>(); } @@ -77,25 +68,30 @@ protected AiExecutionBulkModificationRequest() { } return this; } - /** - * Get executions - * @return executions The executions of this {@link AiExecutionBulkModificationRequest} instance. - */ - @Nonnull public Set getExecutions() { + /** + * Get executions + * + * @return executions The executions of this {@link AiExecutionBulkModificationRequest} instance. + */ + @Nonnull + public Set getExecutions() { return executions; } /** * Set the executions of this {@link AiExecutionBulkModificationRequest} instance. * - * @param executions The executions of this {@link AiExecutionBulkModificationRequest} + * @param executions The executions of this {@link AiExecutionBulkModificationRequest} */ - public void setExecutions( @Nonnull final Set executions) { + public void setExecutions( + @Nonnull final Set executions) { this.executions = executions; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionBulkModificationRequest}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionBulkModificationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -105,32 +101,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionBulkModificationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionBulkModificationRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionBulkModificationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionBulkModificationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionBulkModificationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionBulkModificationRequest} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -139,9 +138,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionBulkModificationRequest aiExecutionBulkModificationRequest = (AiExecutionBulkModificationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionBulkModificationRequest.cloudSdkCustomFields) && - Objects.equals(this.executions, aiExecutionBulkModificationRequest.executions); + final AiExecutionBulkModificationRequest aiExecutionBulkModificationRequest = + (AiExecutionBulkModificationRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionBulkModificationRequest.cloudSdkCustomFields) + && Objects.equals(this.executions, aiExecutionBulkModificationRequest.executions); } @Override @@ -150,18 +151,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionBulkModificationRequest {\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +173,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiExecutionBulkModificationRequest} instance. No arguments are required. - */ - public static AiExecutionBulkModificationRequest create() { - return new AiExecutionBulkModificationRequest(); - } - + /** + * Create a new {@link AiExecutionBulkModificationRequest} instance. No arguments are required. + */ + public static AiExecutionBulkModificationRequest create() { + return new AiExecutionBulkModificationRequest(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java index c244d37c..d61d9187 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionBulkModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,56 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutionModificationResponseListInner; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Response object with array of executions and its status - */ +/** Response object with array of executions and its status */ // CHECKSTYLE:OFF -public class AiExecutionBulkModificationResponse +public class AiExecutionBulkModificationResponse // CHECKSTYLE:ON { @JsonProperty("executions") private List executions = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionBulkModificationResponse() { } - - /** - * Set the executions of this {@link AiExecutionBulkModificationResponse} instance and return the same instance. - * - * @param executions The executions of this {@link AiExecutionBulkModificationResponse} - * @return The same instance of this {@link AiExecutionBulkModificationResponse} class - */ - @Nonnull public AiExecutionBulkModificationResponse executions(@Nonnull final List executions) { + + protected AiExecutionBulkModificationResponse() {} + + /** + * Set the executions of this {@link AiExecutionBulkModificationResponse} instance and return the + * same instance. + * + * @param executions The executions of this {@link AiExecutionBulkModificationResponse} + * @return The same instance of this {@link AiExecutionBulkModificationResponse} class + */ + @Nonnull + public AiExecutionBulkModificationResponse executions( + @Nonnull final List executions) { this.executions = executions; return this; } + /** * Add one executions instance to this {@link AiExecutionBulkModificationResponse}. + * * @param executionsItem The executions that should be added * @return The same instance of type {@link AiExecutionBulkModificationResponse} */ - @Nonnull public AiExecutionBulkModificationResponse addExecutionsItem( @Nonnull final AiExecutionModificationResponseListInner executionsItem) { + @Nonnull + public AiExecutionBulkModificationResponse addExecutionsItem( + @Nonnull final AiExecutionModificationResponseListInner executionsItem) { if (this.executions == null) { this.executions = new ArrayList<>(); } @@ -77,25 +69,30 @@ protected AiExecutionBulkModificationResponse() { } return this; } - /** - * Get executions - * @return executions The executions of this {@link AiExecutionBulkModificationResponse} instance. - */ - @Nonnull public List getExecutions() { + /** + * Get executions + * + * @return executions The executions of this {@link AiExecutionBulkModificationResponse} instance. + */ + @Nonnull + public List getExecutions() { return executions; } /** * Set the executions of this {@link AiExecutionBulkModificationResponse} instance. * - * @param executions The executions of this {@link AiExecutionBulkModificationResponse} + * @param executions The executions of this {@link AiExecutionBulkModificationResponse} */ - public void setExecutions( @Nonnull final List executions) { + public void setExecutions( + @Nonnull final List executions) { this.executions = executions; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionBulkModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionBulkModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -105,32 +102,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionBulkModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionBulkModificationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionBulkModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionBulkModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionBulkModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionBulkModificationResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -139,9 +139,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionBulkModificationResponse aiExecutionBulkModificationResponse = (AiExecutionBulkModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionBulkModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.executions, aiExecutionBulkModificationResponse.executions); + final AiExecutionBulkModificationResponse aiExecutionBulkModificationResponse = + (AiExecutionBulkModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionBulkModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.executions, aiExecutionBulkModificationResponse.executions); } @Override @@ -150,18 +152,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionBulkModificationResponse {\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +174,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiExecutionBulkModificationResponse} instance. No arguments are required. - */ - public static AiExecutionBulkModificationResponse create() { - return new AiExecutionBulkModificationResponse(); - } - + /** + * Create a new {@link AiExecutionBulkModificationResponse} instance. No arguments are required. + */ + public static AiExecutionBulkModificationResponse create() { + return new AiExecutionBulkModificationResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java index 2935517b..37d00ec8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutionStatus; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionCreationResponse - */ +/** AiExecutionCreationResponse */ // CHECKSTYLE:OFF -public class AiExecutionCreationResponse +public class AiExecutionCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -52,97 +38,109 @@ public class AiExecutionCreationResponse @JsonProperty("status") private AiExecutionStatus status; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionCreationResponse() { } - /** - * Set the id of this {@link AiExecutionCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionCreationResponse} class - */ - @Nonnull public AiExecutionCreationResponse id(@Nonnull final String id) { + protected AiExecutionCreationResponse() {} + + /** + * Set the id of this {@link AiExecutionCreationResponse} instance and return the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionCreationResponse} class + */ + @Nonnull + public AiExecutionCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionCreationResponse} class - */ - @Nonnull public AiExecutionCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionCreationResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionCreationResponse} class + */ + @Nonnull + public AiExecutionCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the status of this {@link AiExecutionCreationResponse} instance and return the same instance. - * - * @param status The status of this {@link AiExecutionCreationResponse} - * @return The same instance of this {@link AiExecutionCreationResponse} class - */ - @Nonnull public AiExecutionCreationResponse status(@Nonnull final AiExecutionStatus status) { + /** + * Set the status of this {@link AiExecutionCreationResponse} instance and return the same + * instance. + * + * @param status The status of this {@link AiExecutionCreationResponse} + * @return The same instance of this {@link AiExecutionCreationResponse} class + */ + @Nonnull + public AiExecutionCreationResponse status(@Nonnull final AiExecutionStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiExecutionCreationResponse} instance. - */ - @Nonnull public AiExecutionStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiExecutionCreationResponse} instance. + */ + @Nonnull + public AiExecutionStatus getStatus() { return status; } /** * Set the status of this {@link AiExecutionCreationResponse} instance. * - * @param status The status of this {@link AiExecutionCreationResponse} + * @param status The status of this {@link AiExecutionCreationResponse} */ - public void setStatus( @Nonnull final AiExecutionStatus status) { + public void setStatus(@Nonnull final AiExecutionStatus status) { this.status = status; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -152,32 +150,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionCreationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionCreationResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -187,10 +187,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutionCreationResponse aiExecutionCreationResponse = (AiExecutionCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionCreationResponse.id) && - Objects.equals(this.message, aiExecutionCreationResponse.message) && - Objects.equals(this.status, aiExecutionCreationResponse.status); + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionCreationResponse.id) + && Objects.equals(this.message, aiExecutionCreationResponse.message) + && Objects.equals(this.status, aiExecutionCreationResponse.status); } @Override @@ -199,20 +200,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -221,36 +224,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionCreationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiExecutionCreationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionCreationResponse} instance. - * - * @param id Generic ID - * @return The AiExecutionCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionCreationResponse} instance. - * - * @param message Message - * @return The AiExecutionCreationResponse instance. - */ - AiExecutionCreationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionCreationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionCreationResponse} instance. + * + * @param message Message + * @return The AiExecutionCreationResponse instance. + */ + AiExecutionCreationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java index 44650972..e6682298 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionDeletionResponse - */ +/** AiExecutionDeletionResponse */ // CHECKSTYLE:OFF -public class AiExecutionDeletionResponse +public class AiExecutionDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,77 @@ public class AiExecutionDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionDeletionResponse() { } - - /** - * Set the id of this {@link AiExecutionDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionDeletionResponse} class - */ - @Nonnull public AiExecutionDeletionResponse id(@Nonnull final String id) { + + protected AiExecutionDeletionResponse() {} + + /** + * Set the id of this {@link AiExecutionDeletionResponse} instance and return the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionDeletionResponse} class + */ + @Nonnull + public AiExecutionDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionDeletionResponse} class - */ - @Nonnull public AiExecutionDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionDeletionResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionDeletionResponse} class + */ + @Nonnull + public AiExecutionDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +115,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionDeletionResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionDeletionResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +152,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutionDeletionResponse aiExecutionDeletionResponse = (AiExecutionDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionDeletionResponse.id) && - Objects.equals(this.message, aiExecutionDeletionResponse.message); + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionDeletionResponse.id) + && Objects.equals(this.message, aiExecutionDeletionResponse.message); } @Override @@ -166,19 +164,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +187,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiExecutionDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionDeletionResponse} instance. - * - * @param id Generic ID - * @return The AiExecutionDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionDeletionResponse} instance. - * - * @param message Message - * @return The AiExecutionDeletionResponse instance. - */ - AiExecutionDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionDeletionResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionDeletionResponse} instance. + * + * @param message Message + * @return The AiExecutionDeletionResponse instance. + */ + AiExecutionDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java index 5475c83e..35e02a26 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecution; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionList - */ +/** AiExecutionList */ // CHECKSTYLE:OFF -public class AiExecutionList +public class AiExecutionList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiExecutionList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionList() { } - - /** - * Set the count of this {@link AiExecutionList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiExecutionList} class - */ - @Nonnull public AiExecutionList count(@Nonnull final Integer count) { + + protected AiExecutionList() {} + + /** + * Set the count of this {@link AiExecutionList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiExecutionList} class + */ + @Nonnull + public AiExecutionList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiExecutionList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiExecutionList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiExecutionList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiExecutionList} instance and return the same instance. - * - * @param resources The resources of this {@link AiExecutionList} - * @return The same instance of this {@link AiExecutionList} class - */ - @Nonnull public AiExecutionList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiExecutionList} instance and return the same instance. + * + * @param resources The resources of this {@link AiExecutionList} + * @return The same instance of this {@link AiExecutionList} class + */ + @Nonnull + public AiExecutionList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiExecutionList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiExecutionList} */ - @Nonnull public AiExecutionList addResourcesItem( @Nonnull final AiExecution resourcesItem) { + @Nonnull + public AiExecutionList addResourcesItem(@Nonnull final AiExecution resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiExecutionList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiExecutionList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiExecutionList} instance. * - * @param resources The resources of this {@link AiExecutionList} + * @param resources The resources of this {@link AiExecutionList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutionList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiExecutionList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutionList aiExecutionList = (AiExecutionList) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionList.cloudSdkCustomFields) && - Objects.equals(this.count, aiExecutionList.count) && - Objects.equals(this.resources, aiExecutionList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiExecutionList.cloudSdkCustomFields) + && Objects.equals(this.count, aiExecutionList.count) + && Objects.equals(this.resources, aiExecutionList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiExecutionList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiExecutionList().count(count).resources(resources); - } + * Set the count of this {@link AiExecutionList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiExecutionList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiExecutionList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiExecutionList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiExecutionList} instance. + * + * @param resources The resources of this {@link AiExecutionList} + * @return The AiExecutionList instance. + */ + AiExecutionList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiExecutionList} instance. - * - * @param resources The resources of this {@link AiExecutionList} - * @return The AiExecutionList instance. - */ - AiExecutionList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiExecutionList} instance. - * - * @param resources The resources of this {@link AiExecutionList} - * @return The AiExecutionList instance. - */ - default AiExecutionList resources( @Nonnull final AiExecution... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiExecutionList} instance. + * + * @param resources The resources of this {@link AiExecutionList} + * @return The AiExecutionList instance. + */ + default AiExecutionList resources(@Nonnull final AiExecution... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java index 73399830..9319716f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,41 +12,31 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Request object for changing the target status of an execution (currently only STOPPED is supported) + * Request object for changing the target status of an execution (currently only STOPPED is + * supported) */ // CHECKSTYLE:OFF -public class AiExecutionModificationRequest +public class AiExecutionModificationRequest // CHECKSTYLE:ON { - /** - * Desired target status of the execution (currently only STOPPED is supported) - */ + /** Desired target status of the execution (currently only STOPPED is supported) */ public enum TargetStatusEnum { - /** - * The STOPPED option of this AiExecutionModificationRequest - */ + /** The STOPPED option of this AiExecutionModificationRequest */ STOPPED("STOPPED"); private String value; @@ -58,30 +46,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiExecutionModificationRequest - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiExecutionModificationRequest + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -94,41 +88,48 @@ public enum TargetStatusEnum { @JsonProperty("targetStatus") private TargetStatusEnum targetStatus; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionModificationRequest() { } - - /** - * Set the targetStatus of this {@link AiExecutionModificationRequest} instance and return the same instance. - * - * @param targetStatus Desired target status of the execution (currently only STOPPED is supported) - * @return The same instance of this {@link AiExecutionModificationRequest} class - */ - @Nonnull public AiExecutionModificationRequest targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + + protected AiExecutionModificationRequest() {} + + /** + * Set the targetStatus of this {@link AiExecutionModificationRequest} instance and return the + * same instance. + * + * @param targetStatus Desired target status of the execution (currently only STOPPED is + * supported) + * @return The same instance of this {@link AiExecutionModificationRequest} class + */ + @Nonnull + public AiExecutionModificationRequest targetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Desired target status of the execution (currently only STOPPED is supported) - * @return targetStatus The targetStatus of this {@link AiExecutionModificationRequest} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Desired target status of the execution (currently only STOPPED is supported) + * + * @return targetStatus The targetStatus of this {@link AiExecutionModificationRequest} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiExecutionModificationRequest} instance. * - * @param targetStatus Desired target status of the execution (currently only STOPPED is supported) + * @param targetStatus Desired target status of the execution (currently only STOPPED is + * supported) */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionModificationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -138,32 +139,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionModificationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionModificationRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionModificationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionModificationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionModificationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionModificationRequest} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -172,9 +176,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionModificationRequest aiExecutionModificationRequest = (AiExecutionModificationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionModificationRequest.cloudSdkCustomFields) && - Objects.equals(this.targetStatus, aiExecutionModificationRequest.targetStatus); + final AiExecutionModificationRequest aiExecutionModificationRequest = + (AiExecutionModificationRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionModificationRequest.cloudSdkCustomFields) + && Objects.equals(this.targetStatus, aiExecutionModificationRequest.targetStatus); } @Override @@ -183,18 +189,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionModificationRequest {\n"); sb.append(" targetStatus: ").append(toIndentedString(targetStatus)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,24 +211,23 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationRequest} instance with all required arguments. - */ - public static Builder create() { - return (targetStatus) -> new AiExecutionModificationRequest().targetStatus(targetStatus); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the targetStatus of this {@link AiExecutionModificationRequest} instance. - * - * @param targetStatus Desired target status of the execution (currently only STOPPED is supported) - * @return The AiExecutionModificationRequest instance. - */ - AiExecutionModificationRequest targetStatus( @Nonnull final TargetStatusEnum targetStatus); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionModificationRequest} instance with all required arguments. + */ + public static Builder create() { + return (targetStatus) -> new AiExecutionModificationRequest().targetStatus(targetStatus); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the targetStatus of this {@link AiExecutionModificationRequest} instance. + * + * @param targetStatus Desired target status of the execution (currently only STOPPED is + * supported) + * @return The AiExecutionModificationRequest instance. + */ + AiExecutionModificationRequest targetStatus(@Nonnull final TargetStatusEnum targetStatus); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java index a928a8b8..dc3adbf5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationRequestWithIdentifier.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,49 +12,37 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Request object for changing the target status of an execution (currently STOPPED and DELETED are supported) + * Request object for changing the target status of an execution (currently STOPPED and DELETED are + * supported) */ // CHECKSTYLE:OFF -public class AiExecutionModificationRequestWithIdentifier +public class AiExecutionModificationRequestWithIdentifier // CHECKSTYLE:ON { @JsonProperty("id") private String id; - /** - * Desired target status of the execution (currently STOPPED and DELETED are supported) - */ + /** Desired target status of the execution (currently STOPPED and DELETED are supported) */ public enum TargetStatusEnum { - /** - * The STOPPED option of this AiExecutionModificationRequestWithIdentifier - */ + /** The STOPPED option of this AiExecutionModificationRequestWithIdentifier */ STOPPED("STOPPED"), - - /** - * The DELETED option of this AiExecutionModificationRequestWithIdentifier - */ + + /** The DELETED option of this AiExecutionModificationRequestWithIdentifier */ DELETED("DELETED"); private String value; @@ -66,30 +52,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiExecutionModificationRequestWithIdentifier - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiExecutionModificationRequestWithIdentifier + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -102,69 +94,83 @@ public enum TargetStatusEnum { @JsonProperty("targetStatus") private TargetStatusEnum targetStatus; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionModificationRequestWithIdentifier() { } - /** - * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance and return the same instance. - * - * @param id ID of the execution - * @return The same instance of this {@link AiExecutionModificationRequestWithIdentifier} class - */ - @Nonnull public AiExecutionModificationRequestWithIdentifier id(@Nonnull final String id) { + protected AiExecutionModificationRequestWithIdentifier() {} + + /** + * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance and return the + * same instance. + * + * @param id ID of the execution + * @return The same instance of this {@link AiExecutionModificationRequestWithIdentifier} class + */ + @Nonnull + public AiExecutionModificationRequestWithIdentifier id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the execution - * @return id The id of this {@link AiExecutionModificationRequestWithIdentifier} instance. - */ - @Nonnull public String getId() { + /** + * ID of the execution + * + * @return id The id of this {@link AiExecutionModificationRequestWithIdentifier} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance. * - * @param id ID of the execution + * @param id ID of the execution */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance and return the same instance. - * - * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are supported) - * @return The same instance of this {@link AiExecutionModificationRequestWithIdentifier} class - */ - @Nonnull public AiExecutionModificationRequestWithIdentifier targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + /** + * Set the targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance and + * return the same instance. + * + * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are + * supported) + * @return The same instance of this {@link AiExecutionModificationRequestWithIdentifier} class + */ + @Nonnull + public AiExecutionModificationRequestWithIdentifier targetStatus( + @Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Desired target status of the execution (currently STOPPED and DELETED are supported) - * @return targetStatus The targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Desired target status of the execution (currently STOPPED and DELETED are supported) + * + * @return targetStatus The targetStatus of this {@link + * AiExecutionModificationRequestWithIdentifier} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance. * - * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are supported) + * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are + * supported) */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionModificationRequestWithIdentifier}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionModificationRequestWithIdentifier}. + * * @return The set of properties names */ @JsonIgnore @@ -174,32 +180,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionModificationRequestWithIdentifier} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiExecutionModificationRequestWithIdentifier} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionModificationRequestWithIdentifier has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionModificationRequestWithIdentifier has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionModificationRequestWithIdentifier} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionModificationRequestWithIdentifier} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -208,10 +217,15 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionModificationRequestWithIdentifier aiExecutionModificationRequestWithIdentifier = (AiExecutionModificationRequestWithIdentifier) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionModificationRequestWithIdentifier.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionModificationRequestWithIdentifier.id) && - Objects.equals(this.targetStatus, aiExecutionModificationRequestWithIdentifier.targetStatus); + final AiExecutionModificationRequestWithIdentifier + aiExecutionModificationRequestWithIdentifier = + (AiExecutionModificationRequestWithIdentifier) o; + return Objects.equals( + this.cloudSdkCustomFields, + aiExecutionModificationRequestWithIdentifier.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionModificationRequestWithIdentifier.id) + && Objects.equals( + this.targetStatus, aiExecutionModificationRequestWithIdentifier.targetStatus); } @Override @@ -220,19 +234,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionModificationRequestWithIdentifier {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" targetStatus: ").append(toIndentedString(targetStatus)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -241,36 +257,37 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionModificationRequestWithIdentifier} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (targetStatus) -> + new AiExecutionModificationRequestWithIdentifier().id(id).targetStatus(targetStatus); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationRequestWithIdentifier} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (targetStatus) -> new AiExecutionModificationRequestWithIdentifier().id(id).targetStatus(targetStatus); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance. - * - * @param id ID of the execution - * @return The AiExecutionModificationRequestWithIdentifier builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance. - * - * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are supported) - * @return The AiExecutionModificationRequestWithIdentifier instance. - */ - AiExecutionModificationRequestWithIdentifier targetStatus( @Nonnull final TargetStatusEnum targetStatus); - } + * Set the id of this {@link AiExecutionModificationRequestWithIdentifier} instance. + * + * @param id ID of the execution + * @return The AiExecutionModificationRequestWithIdentifier builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the targetStatus of this {@link AiExecutionModificationRequestWithIdentifier} instance. + * + * @param targetStatus Desired target status of the execution (currently STOPPED and DELETED are + * supported) + * @return The AiExecutionModificationRequestWithIdentifier instance. + */ + AiExecutionModificationRequestWithIdentifier targetStatus( + @Nonnull final TargetStatusEnum targetStatus); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java index 9f1f3d32..d2d5f004 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionModificationResponse - */ +/** AiExecutionModificationResponse */ // CHECKSTYLE:OFF -public class AiExecutionModificationResponse +public class AiExecutionModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,78 @@ public class AiExecutionModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionModificationResponse() { } - - /** - * Set the id of this {@link AiExecutionModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionModificationResponse} class - */ - @Nonnull public AiExecutionModificationResponse id(@Nonnull final String id) { + + protected AiExecutionModificationResponse() {} + + /** + * Set the id of this {@link AiExecutionModificationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionModificationResponse} class + */ + @Nonnull + public AiExecutionModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionModificationResponse} class - */ - @Nonnull public AiExecutionModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionModificationResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionModificationResponse} class + */ + @Nonnull + public AiExecutionModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionModificationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionModificationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionModificationResponse} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionModificationResponse aiExecutionModificationResponse = (AiExecutionModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionModificationResponse.id) && - Objects.equals(this.message, aiExecutionModificationResponse.message); + final AiExecutionModificationResponse aiExecutionModificationResponse = + (AiExecutionModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionModificationResponse.id) + && Objects.equals(this.message, aiExecutionModificationResponse.message); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +190,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiExecutionModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionModificationResponse} instance. - * - * @param id Generic ID - * @return The AiExecutionModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionModificationResponse} instance. - * - * @param message Message - * @return The AiExecutionModificationResponse instance. - */ - AiExecutionModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionModificationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionModificationResponse} instance. + * + * @param message Message + * @return The AiExecutionModificationResponse instance. + */ + AiExecutionModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java index 4d4bc6bf..8e80466e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionModificationResponseListInner.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiApiError; -import com.sap.ai.sdk.core.client.model.AiApiErrorWithId; -import com.sap.ai.sdk.core.client.model.AiExecutionModificationResponse; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionModificationResponseListInner - */ +/** AiExecutionModificationResponseListInner */ // CHECKSTYLE:OFF -public class AiExecutionModificationResponseListInner +public class AiExecutionModificationResponseListInner // CHECKSTYLE:ON { @JsonProperty("id") @@ -54,97 +38,111 @@ public class AiExecutionModificationResponseListInner @JsonProperty("error") private AiApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionModificationResponseListInner() { } - /** - * Set the id of this {@link AiExecutionModificationResponseListInner} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionModificationResponseListInner} class - */ - @Nonnull public AiExecutionModificationResponseListInner id(@Nonnull final String id) { + protected AiExecutionModificationResponseListInner() {} + + /** + * Set the id of this {@link AiExecutionModificationResponseListInner} instance and return the + * same instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionModificationResponseListInner} class + */ + @Nonnull + public AiExecutionModificationResponseListInner id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionModificationResponseListInner} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionModificationResponseListInner} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionModificationResponseListInner} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionModificationResponseListInner} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionModificationResponseListInner} class - */ - @Nonnull public AiExecutionModificationResponseListInner message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionModificationResponseListInner} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionModificationResponseListInner} class + */ + @Nonnull + public AiExecutionModificationResponseListInner message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionModificationResponseListInner} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionModificationResponseListInner} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionModificationResponseListInner} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the error of this {@link AiExecutionModificationResponseListInner} instance and return the same instance. - * - * @param error The error of this {@link AiExecutionModificationResponseListInner} - * @return The same instance of this {@link AiExecutionModificationResponseListInner} class - */ - @Nonnull public AiExecutionModificationResponseListInner error(@Nonnull final AiApiError error) { + /** + * Set the error of this {@link AiExecutionModificationResponseListInner} instance and return the + * same instance. + * + * @param error The error of this {@link AiExecutionModificationResponseListInner} + * @return The same instance of this {@link AiExecutionModificationResponseListInner} class + */ + @Nonnull + public AiExecutionModificationResponseListInner error(@Nonnull final AiApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link AiExecutionModificationResponseListInner} instance. - */ - @Nonnull public AiApiError getError() { + /** + * Get error + * + * @return error The error of this {@link AiExecutionModificationResponseListInner} instance. + */ + @Nonnull + public AiApiError getError() { return error; } /** * Set the error of this {@link AiExecutionModificationResponseListInner} instance. * - * @param error The error of this {@link AiExecutionModificationResponseListInner} + * @param error The error of this {@link AiExecutionModificationResponseListInner} */ - public void setError( @Nonnull final AiApiError error) { + public void setError(@Nonnull final AiApiError error) { this.error = error; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionModificationResponseListInner}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionModificationResponseListInner}. + * * @return The set of properties names */ @JsonIgnore @@ -154,32 +152,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionModificationResponseListInner} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiExecutionModificationResponseListInner} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionModificationResponseListInner has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionModificationResponseListInner has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionModificationResponseListInner} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionModificationResponseListInner} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -188,11 +189,14 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionModificationResponseListInner aiExecutionModificationResponseListInner = (AiExecutionModificationResponseListInner) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionModificationResponseListInner.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionModificationResponseListInner.id) && - Objects.equals(this.message, aiExecutionModificationResponseListInner.message) && - Objects.equals(this.error, aiExecutionModificationResponseListInner.error); + final AiExecutionModificationResponseListInner aiExecutionModificationResponseListInner = + (AiExecutionModificationResponseListInner) o; + return Objects.equals( + this.cloudSdkCustomFields, + aiExecutionModificationResponseListInner.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionModificationResponseListInner.id) + && Objects.equals(this.message, aiExecutionModificationResponseListInner.message) + && Objects.equals(this.error, aiExecutionModificationResponseListInner.error); } @Override @@ -201,20 +205,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionModificationResponseListInner {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -223,48 +229,47 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionModificationResponseListInner} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> + (error) -> + new AiExecutionModificationResponseListInner().id(id).message(message).error(error); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionModificationResponseListInner} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> (error) -> new AiExecutionModificationResponseListInner().id(id).message(message).error(error); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionModificationResponseListInner} instance. - * - * @param id Generic ID - * @return The AiExecutionModificationResponseListInner builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionModificationResponseListInner} instance. - * - * @param message Message - * @return The AiExecutionModificationResponseListInner builder. - */ - Builder2 message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionModificationResponseListInner} instance. + * + * @param id Generic ID + * @return The AiExecutionModificationResponseListInner builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the error of this {@link AiExecutionModificationResponseListInner} instance. - * - * @param error The error of this {@link AiExecutionModificationResponseListInner} - * @return The AiExecutionModificationResponseListInner instance. - */ - AiExecutionModificationResponseListInner error( @Nonnull final AiApiError error); - } + * Set the message of this {@link AiExecutionModificationResponseListInner} instance. + * + * @param message Message + * @return The AiExecutionModificationResponseListInner builder. + */ + Builder2 message(@Nonnull final String message); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the error of this {@link AiExecutionModificationResponseListInner} instance. + * + * @param error The error of this {@link AiExecutionModificationResponseListInner} + * @return The AiExecutionModificationResponseListInner instance. + */ + AiExecutionModificationResponseListInner error(@Nonnull final AiApiError error); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java index e556ae4b..40722200 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionResponseWithDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,26 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiArtifact; -import com.sap.ai.sdk.core.client.model.AiExecutionStatus; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Execution that may generate artifacts - */ +/** Execution that may generate artifacts */ // CHECKSTYLE:OFF -public class AiExecutionResponseWithDetails +public class AiExecutionResponseWithDetails // CHECKSTYLE:ON { @JsonProperty("id") @@ -60,28 +46,18 @@ public class AiExecutionResponseWithDetails @JsonProperty("scenarioId") private String scenarioId; - /** - * Target status of the execution - */ + /** Target status of the execution */ public enum TargetStatusEnum { - /** - * The COMPLETED option of this AiExecutionResponseWithDetails - */ + /** The COMPLETED option of this AiExecutionResponseWithDetails */ COMPLETED("COMPLETED"), - - /** - * The RUNNING option of this AiExecutionResponseWithDetails - */ + + /** The RUNNING option of this AiExecutionResponseWithDetails */ RUNNING("RUNNING"), - - /** - * The STOPPED option of this AiExecutionResponseWithDetails - */ + + /** The STOPPED option of this AiExecutionResponseWithDetails */ STOPPED("STOPPED"), - - /** - * The DELETED option of this AiExecutionResponseWithDetails - */ + + /** The DELETED option of this AiExecutionResponseWithDetails */ DELETED("DELETED"); private String value; @@ -91,30 +67,36 @@ public enum TargetStatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type AiExecutionResponseWithDetails - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type AiExecutionResponseWithDetails + */ @JsonCreator - @Nonnull public static TargetStatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TargetStatusEnum fromValue(@Nonnull final String value) { for (TargetStatusEnum b : TargetStatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -157,223 +139,261 @@ public enum TargetStatusEnum { @JsonProperty("statusDetails") private Object statusDetails; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionResponseWithDetails() { } - - /** - * Set the id of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param id ID of the execution - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails id(@Nonnull final String id) { + + protected AiExecutionResponseWithDetails() {} + + /** + * Set the id of this {@link AiExecutionResponseWithDetails} instance and return the same + * instance. + * + * @param id ID of the execution + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the execution - * @return id The id of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public String getId() { + /** + * ID of the execution + * + * @return id The id of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionResponseWithDetails} instance. * - * @param id ID of the execution + * @param id ID of the execution */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the configurationId of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiExecutionResponseWithDetails} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the configurationName of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param configurationName Name of the configuration - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails configurationName(@Nonnull final String configurationName) { + /** + * Set the configurationName of this {@link AiExecutionResponseWithDetails} instance and return + * the same instance. + * + * @param configurationName Name of the configuration + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails configurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; return this; } - /** - * Name of the configuration - * @return configurationName The configurationName of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public String getConfigurationName() { + /** + * Name of the configuration + * + * @return configurationName The configurationName of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public String getConfigurationName() { return configurationName; } /** * Set the configurationName of this {@link AiExecutionResponseWithDetails} instance. * - * @param configurationName Name of the configuration + * @param configurationName Name of the configuration */ - public void setConfigurationName( @Nonnull final String configurationName) { + public void setConfigurationName(@Nonnull final String configurationName) { this.configurationName = configurationName; } - /** - * Set the scenarioId of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiExecutionResponseWithDetails} instance and return the same + * instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiExecutionResponseWithDetails} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the targetStatus of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param targetStatus Target status of the execution - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails targetStatus(@Nonnull final TargetStatusEnum targetStatus) { + /** + * Set the targetStatus of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param targetStatus Target status of the execution + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails targetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; return this; } - /** - * Target status of the execution - * @return targetStatus The targetStatus of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public TargetStatusEnum getTargetStatus() { + /** + * Target status of the execution + * + * @return targetStatus The targetStatus of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public TargetStatusEnum getTargetStatus() { return targetStatus; } /** * Set the targetStatus of this {@link AiExecutionResponseWithDetails} instance. * - * @param targetStatus Target status of the execution + * @param targetStatus Target status of the execution */ - public void setTargetStatus( @Nonnull final TargetStatusEnum targetStatus) { + public void setTargetStatus(@Nonnull final TargetStatusEnum targetStatus) { this.targetStatus = targetStatus; } - /** - * Set the status of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param status The status of this {@link AiExecutionResponseWithDetails} - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails status(@Nonnull final AiExecutionStatus status) { + /** + * Set the status of this {@link AiExecutionResponseWithDetails} instance and return the same + * instance. + * + * @param status The status of this {@link AiExecutionResponseWithDetails} + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails status(@Nonnull final AiExecutionStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public AiExecutionStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public AiExecutionStatus getStatus() { return status; } /** * Set the status of this {@link AiExecutionResponseWithDetails} instance. * - * @param status The status of this {@link AiExecutionResponseWithDetails} + * @param status The status of this {@link AiExecutionResponseWithDetails} */ - public void setStatus( @Nonnull final AiExecutionStatus status) { + public void setStatus(@Nonnull final AiExecutionStatus status) { this.status = status; } - /** - * Set the statusMessage of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param statusMessage Execution status message - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param statusMessage Execution status message + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * Execution status message - * @return statusMessage The statusMessage of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * Execution status message + * + * @return statusMessage The statusMessage of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link AiExecutionResponseWithDetails} instance. * - * @param statusMessage Execution status message + * @param statusMessage Execution status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the outputArtifacts of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param outputArtifacts The outputArtifacts of this {@link AiExecutionResponseWithDetails} - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails outputArtifacts(@Nonnull final List outputArtifacts) { + /** + * Set the outputArtifacts of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param outputArtifacts The outputArtifacts of this {@link AiExecutionResponseWithDetails} + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails outputArtifacts( + @Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; return this; } + /** * Add one outputArtifacts instance to this {@link AiExecutionResponseWithDetails}. + * * @param outputArtifactsItem The outputArtifacts that should be added * @return The same instance of type {@link AiExecutionResponseWithDetails} */ - @Nonnull public AiExecutionResponseWithDetails addOutputArtifactsItem( @Nonnull final AiArtifact outputArtifactsItem) { + @Nonnull + public AiExecutionResponseWithDetails addOutputArtifactsItem( + @Nonnull final AiArtifact outputArtifactsItem) { if (this.outputArtifacts == null) { this.outputArtifacts = new ArrayList<>(); } @@ -381,221 +401,260 @@ public void setStatusMessage( @Nonnull final String statusMessage) { return this; } - /** - * Get outputArtifacts - * @return outputArtifacts The outputArtifacts of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public List getOutputArtifacts() { + /** + * Get outputArtifacts + * + * @return outputArtifacts The outputArtifacts of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public List getOutputArtifacts() { return outputArtifacts; } /** * Set the outputArtifacts of this {@link AiExecutionResponseWithDetails} instance. * - * @param outputArtifacts The outputArtifacts of this {@link AiExecutionResponseWithDetails} + * @param outputArtifacts The outputArtifacts of this {@link AiExecutionResponseWithDetails} */ - public void setOutputArtifacts( @Nonnull final List outputArtifacts) { + public void setOutputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; } - /** - * Set the executionScheduleId of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param executionScheduleId ID of the execution schedule - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails executionScheduleId(@Nonnull final String executionScheduleId) { + /** + * Set the executionScheduleId of this {@link AiExecutionResponseWithDetails} instance and return + * the same instance. + * + * @param executionScheduleId ID of the execution schedule + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails executionScheduleId( + @Nonnull final String executionScheduleId) { this.executionScheduleId = executionScheduleId; return this; } - /** - * ID of the execution schedule - * @return executionScheduleId The executionScheduleId of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public String getExecutionScheduleId() { + /** + * ID of the execution schedule + * + * @return executionScheduleId The executionScheduleId of this {@link + * AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public String getExecutionScheduleId() { return executionScheduleId; } /** * Set the executionScheduleId of this {@link AiExecutionResponseWithDetails} instance. * - * @param executionScheduleId ID of the execution schedule + * @param executionScheduleId ID of the execution schedule */ - public void setExecutionScheduleId( @Nonnull final String executionScheduleId) { + public void setExecutionScheduleId(@Nonnull final String executionScheduleId) { this.executionScheduleId = executionScheduleId; } - /** - * Set the createdAt of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiExecutionResponseWithDetails} instance and return the same + * instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiExecutionResponseWithDetails} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiExecutionResponseWithDetails} instance and return the same + * instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiExecutionResponseWithDetails} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } - /** - * Set the submissionTime of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param submissionTime Timestamp of job submitted - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails submissionTime(@Nonnull final OffsetDateTime submissionTime) { + /** + * Set the submissionTime of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param submissionTime Timestamp of job submitted + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails submissionTime( + @Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; return this; } - /** - * Timestamp of job submitted - * @return submissionTime The submissionTime of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getSubmissionTime() { + /** + * Timestamp of job submitted + * + * @return submissionTime The submissionTime of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public OffsetDateTime getSubmissionTime() { return submissionTime; } /** * Set the submissionTime of this {@link AiExecutionResponseWithDetails} instance. * - * @param submissionTime Timestamp of job submitted + * @param submissionTime Timestamp of job submitted */ - public void setSubmissionTime( @Nonnull final OffsetDateTime submissionTime) { + public void setSubmissionTime(@Nonnull final OffsetDateTime submissionTime) { this.submissionTime = submissionTime; } - /** - * Set the startTime of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param startTime Timestamp of job status changed to RUNNING - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails startTime(@Nonnull final OffsetDateTime startTime) { + /** + * Set the startTime of this {@link AiExecutionResponseWithDetails} instance and return the same + * instance. + * + * @param startTime Timestamp of job status changed to RUNNING + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails startTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; return this; } - /** - * Timestamp of job status changed to RUNNING - * @return startTime The startTime of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getStartTime() { + /** + * Timestamp of job status changed to RUNNING + * + * @return startTime The startTime of this {@link AiExecutionResponseWithDetails} instance. + */ + @Nonnull + public OffsetDateTime getStartTime() { return startTime; } /** * Set the startTime of this {@link AiExecutionResponseWithDetails} instance. * - * @param startTime Timestamp of job status changed to RUNNING + * @param startTime Timestamp of job status changed to RUNNING */ - public void setStartTime( @Nonnull final OffsetDateTime startTime) { + public void setStartTime(@Nonnull final OffsetDateTime startTime) { this.startTime = startTime; } - /** - * Set the completionTime of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails completionTime(@Nonnull final OffsetDateTime completionTime) { + /** + * Set the completionTime of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails completionTime( + @Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; return this; } - /** - * Timestamp of job status changed to COMPLETED/DEAD/STOPPED - * @return completionTime The completionTime of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public OffsetDateTime getCompletionTime() { + /** + * Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * + * @return completionTime The completionTime of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public OffsetDateTime getCompletionTime() { return completionTime; } /** * Set the completionTime of this {@link AiExecutionResponseWithDetails} instance. * - * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED + * @param completionTime Timestamp of job status changed to COMPLETED/DEAD/STOPPED */ - public void setCompletionTime( @Nonnull final OffsetDateTime completionTime) { + public void setCompletionTime(@Nonnull final OffsetDateTime completionTime) { this.completionTime = completionTime; } - /** - * Set the statusDetails of this {@link AiExecutionResponseWithDetails} instance and return the same instance. - * - * @param statusDetails Current status details of the execution - * @return The same instance of this {@link AiExecutionResponseWithDetails} class - */ - @Nonnull public AiExecutionResponseWithDetails statusDetails(@Nonnull final Object statusDetails) { + /** + * Set the statusDetails of this {@link AiExecutionResponseWithDetails} instance and return the + * same instance. + * + * @param statusDetails Current status details of the execution + * @return The same instance of this {@link AiExecutionResponseWithDetails} class + */ + @Nonnull + public AiExecutionResponseWithDetails statusDetails(@Nonnull final Object statusDetails) { this.statusDetails = statusDetails; return this; } - /** - * Current status details of the execution - * @return statusDetails The statusDetails of this {@link AiExecutionResponseWithDetails} instance. - */ - @Nonnull public Object getStatusDetails() { + /** + * Current status details of the execution + * + * @return statusDetails The statusDetails of this {@link AiExecutionResponseWithDetails} + * instance. + */ + @Nonnull + public Object getStatusDetails() { return statusDetails; } /** * Set the statusDetails of this {@link AiExecutionResponseWithDetails} instance. * - * @param statusDetails Current status details of the execution + * @param statusDetails Current status details of the execution */ - public void setStatusDetails( @Nonnull final Object statusDetails) { + public void setStatusDetails(@Nonnull final Object statusDetails) { this.statusDetails = statusDetails; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionResponseWithDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -605,32 +664,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionResponseWithDetails} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionResponseWithDetails} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionResponseWithDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionResponseWithDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionResponseWithDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionResponseWithDetails} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -639,32 +701,52 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionResponseWithDetails aiExecutionResponseWithDetails = (AiExecutionResponseWithDetails) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionResponseWithDetails.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionResponseWithDetails.id) && - Objects.equals(this.configurationId, aiExecutionResponseWithDetails.configurationId) && - Objects.equals(this.configurationName, aiExecutionResponseWithDetails.configurationName) && - Objects.equals(this.scenarioId, aiExecutionResponseWithDetails.scenarioId) && - Objects.equals(this.targetStatus, aiExecutionResponseWithDetails.targetStatus) && - Objects.equals(this.status, aiExecutionResponseWithDetails.status) && - Objects.equals(this.statusMessage, aiExecutionResponseWithDetails.statusMessage) && - Objects.equals(this.outputArtifacts, aiExecutionResponseWithDetails.outputArtifacts) && - Objects.equals(this.executionScheduleId, aiExecutionResponseWithDetails.executionScheduleId) && - Objects.equals(this.createdAt, aiExecutionResponseWithDetails.createdAt) && - Objects.equals(this.modifiedAt, aiExecutionResponseWithDetails.modifiedAt) && - Objects.equals(this.submissionTime, aiExecutionResponseWithDetails.submissionTime) && - Objects.equals(this.startTime, aiExecutionResponseWithDetails.startTime) && - Objects.equals(this.completionTime, aiExecutionResponseWithDetails.completionTime) && - Objects.equals(this.statusDetails, aiExecutionResponseWithDetails.statusDetails); + final AiExecutionResponseWithDetails aiExecutionResponseWithDetails = + (AiExecutionResponseWithDetails) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionResponseWithDetails.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionResponseWithDetails.id) + && Objects.equals(this.configurationId, aiExecutionResponseWithDetails.configurationId) + && Objects.equals(this.configurationName, aiExecutionResponseWithDetails.configurationName) + && Objects.equals(this.scenarioId, aiExecutionResponseWithDetails.scenarioId) + && Objects.equals(this.targetStatus, aiExecutionResponseWithDetails.targetStatus) + && Objects.equals(this.status, aiExecutionResponseWithDetails.status) + && Objects.equals(this.statusMessage, aiExecutionResponseWithDetails.statusMessage) + && Objects.equals(this.outputArtifacts, aiExecutionResponseWithDetails.outputArtifacts) + && Objects.equals( + this.executionScheduleId, aiExecutionResponseWithDetails.executionScheduleId) + && Objects.equals(this.createdAt, aiExecutionResponseWithDetails.createdAt) + && Objects.equals(this.modifiedAt, aiExecutionResponseWithDetails.modifiedAt) + && Objects.equals(this.submissionTime, aiExecutionResponseWithDetails.submissionTime) + && Objects.equals(this.startTime, aiExecutionResponseWithDetails.startTime) + && Objects.equals(this.completionTime, aiExecutionResponseWithDetails.completionTime) + && Objects.equals(this.statusDetails, aiExecutionResponseWithDetails.statusDetails); } @Override public int hashCode() { - return Objects.hash(id, configurationId, configurationName, scenarioId, targetStatus, status, statusMessage, outputArtifacts, executionScheduleId, createdAt, modifiedAt, submissionTime, startTime, completionTime, statusDetails, cloudSdkCustomFields); + return Objects.hash( + id, + configurationId, + configurationName, + scenarioId, + targetStatus, + status, + statusMessage, + outputArtifacts, + executionScheduleId, + createdAt, + modifiedAt, + submissionTime, + startTime, + completionTime, + statusDetails, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionResponseWithDetails {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -675,21 +757,24 @@ public int hashCode() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" outputArtifacts: ").append(toIndentedString(outputArtifacts)).append("\n"); - sb.append(" executionScheduleId: ").append(toIndentedString(executionScheduleId)).append("\n"); + sb.append(" executionScheduleId: ") + .append(toIndentedString(executionScheduleId)) + .append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" submissionTime: ").append(toIndentedString(submissionTime)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" completionTime: ").append(toIndentedString(completionTime)).append("\n"); sb.append(" statusDetails: ").append(toIndentedString(statusDetails)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -698,72 +783,76 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionResponseWithDetails} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (configurationId) -> + (status) -> + (createdAt) -> + (modifiedAt) -> + new AiExecutionResponseWithDetails() + .id(id) + .configurationId(configurationId) + .status(status) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionResponseWithDetails} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (configurationId) -> (status) -> (createdAt) -> (modifiedAt) -> new AiExecutionResponseWithDetails().id(id).configurationId(configurationId).status(status).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionResponseWithDetails} instance. - * - * @param id ID of the execution - * @return The AiExecutionResponseWithDetails builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the configurationId of this {@link AiExecutionResponseWithDetails} instance. - * - * @param configurationId ID of the configuration - * @return The AiExecutionResponseWithDetails builder. - */ - Builder2 configurationId( @Nonnull final String configurationId); - } + * Set the id of this {@link AiExecutionResponseWithDetails} instance. + * + * @param id ID of the execution + * @return The AiExecutionResponseWithDetails builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the status of this {@link AiExecutionResponseWithDetails} instance. - * - * @param status The status of this {@link AiExecutionResponseWithDetails} - * @return The AiExecutionResponseWithDetails builder. - */ - Builder3 status( @Nonnull final AiExecutionStatus status); - } + * Set the configurationId of this {@link AiExecutionResponseWithDetails} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecutionResponseWithDetails builder. + */ + Builder2 configurationId(@Nonnull final String configurationId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the createdAt of this {@link AiExecutionResponseWithDetails} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiExecutionResponseWithDetails builder. - */ - Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the status of this {@link AiExecutionResponseWithDetails} instance. + * + * @param status The status of this {@link AiExecutionResponseWithDetails} + * @return The AiExecutionResponseWithDetails builder. + */ + Builder3 status(@Nonnull final AiExecutionStatus status); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the modifiedAt of this {@link AiExecutionResponseWithDetails} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiExecutionResponseWithDetails instance. - */ - AiExecutionResponseWithDetails modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiExecutionResponseWithDetails} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecutionResponseWithDetails builder. + */ + Builder4 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiExecutionResponseWithDetails} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecutionResponseWithDetails instance. + */ + AiExecutionResponseWithDetails modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java index d0f9b753..9fb03de7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionSchedule.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutionScheduleStatus; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Data about execution schedule - */ +/** Data about execution schedule */ // CHECKSTYLE:OFF -public class AiExecutionSchedule +public class AiExecutionSchedule // CHECKSTYLE:ON { @JsonProperty("cron") @@ -71,265 +57,296 @@ public class AiExecutionSchedule @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionSchedule() { } - - /** - * Set the cron of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param cron Cron defining the schedule to run the executions. - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule cron(@Nonnull final String cron) { + + protected AiExecutionSchedule() {} + + /** + * Set the cron of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule cron(@Nonnull final String cron) { this.cron = cron; return this; } - /** - * Cron defining the schedule to run the executions. - * @return cron The cron of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public String getCron() { + /** + * Cron defining the schedule to run the executions. + * + * @return cron The cron of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public String getCron() { return cron; } /** * Set the cron of this {@link AiExecutionSchedule} instance. * - * @param cron Cron defining the schedule to run the executions. + * @param cron Cron defining the schedule to run the executions. */ - public void setCron( @Nonnull final String cron) { + public void setCron(@Nonnull final String cron) { this.cron = cron; } - /** - * Set the name of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param name Name of the execution schedule - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule name(@Nonnull final String name) { + /** + * Set the name of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param name Name of the execution schedule + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the execution schedule - * @return name The name of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public String getName() { + /** + * Name of the execution schedule + * + * @return name The name of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiExecutionSchedule} instance. * - * @param name Name of the execution schedule + * @param name Name of the execution schedule */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the configurationId of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiExecutionSchedule} instance and return the same + * instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiExecutionSchedule} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the start of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param start Timestamp, defining when the executions should start running periodically, defaults to now - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule start(@Nonnull final OffsetDateTime start) { + /** + * Set the start of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param start Timestamp, defining when the executions should start running periodically, + * defaults to now + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule start(@Nonnull final OffsetDateTime start) { this.start = start; return this; } - /** - * Timestamp, defining when the executions should start running periodically, defaults to now - * @return start The start of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public OffsetDateTime getStart() { + /** + * Timestamp, defining when the executions should start running periodically, defaults to now + * + * @return start The start of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public OffsetDateTime getStart() { return start; } /** * Set the start of this {@link AiExecutionSchedule} instance. * - * @param start Timestamp, defining when the executions should start running periodically, defaults to now + * @param start Timestamp, defining when the executions should start running periodically, + * defaults to now */ - public void setStart( @Nonnull final OffsetDateTime start) { + public void setStart(@Nonnull final OffsetDateTime start) { this.start = start; } - /** - * Set the end of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param end Timestamp, defining when the executions should stop running - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule end(@Nonnull final OffsetDateTime end) { + /** + * Set the end of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param end Timestamp, defining when the executions should stop running + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule end(@Nonnull final OffsetDateTime end) { this.end = end; return this; } - /** - * Timestamp, defining when the executions should stop running - * @return end The end of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public OffsetDateTime getEnd() { + /** + * Timestamp, defining when the executions should stop running + * + * @return end The end of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public OffsetDateTime getEnd() { return end; } /** * Set the end of this {@link AiExecutionSchedule} instance. * - * @param end Timestamp, defining when the executions should stop running + * @param end Timestamp, defining when the executions should stop running */ - public void setEnd( @Nonnull final OffsetDateTime end) { + public void setEnd(@Nonnull final OffsetDateTime end) { this.end = end; } - /** - * Set the id of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param id ID of the execution schedule - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule id(@Nonnull final String id) { + /** + * Set the id of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param id ID of the execution schedule + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the execution schedule - * @return id The id of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public String getId() { + /** + * ID of the execution schedule + * + * @return id The id of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionSchedule} instance. * - * @param id ID of the execution schedule + * @param id ID of the execution schedule */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the status of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param status The status of this {@link AiExecutionSchedule} - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule status(@Nonnull final AiExecutionScheduleStatus status) { + /** + * Set the status of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param status The status of this {@link AiExecutionSchedule} + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule status(@Nonnull final AiExecutionScheduleStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public AiExecutionScheduleStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public AiExecutionScheduleStatus getStatus() { return status; } /** * Set the status of this {@link AiExecutionSchedule} instance. * - * @param status The status of this {@link AiExecutionSchedule} + * @param status The status of this {@link AiExecutionSchedule} */ - public void setStatus( @Nonnull final AiExecutionScheduleStatus status) { + public void setStatus(@Nonnull final AiExecutionScheduleStatus status) { this.status = status; } - /** - * Set the createdAt of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiExecutionSchedule} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiExecutionSchedule} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiExecutionSchedule} class - */ - @Nonnull public AiExecutionSchedule modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiExecutionSchedule} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiExecutionSchedule} class + */ + @Nonnull + public AiExecutionSchedule modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiExecutionSchedule} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiExecutionSchedule} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiExecutionSchedule} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionSchedule}. + * * @return The set of properties names */ @JsonIgnore @@ -340,31 +357,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutionSchedule} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionSchedule has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionSchedule has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionSchedule} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionSchedule} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -374,25 +392,36 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutionSchedule aiExecutionSchedule = (AiExecutionSchedule) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionSchedule.cloudSdkCustomFields) && - Objects.equals(this.cron, aiExecutionSchedule.cron) && - Objects.equals(this.name, aiExecutionSchedule.name) && - Objects.equals(this.configurationId, aiExecutionSchedule.configurationId) && - Objects.equals(this.start, aiExecutionSchedule.start) && - Objects.equals(this.end, aiExecutionSchedule.end) && - Objects.equals(this.id, aiExecutionSchedule.id) && - Objects.equals(this.status, aiExecutionSchedule.status) && - Objects.equals(this.createdAt, aiExecutionSchedule.createdAt) && - Objects.equals(this.modifiedAt, aiExecutionSchedule.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, aiExecutionSchedule.cloudSdkCustomFields) + && Objects.equals(this.cron, aiExecutionSchedule.cron) + && Objects.equals(this.name, aiExecutionSchedule.name) + && Objects.equals(this.configurationId, aiExecutionSchedule.configurationId) + && Objects.equals(this.start, aiExecutionSchedule.start) + && Objects.equals(this.end, aiExecutionSchedule.end) + && Objects.equals(this.id, aiExecutionSchedule.id) + && Objects.equals(this.status, aiExecutionSchedule.status) + && Objects.equals(this.createdAt, aiExecutionSchedule.createdAt) + && Objects.equals(this.modifiedAt, aiExecutionSchedule.modifiedAt); } @Override public int hashCode() { - return Objects.hash(cron, name, configurationId, start, end, id, status, createdAt, modifiedAt, cloudSdkCustomFields); + return Objects.hash( + cron, + name, + configurationId, + start, + end, + id, + status, + createdAt, + modifiedAt, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionSchedule {\n"); sb.append(" cron: ").append(toIndentedString(cron)).append("\n"); @@ -404,14 +433,15 @@ public int hashCode() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -420,72 +450,76 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionSchedule} + * instance with all required arguments. + */ + public static Builder create() { + return (cron) -> + (name) -> + (configurationId) -> + (createdAt) -> + (modifiedAt) -> + new AiExecutionSchedule() + .cron(cron) + .name(name) + .configurationId(configurationId) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionSchedule} instance with all required arguments. - */ - public static Builder create() { - return (cron) -> (name) -> (configurationId) -> (createdAt) -> (modifiedAt) -> new AiExecutionSchedule().cron(cron).name(name).configurationId(configurationId).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the cron of this {@link AiExecutionSchedule} instance. - * - * @param cron Cron defining the schedule to run the executions. - * @return The AiExecutionSchedule builder. - */ - Builder1 cron( @Nonnull final String cron); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the name of this {@link AiExecutionSchedule} instance. - * - * @param name Name of the execution schedule - * @return The AiExecutionSchedule builder. - */ - Builder2 name( @Nonnull final String name); - } + * Set the cron of this {@link AiExecutionSchedule} instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The AiExecutionSchedule builder. + */ + Builder1 cron(@Nonnull final String cron); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the configurationId of this {@link AiExecutionSchedule} instance. - * - * @param configurationId ID of the configuration - * @return The AiExecutionSchedule builder. - */ - Builder3 configurationId( @Nonnull final String configurationId); - } + * Set the name of this {@link AiExecutionSchedule} instance. + * + * @param name Name of the execution schedule + * @return The AiExecutionSchedule builder. + */ + Builder2 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the createdAt of this {@link AiExecutionSchedule} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiExecutionSchedule builder. - */ - Builder4 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the configurationId of this {@link AiExecutionSchedule} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecutionSchedule builder. + */ + Builder3 configurationId(@Nonnull final String configurationId); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the modifiedAt of this {@link AiExecutionSchedule} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiExecutionSchedule instance. - */ - AiExecutionSchedule modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiExecutionSchedule} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiExecutionSchedule builder. + */ + Builder4 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the modifiedAt of this {@link AiExecutionSchedule} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiExecutionSchedule instance. + */ + AiExecutionSchedule modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java index 83a7b715..068c5267 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Start and end an execution schedule. - */ +/** Start and end an execution schedule. */ // CHECKSTYLE:OFF -public class AiExecutionScheduleCreationData +public class AiExecutionScheduleCreationData // CHECKSTYLE:ON { @JsonProperty("cron") @@ -58,153 +45,177 @@ public class AiExecutionScheduleCreationData @JsonProperty("end") private OffsetDateTime end; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionScheduleCreationData() { } - - /** - * Set the cron of this {@link AiExecutionScheduleCreationData} instance and return the same instance. - * - * @param cron Cron defining the schedule to run the executions. - * @return The same instance of this {@link AiExecutionScheduleCreationData} class - */ - @Nonnull public AiExecutionScheduleCreationData cron(@Nonnull final String cron) { + + protected AiExecutionScheduleCreationData() {} + + /** + * Set the cron of this {@link AiExecutionScheduleCreationData} instance and return the same + * instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The same instance of this {@link AiExecutionScheduleCreationData} class + */ + @Nonnull + public AiExecutionScheduleCreationData cron(@Nonnull final String cron) { this.cron = cron; return this; } - /** - * Cron defining the schedule to run the executions. - * @return cron The cron of this {@link AiExecutionScheduleCreationData} instance. - */ - @Nonnull public String getCron() { + /** + * Cron defining the schedule to run the executions. + * + * @return cron The cron of this {@link AiExecutionScheduleCreationData} instance. + */ + @Nonnull + public String getCron() { return cron; } /** * Set the cron of this {@link AiExecutionScheduleCreationData} instance. * - * @param cron Cron defining the schedule to run the executions. + * @param cron Cron defining the schedule to run the executions. */ - public void setCron( @Nonnull final String cron) { + public void setCron(@Nonnull final String cron) { this.cron = cron; } - /** - * Set the name of this {@link AiExecutionScheduleCreationData} instance and return the same instance. - * - * @param name Name of the execution schedule - * @return The same instance of this {@link AiExecutionScheduleCreationData} class - */ - @Nonnull public AiExecutionScheduleCreationData name(@Nonnull final String name) { + /** + * Set the name of this {@link AiExecutionScheduleCreationData} instance and return the same + * instance. + * + * @param name Name of the execution schedule + * @return The same instance of this {@link AiExecutionScheduleCreationData} class + */ + @Nonnull + public AiExecutionScheduleCreationData name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the execution schedule - * @return name The name of this {@link AiExecutionScheduleCreationData} instance. - */ - @Nonnull public String getName() { + /** + * Name of the execution schedule + * + * @return name The name of this {@link AiExecutionScheduleCreationData} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiExecutionScheduleCreationData} instance. * - * @param name Name of the execution schedule + * @param name Name of the execution schedule */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the configurationId of this {@link AiExecutionScheduleCreationData} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiExecutionScheduleCreationData} class - */ - @Nonnull public AiExecutionScheduleCreationData configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiExecutionScheduleCreationData} instance and return the + * same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiExecutionScheduleCreationData} class + */ + @Nonnull + public AiExecutionScheduleCreationData configurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiExecutionScheduleCreationData} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link AiExecutionScheduleCreationData} + * instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiExecutionScheduleCreationData} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the start of this {@link AiExecutionScheduleCreationData} instance and return the same instance. - * - * @param start Timestamp, defining when the executions should start running periodically, defaults to now - * @return The same instance of this {@link AiExecutionScheduleCreationData} class - */ - @Nonnull public AiExecutionScheduleCreationData start(@Nonnull final OffsetDateTime start) { + /** + * Set the start of this {@link AiExecutionScheduleCreationData} instance and return the same + * instance. + * + * @param start Timestamp, defining when the executions should start running periodically, + * defaults to now + * @return The same instance of this {@link AiExecutionScheduleCreationData} class + */ + @Nonnull + public AiExecutionScheduleCreationData start(@Nonnull final OffsetDateTime start) { this.start = start; return this; } - /** - * Timestamp, defining when the executions should start running periodically, defaults to now - * @return start The start of this {@link AiExecutionScheduleCreationData} instance. - */ - @Nonnull public OffsetDateTime getStart() { + /** + * Timestamp, defining when the executions should start running periodically, defaults to now + * + * @return start The start of this {@link AiExecutionScheduleCreationData} instance. + */ + @Nonnull + public OffsetDateTime getStart() { return start; } /** * Set the start of this {@link AiExecutionScheduleCreationData} instance. * - * @param start Timestamp, defining when the executions should start running periodically, defaults to now + * @param start Timestamp, defining when the executions should start running periodically, + * defaults to now */ - public void setStart( @Nonnull final OffsetDateTime start) { + public void setStart(@Nonnull final OffsetDateTime start) { this.start = start; } - /** - * Set the end of this {@link AiExecutionScheduleCreationData} instance and return the same instance. - * - * @param end Timestamp, defining when the executions should stop running - * @return The same instance of this {@link AiExecutionScheduleCreationData} class - */ - @Nonnull public AiExecutionScheduleCreationData end(@Nonnull final OffsetDateTime end) { + /** + * Set the end of this {@link AiExecutionScheduleCreationData} instance and return the same + * instance. + * + * @param end Timestamp, defining when the executions should stop running + * @return The same instance of this {@link AiExecutionScheduleCreationData} class + */ + @Nonnull + public AiExecutionScheduleCreationData end(@Nonnull final OffsetDateTime end) { this.end = end; return this; } - /** - * Timestamp, defining when the executions should stop running - * @return end The end of this {@link AiExecutionScheduleCreationData} instance. - */ - @Nonnull public OffsetDateTime getEnd() { + /** + * Timestamp, defining when the executions should stop running + * + * @return end The end of this {@link AiExecutionScheduleCreationData} instance. + */ + @Nonnull + public OffsetDateTime getEnd() { return end; } /** * Set the end of this {@link AiExecutionScheduleCreationData} instance. * - * @param end Timestamp, defining when the executions should stop running + * @param end Timestamp, defining when the executions should stop running */ - public void setEnd( @Nonnull final OffsetDateTime end) { + public void setEnd(@Nonnull final OffsetDateTime end) { this.end = end; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionScheduleCreationData}. + * * @return The set of properties names */ @JsonIgnore @@ -214,32 +225,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionScheduleCreationData} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionScheduleCreationData} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionScheduleCreationData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionScheduleCreationData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionScheduleCreationData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionScheduleCreationData} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,13 +262,15 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionScheduleCreationData aiExecutionScheduleCreationData = (AiExecutionScheduleCreationData) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleCreationData.cloudSdkCustomFields) && - Objects.equals(this.cron, aiExecutionScheduleCreationData.cron) && - Objects.equals(this.name, aiExecutionScheduleCreationData.name) && - Objects.equals(this.configurationId, aiExecutionScheduleCreationData.configurationId) && - Objects.equals(this.start, aiExecutionScheduleCreationData.start) && - Objects.equals(this.end, aiExecutionScheduleCreationData.end); + final AiExecutionScheduleCreationData aiExecutionScheduleCreationData = + (AiExecutionScheduleCreationData) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionScheduleCreationData.cloudSdkCustomFields) + && Objects.equals(this.cron, aiExecutionScheduleCreationData.cron) + && Objects.equals(this.name, aiExecutionScheduleCreationData.name) + && Objects.equals(this.configurationId, aiExecutionScheduleCreationData.configurationId) + && Objects.equals(this.start, aiExecutionScheduleCreationData.start) + && Objects.equals(this.end, aiExecutionScheduleCreationData.end); } @Override @@ -263,7 +279,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionScheduleCreationData {\n"); sb.append(" cron: ").append(toIndentedString(cron)).append("\n"); @@ -271,14 +288,15 @@ public int hashCode() { sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" end: ").append(toIndentedString(end)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -287,48 +305,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionScheduleCreationData} instance with all required arguments. + */ + public static Builder create() { + return (cron) -> + (name) -> + (configurationId) -> + new AiExecutionScheduleCreationData() + .cron(cron) + .name(name) + .configurationId(configurationId); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleCreationData} instance with all required arguments. - */ - public static Builder create() { - return (cron) -> (name) -> (configurationId) -> new AiExecutionScheduleCreationData().cron(cron).name(name).configurationId(configurationId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the cron of this {@link AiExecutionScheduleCreationData} instance. - * - * @param cron Cron defining the schedule to run the executions. - * @return The AiExecutionScheduleCreationData builder. - */ - Builder1 cron( @Nonnull final String cron); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the name of this {@link AiExecutionScheduleCreationData} instance. - * - * @param name Name of the execution schedule - * @return The AiExecutionScheduleCreationData builder. - */ - Builder2 name( @Nonnull final String name); - } + * Set the cron of this {@link AiExecutionScheduleCreationData} instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The AiExecutionScheduleCreationData builder. + */ + Builder1 cron(@Nonnull final String cron); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the configurationId of this {@link AiExecutionScheduleCreationData} instance. - * - * @param configurationId ID of the configuration - * @return The AiExecutionScheduleCreationData instance. - */ - AiExecutionScheduleCreationData configurationId( @Nonnull final String configurationId); - } + * Set the name of this {@link AiExecutionScheduleCreationData} instance. + * + * @param name Name of the execution schedule + * @return The AiExecutionScheduleCreationData builder. + */ + Builder2 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the configurationId of this {@link AiExecutionScheduleCreationData} instance. + * + * @param configurationId ID of the configuration + * @return The AiExecutionScheduleCreationData instance. + */ + AiExecutionScheduleCreationData configurationId(@Nonnull final String configurationId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java index e67b6fad..b6e0ed36 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionScheduleCreationResponse - */ +/** AiExecutionScheduleCreationResponse */ // CHECKSTYLE:OFF -public class AiExecutionScheduleCreationResponse +public class AiExecutionScheduleCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class AiExecutionScheduleCreationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionScheduleCreationResponse() { } - - /** - * Set the id of this {@link AiExecutionScheduleCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionScheduleCreationResponse} class - */ - @Nonnull public AiExecutionScheduleCreationResponse id(@Nonnull final String id) { + + protected AiExecutionScheduleCreationResponse() {} + + /** + * Set the id of this {@link AiExecutionScheduleCreationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionScheduleCreationResponse} class + */ + @Nonnull + public AiExecutionScheduleCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionScheduleCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionScheduleCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionScheduleCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionScheduleCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionScheduleCreationResponse} class - */ - @Nonnull public AiExecutionScheduleCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionScheduleCreationResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionScheduleCreationResponse} class + */ + @Nonnull + public AiExecutionScheduleCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionScheduleCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionScheduleCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionScheduleCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionScheduleCreationResponse}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionScheduleCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionScheduleCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionScheduleCreationResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionScheduleCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionScheduleCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionScheduleCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionScheduleCreationResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionScheduleCreationResponse aiExecutionScheduleCreationResponse = (AiExecutionScheduleCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionScheduleCreationResponse.id) && - Objects.equals(this.message, aiExecutionScheduleCreationResponse.message); + final AiExecutionScheduleCreationResponse aiExecutionScheduleCreationResponse = + (AiExecutionScheduleCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionScheduleCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionScheduleCreationResponse.id) + && Objects.equals(this.message, aiExecutionScheduleCreationResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionScheduleCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionScheduleCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionScheduleCreationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiExecutionScheduleCreationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionScheduleCreationResponse} instance. - * - * @param id Generic ID - * @return The AiExecutionScheduleCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionScheduleCreationResponse} instance. - * - * @param message Message - * @return The AiExecutionScheduleCreationResponse instance. - */ - AiExecutionScheduleCreationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionScheduleCreationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionScheduleCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionScheduleCreationResponse} instance. + * + * @param message Message + * @return The AiExecutionScheduleCreationResponse instance. + */ + AiExecutionScheduleCreationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java index 265a3b52..53d80efc 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionScheduleDeletionResponse - */ +/** AiExecutionScheduleDeletionResponse */ // CHECKSTYLE:OFF -public class AiExecutionScheduleDeletionResponse +public class AiExecutionScheduleDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class AiExecutionScheduleDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionScheduleDeletionResponse() { } - - /** - * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionScheduleDeletionResponse} class - */ - @Nonnull public AiExecutionScheduleDeletionResponse id(@Nonnull final String id) { + + protected AiExecutionScheduleDeletionResponse() {} + + /** + * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionScheduleDeletionResponse} class + */ + @Nonnull + public AiExecutionScheduleDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionScheduleDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionScheduleDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionScheduleDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionScheduleDeletionResponse} class - */ - @Nonnull public AiExecutionScheduleDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionScheduleDeletionResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionScheduleDeletionResponse} class + */ + @Nonnull + public AiExecutionScheduleDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionScheduleDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionScheduleDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionScheduleDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionScheduleDeletionResponse}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionScheduleDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionScheduleDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiExecutionScheduleDeletionResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionScheduleDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionScheduleDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionScheduleDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionScheduleDeletionResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionScheduleDeletionResponse aiExecutionScheduleDeletionResponse = (AiExecutionScheduleDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionScheduleDeletionResponse.id) && - Objects.equals(this.message, aiExecutionScheduleDeletionResponse.message); + final AiExecutionScheduleDeletionResponse aiExecutionScheduleDeletionResponse = + (AiExecutionScheduleDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionScheduleDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionScheduleDeletionResponse.id) + && Objects.equals(this.message, aiExecutionScheduleDeletionResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionScheduleDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionScheduleDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new AiExecutionScheduleDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiExecutionScheduleDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance. - * - * @param id Generic ID - * @return The AiExecutionScheduleDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionScheduleDeletionResponse} instance. - * - * @param message Message - * @return The AiExecutionScheduleDeletionResponse instance. - */ - AiExecutionScheduleDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionScheduleDeletionResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionScheduleDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionScheduleDeletionResponse} instance. + * + * @param message Message + * @return The AiExecutionScheduleDeletionResponse instance. + */ + AiExecutionScheduleDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java index d13e48ee..07330e35 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutionSchedule; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionScheduleList - */ +/** AiExecutionScheduleList */ // CHECKSTYLE:OFF -public class AiExecutionScheduleList +public class AiExecutionScheduleList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,64 @@ public class AiExecutionScheduleList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionScheduleList() { } - - /** - * Set the count of this {@link AiExecutionScheduleList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiExecutionScheduleList} class - */ - @Nonnull public AiExecutionScheduleList count(@Nonnull final Integer count) { + + protected AiExecutionScheduleList() {} + + /** + * Set the count of this {@link AiExecutionScheduleList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiExecutionScheduleList} class + */ + @Nonnull + public AiExecutionScheduleList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiExecutionScheduleList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiExecutionScheduleList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiExecutionScheduleList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiExecutionScheduleList} instance and return the same instance. - * - * @param resources The resources of this {@link AiExecutionScheduleList} - * @return The same instance of this {@link AiExecutionScheduleList} class - */ - @Nonnull public AiExecutionScheduleList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiExecutionScheduleList} instance and return the same + * instance. + * + * @param resources The resources of this {@link AiExecutionScheduleList} + * @return The same instance of this {@link AiExecutionScheduleList} class + */ + @Nonnull + public AiExecutionScheduleList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiExecutionScheduleList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiExecutionScheduleList} */ - @Nonnull public AiExecutionScheduleList addResourcesItem( @Nonnull final AiExecutionSchedule resourcesItem) { + @Nonnull + public AiExecutionScheduleList addResourcesItem( + @Nonnull final AiExecutionSchedule resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +103,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiExecutionScheduleList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiExecutionScheduleList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiExecutionScheduleList} instance. * - * @param resources The resources of this {@link AiExecutionScheduleList} + * @param resources The resources of this {@link AiExecutionScheduleList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiExecutionScheduleList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +135,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiExecutionScheduleList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionScheduleList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionScheduleList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionScheduleList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionScheduleList} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +170,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiExecutionScheduleList aiExecutionScheduleList = (AiExecutionScheduleList) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleList.cloudSdkCustomFields) && - Objects.equals(this.count, aiExecutionScheduleList.count) && - Objects.equals(this.resources, aiExecutionScheduleList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleList.cloudSdkCustomFields) + && Objects.equals(this.count, aiExecutionScheduleList.count) + && Objects.equals(this.resources, aiExecutionScheduleList.resources); } @Override @@ -182,19 +181,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionScheduleList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +204,44 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionScheduleList} instance with all required arguments. + */ + public static Builder create() { + return (count) -> + (resources) -> new AiExecutionScheduleList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiExecutionScheduleList().count(count).resources(resources); - } + * Set the count of this {@link AiExecutionScheduleList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiExecutionScheduleList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiExecutionScheduleList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiExecutionScheduleList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiExecutionScheduleList} instance. + * + * @param resources The resources of this {@link AiExecutionScheduleList} + * @return The AiExecutionScheduleList instance. + */ + AiExecutionScheduleList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiExecutionScheduleList} instance. - * - * @param resources The resources of this {@link AiExecutionScheduleList} - * @return The AiExecutionScheduleList instance. - */ - AiExecutionScheduleList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiExecutionScheduleList} instance. - * - * @param resources The resources of this {@link AiExecutionScheduleList} - * @return The AiExecutionScheduleList instance. - */ - default AiExecutionScheduleList resources( @Nonnull final AiExecutionSchedule... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiExecutionScheduleList} instance. + * + * @param resources The resources of this {@link AiExecutionScheduleList} + * @return The AiExecutionScheduleList instance. + */ + default AiExecutionScheduleList resources(@Nonnull final AiExecutionSchedule... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java index 13ca7e9c..b868ac77 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiExecutionScheduleStatus; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Request object for changing the execution schedule - */ +/** Request object for changing the execution schedule */ // CHECKSTYLE:OFF -public class AiExecutionScheduleModificationRequest +public class AiExecutionScheduleModificationRequest // CHECKSTYLE:ON { @JsonProperty("cron") @@ -59,153 +45,180 @@ public class AiExecutionScheduleModificationRequest @JsonProperty("status") private AiExecutionScheduleStatus status; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionScheduleModificationRequest() { } - - /** - * Set the cron of this {@link AiExecutionScheduleModificationRequest} instance and return the same instance. - * - * @param cron Cron defining the schedule to run the executions. - * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class - */ - @Nonnull public AiExecutionScheduleModificationRequest cron(@Nonnull final String cron) { + + protected AiExecutionScheduleModificationRequest() {} + + /** + * Set the cron of this {@link AiExecutionScheduleModificationRequest} instance and return the + * same instance. + * + * @param cron Cron defining the schedule to run the executions. + * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class + */ + @Nonnull + public AiExecutionScheduleModificationRequest cron(@Nonnull final String cron) { this.cron = cron; return this; } - /** - * Cron defining the schedule to run the executions. - * @return cron The cron of this {@link AiExecutionScheduleModificationRequest} instance. - */ - @Nonnull public String getCron() { + /** + * Cron defining the schedule to run the executions. + * + * @return cron The cron of this {@link AiExecutionScheduleModificationRequest} instance. + */ + @Nonnull + public String getCron() { return cron; } /** * Set the cron of this {@link AiExecutionScheduleModificationRequest} instance. * - * @param cron Cron defining the schedule to run the executions. + * @param cron Cron defining the schedule to run the executions. */ - public void setCron( @Nonnull final String cron) { + public void setCron(@Nonnull final String cron) { this.cron = cron; } - /** - * Set the start of this {@link AiExecutionScheduleModificationRequest} instance and return the same instance. - * - * @param start Timestamp, defining when the executions should start running periodically, defaults to now - * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class - */ - @Nonnull public AiExecutionScheduleModificationRequest start(@Nonnull final OffsetDateTime start) { + /** + * Set the start of this {@link AiExecutionScheduleModificationRequest} instance and return the + * same instance. + * + * @param start Timestamp, defining when the executions should start running periodically, + * defaults to now + * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class + */ + @Nonnull + public AiExecutionScheduleModificationRequest start(@Nonnull final OffsetDateTime start) { this.start = start; return this; } - /** - * Timestamp, defining when the executions should start running periodically, defaults to now - * @return start The start of this {@link AiExecutionScheduleModificationRequest} instance. - */ - @Nonnull public OffsetDateTime getStart() { + /** + * Timestamp, defining when the executions should start running periodically, defaults to now + * + * @return start The start of this {@link AiExecutionScheduleModificationRequest} instance. + */ + @Nonnull + public OffsetDateTime getStart() { return start; } /** * Set the start of this {@link AiExecutionScheduleModificationRequest} instance. * - * @param start Timestamp, defining when the executions should start running periodically, defaults to now + * @param start Timestamp, defining when the executions should start running periodically, + * defaults to now */ - public void setStart( @Nonnull final OffsetDateTime start) { + public void setStart(@Nonnull final OffsetDateTime start) { this.start = start; } - /** - * Set the end of this {@link AiExecutionScheduleModificationRequest} instance and return the same instance. - * - * @param end Timestamp, defining when the executions should stop running - * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class - */ - @Nonnull public AiExecutionScheduleModificationRequest end(@Nonnull final OffsetDateTime end) { + /** + * Set the end of this {@link AiExecutionScheduleModificationRequest} instance and return the same + * instance. + * + * @param end Timestamp, defining when the executions should stop running + * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class + */ + @Nonnull + public AiExecutionScheduleModificationRequest end(@Nonnull final OffsetDateTime end) { this.end = end; return this; } - /** - * Timestamp, defining when the executions should stop running - * @return end The end of this {@link AiExecutionScheduleModificationRequest} instance. - */ - @Nonnull public OffsetDateTime getEnd() { + /** + * Timestamp, defining when the executions should stop running + * + * @return end The end of this {@link AiExecutionScheduleModificationRequest} instance. + */ + @Nonnull + public OffsetDateTime getEnd() { return end; } /** * Set the end of this {@link AiExecutionScheduleModificationRequest} instance. * - * @param end Timestamp, defining when the executions should stop running + * @param end Timestamp, defining when the executions should stop running */ - public void setEnd( @Nonnull final OffsetDateTime end) { + public void setEnd(@Nonnull final OffsetDateTime end) { this.end = end; } - /** - * Set the configurationId of this {@link AiExecutionScheduleModificationRequest} instance and return the same instance. - * - * @param configurationId ID of the configuration - * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class - */ - @Nonnull public AiExecutionScheduleModificationRequest configurationId(@Nonnull final String configurationId) { + /** + * Set the configurationId of this {@link AiExecutionScheduleModificationRequest} instance and + * return the same instance. + * + * @param configurationId ID of the configuration + * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class + */ + @Nonnull + public AiExecutionScheduleModificationRequest configurationId( + @Nonnull final String configurationId) { this.configurationId = configurationId; return this; } - /** - * ID of the configuration - * @return configurationId The configurationId of this {@link AiExecutionScheduleModificationRequest} instance. - */ - @Nonnull public String getConfigurationId() { + /** + * ID of the configuration + * + * @return configurationId The configurationId of this {@link + * AiExecutionScheduleModificationRequest} instance. + */ + @Nonnull + public String getConfigurationId() { return configurationId; } /** * Set the configurationId of this {@link AiExecutionScheduleModificationRequest} instance. * - * @param configurationId ID of the configuration + * @param configurationId ID of the configuration */ - public void setConfigurationId( @Nonnull final String configurationId) { + public void setConfigurationId(@Nonnull final String configurationId) { this.configurationId = configurationId; } - /** - * Set the status of this {@link AiExecutionScheduleModificationRequest} instance and return the same instance. - * - * @param status The status of this {@link AiExecutionScheduleModificationRequest} - * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class - */ - @Nonnull public AiExecutionScheduleModificationRequest status(@Nonnull final AiExecutionScheduleStatus status) { + /** + * Set the status of this {@link AiExecutionScheduleModificationRequest} instance and return the + * same instance. + * + * @param status The status of this {@link AiExecutionScheduleModificationRequest} + * @return The same instance of this {@link AiExecutionScheduleModificationRequest} class + */ + @Nonnull + public AiExecutionScheduleModificationRequest status( + @Nonnull final AiExecutionScheduleStatus status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link AiExecutionScheduleModificationRequest} instance. - */ - @Nonnull public AiExecutionScheduleStatus getStatus() { + /** + * Get status + * + * @return status The status of this {@link AiExecutionScheduleModificationRequest} instance. + */ + @Nonnull + public AiExecutionScheduleStatus getStatus() { return status; } /** * Set the status of this {@link AiExecutionScheduleModificationRequest} instance. * - * @param status The status of this {@link AiExecutionScheduleModificationRequest} + * @param status The status of this {@link AiExecutionScheduleModificationRequest} */ - public void setStatus( @Nonnull final AiExecutionScheduleStatus status) { + public void setStatus(@Nonnull final AiExecutionScheduleStatus status) { this.status = status; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionScheduleModificationRequest}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionScheduleModificationRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -215,32 +228,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionScheduleModificationRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiExecutionScheduleModificationRequest} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionScheduleModificationRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionScheduleModificationRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionScheduleModificationRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionScheduleModificationRequest} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -249,13 +265,16 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionScheduleModificationRequest aiExecutionScheduleModificationRequest = (AiExecutionScheduleModificationRequest) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleModificationRequest.cloudSdkCustomFields) && - Objects.equals(this.cron, aiExecutionScheduleModificationRequest.cron) && - Objects.equals(this.start, aiExecutionScheduleModificationRequest.start) && - Objects.equals(this.end, aiExecutionScheduleModificationRequest.end) && - Objects.equals(this.configurationId, aiExecutionScheduleModificationRequest.configurationId) && - Objects.equals(this.status, aiExecutionScheduleModificationRequest.status); + final AiExecutionScheduleModificationRequest aiExecutionScheduleModificationRequest = + (AiExecutionScheduleModificationRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionScheduleModificationRequest.cloudSdkCustomFields) + && Objects.equals(this.cron, aiExecutionScheduleModificationRequest.cron) + && Objects.equals(this.start, aiExecutionScheduleModificationRequest.start) + && Objects.equals(this.end, aiExecutionScheduleModificationRequest.end) + && Objects.equals( + this.configurationId, aiExecutionScheduleModificationRequest.configurationId) + && Objects.equals(this.status, aiExecutionScheduleModificationRequest.status); } @Override @@ -264,7 +283,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionScheduleModificationRequest {\n"); sb.append(" cron: ").append(toIndentedString(cron)).append("\n"); @@ -272,14 +292,15 @@ public int hashCode() { sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" configurationId: ").append(toIndentedString(configurationId)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -288,12 +309,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiExecutionScheduleModificationRequest} instance. No arguments are required. - */ - public static AiExecutionScheduleModificationRequest create() { - return new AiExecutionScheduleModificationRequest(); - } - + /** + * Create a new {@link AiExecutionScheduleModificationRequest} instance. No arguments are + * required. + */ + public static AiExecutionScheduleModificationRequest create() { + return new AiExecutionScheduleModificationRequest(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java index 21910908..33851bd0 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiExecutionScheduleModificationResponse - */ +/** AiExecutionScheduleModificationResponse */ // CHECKSTYLE:OFF -public class AiExecutionScheduleModificationResponse +public class AiExecutionScheduleModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class AiExecutionScheduleModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiExecutionScheduleModificationResponse() { } - - /** - * Set the id of this {@link AiExecutionScheduleModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link AiExecutionScheduleModificationResponse} class - */ - @Nonnull public AiExecutionScheduleModificationResponse id(@Nonnull final String id) { + + protected AiExecutionScheduleModificationResponse() {} + + /** + * Set the id of this {@link AiExecutionScheduleModificationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link AiExecutionScheduleModificationResponse} class + */ + @Nonnull + public AiExecutionScheduleModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link AiExecutionScheduleModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link AiExecutionScheduleModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiExecutionScheduleModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link AiExecutionScheduleModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link AiExecutionScheduleModificationResponse} class - */ - @Nonnull public AiExecutionScheduleModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link AiExecutionScheduleModificationResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link AiExecutionScheduleModificationResponse} class + */ + @Nonnull + public AiExecutionScheduleModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link AiExecutionScheduleModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link AiExecutionScheduleModificationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link AiExecutionScheduleModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link AiExecutionScheduleModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * AiExecutionScheduleModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiExecutionScheduleModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * AiExecutionScheduleModificationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiExecutionScheduleModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiExecutionScheduleModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiExecutionScheduleModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiExecutionScheduleModificationResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final AiExecutionScheduleModificationResponse aiExecutionScheduleModificationResponse = (AiExecutionScheduleModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, aiExecutionScheduleModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, aiExecutionScheduleModificationResponse.id) && - Objects.equals(this.message, aiExecutionScheduleModificationResponse.message); + final AiExecutionScheduleModificationResponse aiExecutionScheduleModificationResponse = + (AiExecutionScheduleModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, aiExecutionScheduleModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, aiExecutionScheduleModificationResponse.id) + && Objects.equals(this.message, aiExecutionScheduleModificationResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiExecutionScheduleModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiExecutionScheduleModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new AiExecutionScheduleModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiExecutionScheduleModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new AiExecutionScheduleModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiExecutionScheduleModificationResponse} instance. - * - * @param id Generic ID - * @return The AiExecutionScheduleModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link AiExecutionScheduleModificationResponse} instance. - * - * @param message Message - * @return The AiExecutionScheduleModificationResponse instance. - */ - AiExecutionScheduleModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link AiExecutionScheduleModificationResponse} instance. + * + * @param id Generic ID + * @return The AiExecutionScheduleModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link AiExecutionScheduleModificationResponse} instance. + * + * @param message Message + * @return The AiExecutionScheduleModificationResponse instance. + */ + AiExecutionScheduleModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleStatus.java index f21507d3..125c9146 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionScheduleStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,14 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Execution Schedule Status - */ +/** Execution Schedule Status */ public enum AiExecutionScheduleStatus { - ACTIVE("ACTIVE"), - + INACTIVE("INACTIVE"); private final String value; @@ -60,7 +40,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -68,7 +49,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -81,4 +61,3 @@ public static AiExecutionScheduleStatus fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionStatus.java index 238fd10b..6064902e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiExecutionStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,42 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Execution status - */ +/** Execution status */ public enum AiExecutionStatus { - PENDING("PENDING"), - + RUNNING("RUNNING"), - + COMPLETED("COMPLETED"), - + DEAD("DEAD"), - + STOPPING("STOPPING"), - + STOPPED("STOPPED"), - + UNKNOWN("UNKNOWN"); private final String value; @@ -70,7 +50,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -78,7 +59,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -91,4 +71,3 @@ public static AiExecutionStatus fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java index 0b45c221..23a6eb34 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiLabel - */ +/** AiLabel */ // CHECKSTYLE:OFF -public class AiLabel +public class AiLabel // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,76 @@ public class AiLabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiLabel() { } - - /** - * Set the key of this {@link AiLabel} instance and return the same instance. - * - * @param key The key of this {@link AiLabel} - * @return The same instance of this {@link AiLabel} class - */ - @Nonnull public AiLabel key(@Nonnull final String key) { + + protected AiLabel() {} + + /** + * Set the key of this {@link AiLabel} instance and return the same instance. + * + * @param key The key of this {@link AiLabel} + * @return The same instance of this {@link AiLabel} class + */ + @Nonnull + public AiLabel key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link AiLabel} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link AiLabel} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link AiLabel} instance. * - * @param key The key of this {@link AiLabel} + * @param key The key of this {@link AiLabel} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link AiLabel} instance and return the same instance. - * - * @param value The value of this {@link AiLabel} - * @return The same instance of this {@link AiLabel} class - */ - @Nonnull public AiLabel value(@Nonnull final String value) { + /** + * Set the value of this {@link AiLabel} instance and return the same instance. + * + * @param value The value of this {@link AiLabel} + * @return The same instance of this {@link AiLabel} class + */ + @Nonnull + public AiLabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link AiLabel} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link AiLabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link AiLabel} instance. * - * @param value The value of this {@link AiLabel} + * @param value The value of this {@link AiLabel} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link AiLabel}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiLabel} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiLabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiLabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiLabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiLabel} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiLabel aiLabel = (AiLabel) o; - return Objects.equals(this.cloudSdkCustomFields, aiLabel.cloudSdkCustomFields) && - Objects.equals(this.key, aiLabel.key) && - Objects.equals(this.value, aiLabel.value); + return Objects.equals(this.cloudSdkCustomFields, aiLabel.cloudSdkCustomFields) + && Objects.equals(this.key, aiLabel.key) + && Objects.equals(this.value, aiLabel.value); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiLabel {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiLabel} instance with + * all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new AiLabel().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiLabel} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new AiLabel().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link AiLabel} instance. - * - * @param key The key of this {@link AiLabel} - * @return The AiLabel builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link AiLabel} instance. - * - * @param value The value of this {@link AiLabel} - * @return The AiLabel instance. - */ - AiLabel value( @Nonnull final String value); - } + * Set the key of this {@link AiLabel} instance. + * + * @param key The key of this {@link AiLabel} + * @return The AiLabel builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link AiLabel} instance. + * + * @param value The value of this {@link AiLabel} + * @return The AiLabel instance. + */ + AiLabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java index 2b261aa1..f899e87a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,53 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiLogCommonResultItem; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiLogCommonData - */ +/** AiLogCommonData */ // CHECKSTYLE:OFF -public class AiLogCommonData +public class AiLogCommonData // CHECKSTYLE:ON { @JsonProperty("result") private List result = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiLogCommonData() { } - - /** - * Set the result of this {@link AiLogCommonData} instance and return the same instance. - * - * @param result The result of this {@link AiLogCommonData} - * @return The same instance of this {@link AiLogCommonData} class - */ - @Nonnull public AiLogCommonData result(@Nonnull final List result) { + + protected AiLogCommonData() {} + + /** + * Set the result of this {@link AiLogCommonData} instance and return the same instance. + * + * @param result The result of this {@link AiLogCommonData} + * @return The same instance of this {@link AiLogCommonData} class + */ + @Nonnull + public AiLogCommonData result(@Nonnull final List result) { this.result = result; return this; } + /** * Add one result instance to this {@link AiLogCommonData}. + * * @param resultItem The result that should be added * @return The same instance of type {@link AiLogCommonData} */ - @Nonnull public AiLogCommonData addResultItem( @Nonnull final AiLogCommonResultItem resultItem) { + @Nonnull + public AiLogCommonData addResultItem(@Nonnull final AiLogCommonResultItem resultItem) { if (this.result == null) { this.result = new ArrayList<>(); } @@ -77,25 +66,28 @@ protected AiLogCommonData() { } return this; } - /** - * Get result - * @return result The result of this {@link AiLogCommonData} instance. - */ - @Nonnull public List getResult() { + /** + * Get result + * + * @return result The result of this {@link AiLogCommonData} instance. + */ + @Nonnull + public List getResult() { return result; } /** * Set the result of this {@link AiLogCommonData} instance. * - * @param result The result of this {@link AiLogCommonData} + * @param result The result of this {@link AiLogCommonData} */ - public void setResult( @Nonnull final List result) { + public void setResult(@Nonnull final List result) { this.result = result; } /** * Get the names of the unrecognizable properties of the {@link AiLogCommonData}. + * * @return The set of properties names */ @JsonIgnore @@ -106,31 +98,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiLogCommonData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiLogCommonData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiLogCommonData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiLogCommonData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiLogCommonData} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -140,8 +132,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiLogCommonData aiLogCommonData = (AiLogCommonData) o; - return Objects.equals(this.cloudSdkCustomFields, aiLogCommonData.cloudSdkCustomFields) && - Objects.equals(this.result, aiLogCommonData.result); + return Objects.equals(this.cloudSdkCustomFields, aiLogCommonData.cloudSdkCustomFields) + && Objects.equals(this.result, aiLogCommonData.result); } @Override @@ -150,18 +142,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiLogCommonData {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +164,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiLogCommonData} instance. No arguments are required. - */ - public static AiLogCommonData create() { - return new AiLogCommonData(); - } - + /** Create a new {@link AiLogCommonData} instance. No arguments are required. */ + public static AiLogCommonData create() { + return new AiLogCommonData(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java index cf5f5159..883c008b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiLogCommonResultItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Common log record. - */ +/** Common log record. */ // CHECKSTYLE:OFF -public class AiLogCommonResultItem +public class AiLogCommonResultItem // CHECKSTYLE:ON { @JsonProperty("timestamp") @@ -49,69 +36,76 @@ public class AiLogCommonResultItem @JsonProperty("msg") private String msg; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiLogCommonResultItem() { } - - /** - * Set the timestamp of this {@link AiLogCommonResultItem} instance and return the same instance. - * - * @param timestamp Datetime in RFC 3339. - * @return The same instance of this {@link AiLogCommonResultItem} class - */ - @Nonnull public AiLogCommonResultItem timestamp(@Nonnull final OffsetDateTime timestamp) { + + protected AiLogCommonResultItem() {} + + /** + * Set the timestamp of this {@link AiLogCommonResultItem} instance and return the same instance. + * + * @param timestamp Datetime in RFC 3339. + * @return The same instance of this {@link AiLogCommonResultItem} class + */ + @Nonnull + public AiLogCommonResultItem timestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; return this; } - /** - * Datetime in RFC 3339. - * @return timestamp The timestamp of this {@link AiLogCommonResultItem} instance. - */ - @Nonnull public OffsetDateTime getTimestamp() { + /** + * Datetime in RFC 3339. + * + * @return timestamp The timestamp of this {@link AiLogCommonResultItem} instance. + */ + @Nonnull + public OffsetDateTime getTimestamp() { return timestamp; } /** * Set the timestamp of this {@link AiLogCommonResultItem} instance. * - * @param timestamp Datetime in RFC 3339. + * @param timestamp Datetime in RFC 3339. */ - public void setTimestamp( @Nonnull final OffsetDateTime timestamp) { + public void setTimestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; } - /** - * Set the msg of this {@link AiLogCommonResultItem} instance and return the same instance. - * - * @param msg message content. - * @return The same instance of this {@link AiLogCommonResultItem} class - */ - @Nonnull public AiLogCommonResultItem msg(@Nonnull final String msg) { + /** + * Set the msg of this {@link AiLogCommonResultItem} instance and return the same instance. + * + * @param msg message content. + * @return The same instance of this {@link AiLogCommonResultItem} class + */ + @Nonnull + public AiLogCommonResultItem msg(@Nonnull final String msg) { this.msg = msg; return this; } - /** - * message content. - * @return msg The msg of this {@link AiLogCommonResultItem} instance. - */ - @Nonnull public String getMsg() { + /** + * message content. + * + * @return msg The msg of this {@link AiLogCommonResultItem} instance. + */ + @Nonnull + public String getMsg() { return msg; } /** * Set the msg of this {@link AiLogCommonResultItem} instance. * - * @param msg message content. + * @param msg message content. */ - public void setMsg( @Nonnull final String msg) { + public void setMsg(@Nonnull final String msg) { this.msg = msg; } /** * Get the names of the unrecognizable properties of the {@link AiLogCommonResultItem}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +116,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiLogCommonResultItem} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiLogCommonResultItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiLogCommonResultItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiLogCommonResultItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiLogCommonResultItem} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +151,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiLogCommonResultItem aiLogCommonResultItem = (AiLogCommonResultItem) o; - return Objects.equals(this.cloudSdkCustomFields, aiLogCommonResultItem.cloudSdkCustomFields) && - Objects.equals(this.timestamp, aiLogCommonResultItem.timestamp) && - Objects.equals(this.msg, aiLogCommonResultItem.msg); + return Objects.equals(this.cloudSdkCustomFields, aiLogCommonResultItem.cloudSdkCustomFields) + && Objects.equals(this.timestamp, aiLogCommonResultItem.timestamp) + && Objects.equals(this.msg, aiLogCommonResultItem.msg); } @Override @@ -167,19 +162,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiLogCommonResultItem {\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +185,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiLogCommonResultItem} instance. No arguments are required. - */ - public static AiLogCommonResultItem create() { - return new AiLogCommonResultItem(); - } - + /** Create a new {@link AiLogCommonResultItem} instance. No arguments are required. */ + public static AiLogCommonResultItem create() { + return new AiLogCommonResultItem(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java index 0b53d062..78f4f0f9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelBaseData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiModelVersion; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiModelBaseData - */ +/** AiModelBaseData */ // CHECKSTYLE:OFF -public class AiModelBaseData +public class AiModelBaseData // CHECKSTYLE:ON { @JsonProperty("model") @@ -58,111 +44,124 @@ public class AiModelBaseData @JsonProperty("versions") private List versions = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiModelBaseData() { } - - /** - * Set the model of this {@link AiModelBaseData} instance and return the same instance. - * - * @param model Name of the model - * @return The same instance of this {@link AiModelBaseData} class - */ - @Nonnull public AiModelBaseData model(@Nonnull final String model) { + + protected AiModelBaseData() {} + + /** + * Set the model of this {@link AiModelBaseData} instance and return the same instance. + * + * @param model Name of the model + * @return The same instance of this {@link AiModelBaseData} class + */ + @Nonnull + public AiModelBaseData model(@Nonnull final String model) { this.model = model; return this; } - /** - * Name of the model - * @return model The model of this {@link AiModelBaseData} instance. - */ - @Nonnull public String getModel() { + /** + * Name of the model + * + * @return model The model of this {@link AiModelBaseData} instance. + */ + @Nonnull + public String getModel() { return model; } /** * Set the model of this {@link AiModelBaseData} instance. * - * @param model Name of the model + * @param model Name of the model */ - public void setModel( @Nonnull final String model) { + public void setModel(@Nonnull final String model) { this.model = model; } - /** - * Set the executableId of this {@link AiModelBaseData} instance and return the same instance. - * - * @param executableId ID of the executable - * @return The same instance of this {@link AiModelBaseData} class - */ - @Nonnull public AiModelBaseData executableId(@Nonnull final String executableId) { + /** + * Set the executableId of this {@link AiModelBaseData} instance and return the same instance. + * + * @param executableId ID of the executable + * @return The same instance of this {@link AiModelBaseData} class + */ + @Nonnull + public AiModelBaseData executableId(@Nonnull final String executableId) { this.executableId = executableId; return this; } - /** - * ID of the executable - * @return executableId The executableId of this {@link AiModelBaseData} instance. - */ - @Nonnull public String getExecutableId() { + /** + * ID of the executable + * + * @return executableId The executableId of this {@link AiModelBaseData} instance. + */ + @Nonnull + public String getExecutableId() { return executableId; } /** * Set the executableId of this {@link AiModelBaseData} instance. * - * @param executableId ID of the executable + * @param executableId ID of the executable */ - public void setExecutableId( @Nonnull final String executableId) { + public void setExecutableId(@Nonnull final String executableId) { this.executableId = executableId; } - /** - * Set the description of this {@link AiModelBaseData} instance and return the same instance. - * - * @param description Description of the model and its capabilities - * @return The same instance of this {@link AiModelBaseData} class - */ - @Nonnull public AiModelBaseData description(@Nonnull final String description) { + /** + * Set the description of this {@link AiModelBaseData} instance and return the same instance. + * + * @param description Description of the model and its capabilities + * @return The same instance of this {@link AiModelBaseData} class + */ + @Nonnull + public AiModelBaseData description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the model and its capabilities - * @return description The description of this {@link AiModelBaseData} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the model and its capabilities + * + * @return description The description of this {@link AiModelBaseData} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiModelBaseData} instance. * - * @param description Description of the model and its capabilities + * @param description Description of the model and its capabilities */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the versions of this {@link AiModelBaseData} instance and return the same instance. - * - * @param versions List of model versions that the model object has - * @return The same instance of this {@link AiModelBaseData} class - */ - @Nonnull public AiModelBaseData versions(@Nonnull final List versions) { + /** + * Set the versions of this {@link AiModelBaseData} instance and return the same instance. + * + * @param versions List of model versions that the model object has + * @return The same instance of this {@link AiModelBaseData} class + */ + @Nonnull + public AiModelBaseData versions(@Nonnull final List versions) { this.versions = versions; return this; } + /** * Add one versions instance to this {@link AiModelBaseData}. + * * @param versionsItem The versions that should be added * @return The same instance of type {@link AiModelBaseData} */ - @Nonnull public AiModelBaseData addVersionsItem( @Nonnull final AiModelVersion versionsItem) { + @Nonnull + public AiModelBaseData addVersionsItem(@Nonnull final AiModelVersion versionsItem) { if (this.versions == null) { this.versions = new ArrayList<>(); } @@ -170,25 +169,28 @@ public void setDescription( @Nonnull final String description) { return this; } - /** - * List of model versions that the model object has - * @return versions The versions of this {@link AiModelBaseData} instance. - */ - @Nonnull public List getVersions() { + /** + * List of model versions that the model object has + * + * @return versions The versions of this {@link AiModelBaseData} instance. + */ + @Nonnull + public List getVersions() { return versions; } /** * Set the versions of this {@link AiModelBaseData} instance. * - * @param versions List of model versions that the model object has + * @param versions List of model versions that the model object has */ - public void setVersions( @Nonnull final List versions) { + public void setVersions(@Nonnull final List versions) { this.versions = versions; } /** * Get the names of the unrecognizable properties of the {@link AiModelBaseData}. + * * @return The set of properties names */ @JsonIgnore @@ -199,31 +201,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiModelBaseData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiModelBaseData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiModelBaseData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiModelBaseData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiModelBaseData} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -233,11 +235,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiModelBaseData aiModelBaseData = (AiModelBaseData) o; - return Objects.equals(this.cloudSdkCustomFields, aiModelBaseData.cloudSdkCustomFields) && - Objects.equals(this.model, aiModelBaseData.model) && - Objects.equals(this.executableId, aiModelBaseData.executableId) && - Objects.equals(this.description, aiModelBaseData.description) && - Objects.equals(this.versions, aiModelBaseData.versions); + return Objects.equals(this.cloudSdkCustomFields, aiModelBaseData.cloudSdkCustomFields) + && Objects.equals(this.model, aiModelBaseData.model) + && Objects.equals(this.executableId, aiModelBaseData.executableId) + && Objects.equals(this.description, aiModelBaseData.description) + && Objects.equals(this.versions, aiModelBaseData.versions); } @Override @@ -246,21 +248,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiModelBaseData {\n"); sb.append(" model: ").append(toIndentedString(model)).append("\n"); sb.append(" executableId: ").append(toIndentedString(executableId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -269,69 +273,73 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiModelBaseData} + * instance with all required arguments. + */ + public static Builder create() { + return (model) -> + (executableId) -> + (description) -> + (versions) -> + new AiModelBaseData() + .model(model) + .executableId(executableId) + .description(description) + .versions(versions); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiModelBaseData} instance with all required arguments. - */ - public static Builder create() { - return (model) -> (executableId) -> (description) -> (versions) -> new AiModelBaseData().model(model).executableId(executableId).description(description).versions(versions); - } + * Set the model of this {@link AiModelBaseData} instance. + * + * @param model Name of the model + * @return The AiModelBaseData builder. + */ + Builder1 model(@Nonnull final String model); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the model of this {@link AiModelBaseData} instance. - * - * @param model Name of the model - * @return The AiModelBaseData builder. - */ - Builder1 model( @Nonnull final String model); - } + * Set the executableId of this {@link AiModelBaseData} instance. + * + * @param executableId ID of the executable + * @return The AiModelBaseData builder. + */ + Builder2 executableId(@Nonnull final String executableId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executableId of this {@link AiModelBaseData} instance. - * - * @param executableId ID of the executable - * @return The AiModelBaseData builder. - */ - Builder2 executableId( @Nonnull final String executableId); - } + * Set the description of this {@link AiModelBaseData} instance. + * + * @param description Description of the model and its capabilities + * @return The AiModelBaseData builder. + */ + Builder3 description(@Nonnull final String description); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the description of this {@link AiModelBaseData} instance. - * - * @param description Description of the model and its capabilities - * @return The AiModelBaseData builder. - */ - Builder3 description( @Nonnull final String description); - } + * Set the versions of this {@link AiModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The AiModelBaseData instance. + */ + AiModelBaseData versions(@Nonnull final List versions); + /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the versions of this {@link AiModelBaseData} instance. - * - * @param versions List of model versions that the model object has - * @return The AiModelBaseData instance. - */ - AiModelBaseData versions( @Nonnull final List versions); - /** - * Set the versions of this {@link AiModelBaseData} instance. - * - * @param versions List of model versions that the model object has - * @return The AiModelBaseData instance. - */ - default AiModelBaseData versions( @Nonnull final AiModelVersion... versions) { - return versions(Arrays.asList(versions)); - } + * Set the versions of this {@link AiModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The AiModelBaseData instance. + */ + default AiModelBaseData versions(@Nonnull final AiModelVersion... versions) { + return versions(Arrays.asList(versions)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java index 1223ffa8..a6e89c50 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiModelBaseData; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiModelList - */ +/** AiModelList */ // CHECKSTYLE:OFF -public class AiModelList +public class AiModelList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiModelList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiModelList() { } - - /** - * Set the count of this {@link AiModelList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiModelList} class - */ - @Nonnull public AiModelList count(@Nonnull final Integer count) { + + protected AiModelList() {} + + /** + * Set the count of this {@link AiModelList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiModelList} class + */ + @Nonnull + public AiModelList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiModelList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiModelList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiModelList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiModelList} instance and return the same instance. - * - * @param resources The resources of this {@link AiModelList} - * @return The same instance of this {@link AiModelList} class - */ - @Nonnull public AiModelList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiModelList} instance and return the same instance. + * + * @param resources The resources of this {@link AiModelList} + * @return The same instance of this {@link AiModelList} class + */ + @Nonnull + public AiModelList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiModelList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiModelList} */ - @Nonnull public AiModelList addResourcesItem( @Nonnull final AiModelBaseData resourcesItem) { + @Nonnull + public AiModelList addResourcesItem(@Nonnull final AiModelBaseData resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiModelList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiModelList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiModelList} instance. * - * @param resources The resources of this {@link AiModelList} + * @param resources The resources of this {@link AiModelList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiModelList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiModelList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiModelList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiModelList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiModelList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiModelList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiModelList aiModelList = (AiModelList) o; - return Objects.equals(this.cloudSdkCustomFields, aiModelList.cloudSdkCustomFields) && - Objects.equals(this.count, aiModelList.count) && - Objects.equals(this.resources, aiModelList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiModelList.cloudSdkCustomFields) + && Objects.equals(this.count, aiModelList.count) + && Objects.equals(this.resources, aiModelList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiModelList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiModelList} instance + * with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiModelList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiModelList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiModelList().count(count).resources(resources); - } + * Set the count of this {@link AiModelList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiModelList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiModelList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiModelList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiModelList} instance. + * + * @param resources The resources of this {@link AiModelList} + * @return The AiModelList instance. + */ + AiModelList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiModelList} instance. - * - * @param resources The resources of this {@link AiModelList} - * @return The AiModelList instance. - */ - AiModelList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiModelList} instance. - * - * @param resources The resources of this {@link AiModelList} - * @return The AiModelList instance. - */ - default AiModelList resources( @Nonnull final AiModelBaseData... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiModelList} instance. + * + * @param resources The resources of this {@link AiModelList} + * @return The AiModelList instance. + */ + default AiModelList resources(@Nonnull final AiModelBaseData... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java index d593c23b..b512800f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiModelVersion.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Model version information including whether it is latest version - */ +/** Model version information including whether it is latest version */ // CHECKSTYLE:OFF -public class AiModelVersion +public class AiModelVersion // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,69 +35,76 @@ public class AiModelVersion @JsonProperty("isLatest") private Boolean isLatest; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiModelVersion() { } - - /** - * Set the name of this {@link AiModelVersion} instance and return the same instance. - * - * @param name Name of model version - * @return The same instance of this {@link AiModelVersion} class - */ - @Nonnull public AiModelVersion name(@Nonnull final String name) { + + protected AiModelVersion() {} + + /** + * Set the name of this {@link AiModelVersion} instance and return the same instance. + * + * @param name Name of model version + * @return The same instance of this {@link AiModelVersion} class + */ + @Nonnull + public AiModelVersion name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of model version - * @return name The name of this {@link AiModelVersion} instance. - */ - @Nonnull public String getName() { + /** + * Name of model version + * + * @return name The name of this {@link AiModelVersion} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiModelVersion} instance. * - * @param name Name of model version + * @param name Name of model version */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the isLatest of this {@link AiModelVersion} instance and return the same instance. - * - * @param isLatest Displays whether it is the latest version offered for the model - * @return The same instance of this {@link AiModelVersion} class - */ - @Nonnull public AiModelVersion isLatest(@Nonnull final Boolean isLatest) { + /** + * Set the isLatest of this {@link AiModelVersion} instance and return the same instance. + * + * @param isLatest Displays whether it is the latest version offered for the model + * @return The same instance of this {@link AiModelVersion} class + */ + @Nonnull + public AiModelVersion isLatest(@Nonnull final Boolean isLatest) { this.isLatest = isLatest; return this; } - /** - * Displays whether it is the latest version offered for the model - * @return isLatest The isLatest of this {@link AiModelVersion} instance. - */ - @Nonnull public Boolean isIsLatest() { + /** + * Displays whether it is the latest version offered for the model + * + * @return isLatest The isLatest of this {@link AiModelVersion} instance. + */ + @Nonnull + public Boolean isIsLatest() { return isLatest; } /** * Set the isLatest of this {@link AiModelVersion} instance. * - * @param isLatest Displays whether it is the latest version offered for the model + * @param isLatest Displays whether it is the latest version offered for the model */ - public void setIsLatest( @Nonnull final Boolean isLatest) { + public void setIsLatest(@Nonnull final Boolean isLatest) { this.isLatest = isLatest; } /** * Get the names of the unrecognizable properties of the {@link AiModelVersion}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiModelVersion} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiModelVersion has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiModelVersion has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiModelVersion} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiModelVersion} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiModelVersion aiModelVersion = (AiModelVersion) o; - return Objects.equals(this.cloudSdkCustomFields, aiModelVersion.cloudSdkCustomFields) && - Objects.equals(this.name, aiModelVersion.name) && - Objects.equals(this.isLatest, aiModelVersion.isLatest); + return Objects.equals(this.cloudSdkCustomFields, aiModelVersion.cloudSdkCustomFields) + && Objects.equals(this.name, aiModelVersion.name) + && Objects.equals(this.isLatest, aiModelVersion.isLatest); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiModelVersion {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" isLatest: ").append(toIndentedString(isLatest)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiModelVersion} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> (isLatest) -> new AiModelVersion().name(name).isLatest(isLatest); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiModelVersion} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (isLatest) -> new AiModelVersion().name(name).isLatest(isLatest); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiModelVersion} instance. - * - * @param name Name of model version - * @return The AiModelVersion builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the isLatest of this {@link AiModelVersion} instance. - * - * @param isLatest Displays whether it is the latest version offered for the model - * @return The AiModelVersion instance. - */ - AiModelVersion isLatest( @Nonnull final Boolean isLatest); - } + * Set the name of this {@link AiModelVersion} instance. + * + * @param name Name of model version + * @return The AiModelVersion builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the isLatest of this {@link AiModelVersion} instance. + * + * @param isLatest Displays whether it is the latest version offered for the model + * @return The AiModelVersion instance. + */ + AiModelVersion isLatest(@Nonnull final Boolean isLatest); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java index 107c8aff..b0d1d9eb 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiParameterArgumentBinding.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Required for execution Result of activation - */ +/** Required for execution Result of activation */ // CHECKSTYLE:OFF -public class AiParameterArgumentBinding +public class AiParameterArgumentBinding // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,76 @@ public class AiParameterArgumentBinding @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiParameterArgumentBinding() { } - - /** - * Set the key of this {@link AiParameterArgumentBinding} instance and return the same instance. - * - * @param key The key of this {@link AiParameterArgumentBinding} - * @return The same instance of this {@link AiParameterArgumentBinding} class - */ - @Nonnull public AiParameterArgumentBinding key(@Nonnull final String key) { + + protected AiParameterArgumentBinding() {} + + /** + * Set the key of this {@link AiParameterArgumentBinding} instance and return the same instance. + * + * @param key The key of this {@link AiParameterArgumentBinding} + * @return The same instance of this {@link AiParameterArgumentBinding} class + */ + @Nonnull + public AiParameterArgumentBinding key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link AiParameterArgumentBinding} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link AiParameterArgumentBinding} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link AiParameterArgumentBinding} instance. * - * @param key The key of this {@link AiParameterArgumentBinding} + * @param key The key of this {@link AiParameterArgumentBinding} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link AiParameterArgumentBinding} instance and return the same instance. - * - * @param value The value of this {@link AiParameterArgumentBinding} - * @return The same instance of this {@link AiParameterArgumentBinding} class - */ - @Nonnull public AiParameterArgumentBinding value(@Nonnull final String value) { + /** + * Set the value of this {@link AiParameterArgumentBinding} instance and return the same instance. + * + * @param value The value of this {@link AiParameterArgumentBinding} + * @return The same instance of this {@link AiParameterArgumentBinding} class + */ + @Nonnull + public AiParameterArgumentBinding value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link AiParameterArgumentBinding} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link AiParameterArgumentBinding} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link AiParameterArgumentBinding} instance. * - * @param value The value of this {@link AiParameterArgumentBinding} + * @param value The value of this {@link AiParameterArgumentBinding} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link AiParameterArgumentBinding}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +114,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link AiParameterArgumentBinding} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link AiParameterArgumentBinding} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiParameterArgumentBinding has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "AiParameterArgumentBinding has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiParameterArgumentBinding} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiParameterArgumentBinding} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +151,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiParameterArgumentBinding aiParameterArgumentBinding = (AiParameterArgumentBinding) o; - return Objects.equals(this.cloudSdkCustomFields, aiParameterArgumentBinding.cloudSdkCustomFields) && - Objects.equals(this.key, aiParameterArgumentBinding.key) && - Objects.equals(this.value, aiParameterArgumentBinding.value); + return Objects.equals( + this.cloudSdkCustomFields, aiParameterArgumentBinding.cloudSdkCustomFields) + && Objects.equals(this.key, aiParameterArgumentBinding.key) + && Objects.equals(this.value, aiParameterArgumentBinding.value); } @Override @@ -166,19 +163,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiParameterArgumentBinding {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +186,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * AiParameterArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new AiParameterArgumentBinding().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiParameterArgumentBinding} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new AiParameterArgumentBinding().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link AiParameterArgumentBinding} instance. - * - * @param key The key of this {@link AiParameterArgumentBinding} - * @return The AiParameterArgumentBinding builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link AiParameterArgumentBinding} instance. - * - * @param value The value of this {@link AiParameterArgumentBinding} - * @return The AiParameterArgumentBinding instance. - */ - AiParameterArgumentBinding value( @Nonnull final String value); - } + * Set the key of this {@link AiParameterArgumentBinding} instance. + * + * @param key The key of this {@link AiParameterArgumentBinding} + * @return The AiParameterArgumentBinding builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link AiParameterArgumentBinding} instance. + * + * @param value The value of this {@link AiParameterArgumentBinding} + * @return The AiParameterArgumentBinding instance. + */ + AiParameterArgumentBinding value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java index 2ee5562e..9c8e9e77 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiResourcesDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,66 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Resources details of a deployment - */ +/** Resources details of a deployment */ // CHECKSTYLE:OFF -public class AiResourcesDetails +public class AiResourcesDetails // CHECKSTYLE:ON { @JsonProperty("backendDetails") private Object backendDetails; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiResourcesDetails() { } - - /** - * Set the backendDetails of this {@link AiResourcesDetails} instance and return the same instance. - * - * @param backendDetails backend-specific details of the deployment - * @return The same instance of this {@link AiResourcesDetails} class - */ - @Nonnull public AiResourcesDetails backendDetails(@Nonnull final Object backendDetails) { + + protected AiResourcesDetails() {} + + /** + * Set the backendDetails of this {@link AiResourcesDetails} instance and return the same + * instance. + * + * @param backendDetails backend-specific details of the deployment + * @return The same instance of this {@link AiResourcesDetails} class + */ + @Nonnull + public AiResourcesDetails backendDetails(@Nonnull final Object backendDetails) { this.backendDetails = backendDetails; return this; } - /** - * backend-specific details of the deployment - * @return backendDetails The backendDetails of this {@link AiResourcesDetails} instance. - */ - @Nonnull public Object getBackendDetails() { + /** + * backend-specific details of the deployment + * + * @return backendDetails The backendDetails of this {@link AiResourcesDetails} instance. + */ + @Nonnull + public Object getBackendDetails() { return backendDetails; } /** * Set the backendDetails of this {@link AiResourcesDetails} instance. * - * @param backendDetails backend-specific details of the deployment + * @param backendDetails backend-specific details of the deployment */ - public void setBackendDetails( @Nonnull final Object backendDetails) { + public void setBackendDetails(@Nonnull final Object backendDetails) { this.backendDetails = backendDetails; } /** * Get the names of the unrecognizable properties of the {@link AiResourcesDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -90,31 +82,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiResourcesDetails} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiResourcesDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiResourcesDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiResourcesDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiResourcesDetails} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +116,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiResourcesDetails aiResourcesDetails = (AiResourcesDetails) o; - return Objects.equals(this.cloudSdkCustomFields, aiResourcesDetails.cloudSdkCustomFields) && - Objects.equals(this.backendDetails, aiResourcesDetails.backendDetails); + return Objects.equals(this.cloudSdkCustomFields, aiResourcesDetails.cloudSdkCustomFields) + && Objects.equals(this.backendDetails, aiResourcesDetails.backendDetails); } @Override @@ -134,18 +126,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiResourcesDetails {\n"); sb.append(" backendDetails: ").append(toIndentedString(backendDetails)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +148,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiResourcesDetails} instance. No arguments are required. - */ - public static AiResourcesDetails create() { - return new AiResourcesDetails(); - } - + /** Create a new {@link AiResourcesDetails} instance. No arguments are required. */ + public static AiResourcesDetails create() { + return new AiResourcesDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java index c887735c..2b1b1b64 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScalingDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Scaling details of a deployment - */ +/** Scaling details of a deployment */ // CHECKSTYLE:OFF -public class AiScalingDetails +public class AiScalingDetails // CHECKSTYLE:ON { @JsonProperty("backendDetails") private Object backendDetails; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiScalingDetails() { } - - /** - * Set the backendDetails of this {@link AiScalingDetails} instance and return the same instance. - * - * @param backendDetails backend-specific details of the deployment - * @return The same instance of this {@link AiScalingDetails} class - */ - @Nonnull public AiScalingDetails backendDetails(@Nonnull final Object backendDetails) { + + protected AiScalingDetails() {} + + /** + * Set the backendDetails of this {@link AiScalingDetails} instance and return the same instance. + * + * @param backendDetails backend-specific details of the deployment + * @return The same instance of this {@link AiScalingDetails} class + */ + @Nonnull + public AiScalingDetails backendDetails(@Nonnull final Object backendDetails) { this.backendDetails = backendDetails; return this; } - /** - * backend-specific details of the deployment - * @return backendDetails The backendDetails of this {@link AiScalingDetails} instance. - */ - @Nonnull public Object getBackendDetails() { + /** + * backend-specific details of the deployment + * + * @return backendDetails The backendDetails of this {@link AiScalingDetails} instance. + */ + @Nonnull + public Object getBackendDetails() { return backendDetails; } /** * Set the backendDetails of this {@link AiScalingDetails} instance. * - * @param backendDetails backend-specific details of the deployment + * @param backendDetails backend-specific details of the deployment */ - public void setBackendDetails( @Nonnull final Object backendDetails) { + public void setBackendDetails(@Nonnull final Object backendDetails) { this.backendDetails = backendDetails; } /** * Get the names of the unrecognizable properties of the {@link AiScalingDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -90,31 +81,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiScalingDetails} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiScalingDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiScalingDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiScalingDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiScalingDetails} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +115,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiScalingDetails aiScalingDetails = (AiScalingDetails) o; - return Objects.equals(this.cloudSdkCustomFields, aiScalingDetails.cloudSdkCustomFields) && - Objects.equals(this.backendDetails, aiScalingDetails.backendDetails); + return Objects.equals(this.cloudSdkCustomFields, aiScalingDetails.cloudSdkCustomFields) + && Objects.equals(this.backendDetails, aiScalingDetails.backendDetails); } @Override @@ -134,18 +125,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiScalingDetails {\n"); sb.append(" backendDetails: ").append(toIndentedString(backendDetails)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +147,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AiScalingDetails} instance. No arguments are required. - */ - public static AiScalingDetails create() { - return new AiScalingDetails(); - } - + /** Create a new {@link AiScalingDetails} instance. No arguments are required. */ + public static AiScalingDetails create() { + return new AiScalingDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java index 36a85cd4..a215184b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenario.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,27 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiScenarioLabel; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * An ML Scenario consists of a number of executables. E.g., there can be one or several training executables, an inference (deployment) executable. An ML Scenario is versioned. + * An ML Scenario consists of a number of executables. E.g., there can be one or several training + * executables, an inference (deployment) executable. An ML Scenario is versioned. */ // CHECKSTYLE:OFF -public class AiScenario +public class AiScenario // CHECKSTYLE:ON { @JsonProperty("name") @@ -65,83 +53,93 @@ public class AiScenario @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiScenario() { } - - /** - * Set the name of this {@link AiScenario} instance and return the same instance. - * - * @param name Name of the scenario - * @return The same instance of this {@link AiScenario} class - */ - @Nonnull public AiScenario name(@Nonnull final String name) { + + protected AiScenario() {} + + /** + * Set the name of this {@link AiScenario} instance and return the same instance. + * + * @param name Name of the scenario + * @return The same instance of this {@link AiScenario} class + */ + @Nonnull + public AiScenario name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the scenario - * @return name The name of this {@link AiScenario} instance. - */ - @Nonnull public String getName() { + /** + * Name of the scenario + * + * @return name The name of this {@link AiScenario} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link AiScenario} instance. * - * @param name Name of the scenario + * @param name Name of the scenario */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link AiScenario} instance and return the same instance. - * - * @param description Description of the scenario - * @return The same instance of this {@link AiScenario} class - */ - @Nonnull public AiScenario description(@Nonnull final String description) { + /** + * Set the description of this {@link AiScenario} instance and return the same instance. + * + * @param description Description of the scenario + * @return The same instance of this {@link AiScenario} class + */ + @Nonnull + public AiScenario description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the scenario - * @return description The description of this {@link AiScenario} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the scenario + * + * @return description The description of this {@link AiScenario} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiScenario} instance. * - * @param description Description of the scenario + * @param description Description of the scenario */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the labels of this {@link AiScenario} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link AiScenario} class - */ - @Nonnull public AiScenario labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link AiScenario} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link AiScenario} class + */ + @Nonnull + public AiScenario labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link AiScenario}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link AiScenario} */ - @Nonnull public AiScenario addLabelsItem( @Nonnull final AiScenarioLabel labelsItem) { + @Nonnull + public AiScenario addLabelsItem(@Nonnull final AiScenarioLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -149,109 +147,121 @@ public void setDescription( @Nonnull final String description) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link AiScenario} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link AiScenario} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link AiScenario} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the id of this {@link AiScenario} instance and return the same instance. - * - * @param id ID of the scenario - * @return The same instance of this {@link AiScenario} class - */ - @Nonnull public AiScenario id(@Nonnull final String id) { + /** + * Set the id of this {@link AiScenario} instance and return the same instance. + * + * @param id ID of the scenario + * @return The same instance of this {@link AiScenario} class + */ + @Nonnull + public AiScenario id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the scenario - * @return id The id of this {@link AiScenario} instance. - */ - @Nonnull public String getId() { + /** + * ID of the scenario + * + * @return id The id of this {@link AiScenario} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiScenario} instance. * - * @param id ID of the scenario + * @param id ID of the scenario */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the createdAt of this {@link AiScenario} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiScenario} class - */ - @Nonnull public AiScenario createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiScenario} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiScenario} class + */ + @Nonnull + public AiScenario createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiScenario} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiScenario} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiScenario} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiScenario} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiScenario} class - */ - @Nonnull public AiScenario modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiScenario} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiScenario} class + */ + @Nonnull + public AiScenario modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiScenario} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiScenario} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiScenario} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link AiScenario}. + * * @return The set of properties names */ @JsonIgnore @@ -262,31 +272,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiScenario} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiScenario has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiScenario has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiScenario} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiScenario} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -296,13 +306,13 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiScenario aiScenario = (AiScenario) o; - return Objects.equals(this.cloudSdkCustomFields, aiScenario.cloudSdkCustomFields) && - Objects.equals(this.name, aiScenario.name) && - Objects.equals(this.description, aiScenario.description) && - Objects.equals(this.labels, aiScenario.labels) && - Objects.equals(this.id, aiScenario.id) && - Objects.equals(this.createdAt, aiScenario.createdAt) && - Objects.equals(this.modifiedAt, aiScenario.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, aiScenario.cloudSdkCustomFields) + && Objects.equals(this.name, aiScenario.name) + && Objects.equals(this.description, aiScenario.description) + && Objects.equals(this.labels, aiScenario.labels) + && Objects.equals(this.id, aiScenario.id) + && Objects.equals(this.createdAt, aiScenario.createdAt) + && Objects.equals(this.modifiedAt, aiScenario.modifiedAt); } @Override @@ -311,7 +321,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiScenario {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -320,14 +331,15 @@ public int hashCode() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -336,60 +348,59 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiScenario} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> + (id) -> + (createdAt) -> + (modifiedAt) -> + new AiScenario().name(name).id(id).createdAt(createdAt).modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiScenario} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (id) -> (createdAt) -> (modifiedAt) -> new AiScenario().name(name).id(id).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link AiScenario} instance. - * - * @param name Name of the scenario - * @return The AiScenario builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the id of this {@link AiScenario} instance. - * - * @param id ID of the scenario - * @return The AiScenario builder. - */ - Builder2 id( @Nonnull final String id); - } + * Set the name of this {@link AiScenario} instance. + * + * @param name Name of the scenario + * @return The AiScenario builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the createdAt of this {@link AiScenario} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiScenario builder. - */ - Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the id of this {@link AiScenario} instance. + * + * @param id ID of the scenario + * @return The AiScenario builder. + */ + Builder2 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the modifiedAt of this {@link AiScenario} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiScenario instance. - */ - AiScenario modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiScenario} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiScenario builder. + */ + Builder3 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link AiScenario} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiScenario instance. + */ + AiScenario modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java index 59a22d12..fd6408cd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioLabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiScenarioLabel - */ +/** AiScenarioLabel */ // CHECKSTYLE:OFF -public class AiScenarioLabel +public class AiScenarioLabel // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,76 @@ public class AiScenarioLabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiScenarioLabel() { } - - /** - * Set the key of this {@link AiScenarioLabel} instance and return the same instance. - * - * @param key The key of this {@link AiScenarioLabel} - * @return The same instance of this {@link AiScenarioLabel} class - */ - @Nonnull public AiScenarioLabel key(@Nonnull final String key) { + + protected AiScenarioLabel() {} + + /** + * Set the key of this {@link AiScenarioLabel} instance and return the same instance. + * + * @param key The key of this {@link AiScenarioLabel} + * @return The same instance of this {@link AiScenarioLabel} class + */ + @Nonnull + public AiScenarioLabel key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link AiScenarioLabel} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link AiScenarioLabel} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link AiScenarioLabel} instance. * - * @param key The key of this {@link AiScenarioLabel} + * @param key The key of this {@link AiScenarioLabel} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link AiScenarioLabel} instance and return the same instance. - * - * @param value The value of this {@link AiScenarioLabel} - * @return The same instance of this {@link AiScenarioLabel} class - */ - @Nonnull public AiScenarioLabel value(@Nonnull final String value) { + /** + * Set the value of this {@link AiScenarioLabel} instance and return the same instance. + * + * @param value The value of this {@link AiScenarioLabel} + * @return The same instance of this {@link AiScenarioLabel} class + */ + @Nonnull + public AiScenarioLabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link AiScenarioLabel} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link AiScenarioLabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link AiScenarioLabel} instance. * - * @param value The value of this {@link AiScenarioLabel} + * @param value The value of this {@link AiScenarioLabel} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link AiScenarioLabel}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiScenarioLabel} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiScenarioLabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiScenarioLabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiScenarioLabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiScenarioLabel} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiScenarioLabel aiScenarioLabel = (AiScenarioLabel) o; - return Objects.equals(this.cloudSdkCustomFields, aiScenarioLabel.cloudSdkCustomFields) && - Objects.equals(this.key, aiScenarioLabel.key) && - Objects.equals(this.value, aiScenarioLabel.value); + return Objects.equals(this.cloudSdkCustomFields, aiScenarioLabel.cloudSdkCustomFields) + && Objects.equals(this.key, aiScenarioLabel.key) + && Objects.equals(this.value, aiScenarioLabel.value); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiScenarioLabel {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiScenarioLabel} + * instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new AiScenarioLabel().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiScenarioLabel} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new AiScenarioLabel().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link AiScenarioLabel} instance. - * - * @param key The key of this {@link AiScenarioLabel} - * @return The AiScenarioLabel builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link AiScenarioLabel} instance. - * - * @param value The value of this {@link AiScenarioLabel} - * @return The AiScenarioLabel instance. - */ - AiScenarioLabel value( @Nonnull final String value); - } + * Set the key of this {@link AiScenarioLabel} instance. + * + * @param key The key of this {@link AiScenarioLabel} + * @return The AiScenarioLabel builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link AiScenarioLabel} instance. + * + * @param value The value of this {@link AiScenarioLabel} + * @return The AiScenarioLabel instance. + */ + AiScenarioLabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java index 9753f04c..c61b2683 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiScenarioList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiScenario; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiScenarioList - */ +/** AiScenarioList */ // CHECKSTYLE:OFF -public class AiScenarioList +public class AiScenarioList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiScenarioList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiScenarioList() { } - - /** - * Set the count of this {@link AiScenarioList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiScenarioList} class - */ - @Nonnull public AiScenarioList count(@Nonnull final Integer count) { + + protected AiScenarioList() {} + + /** + * Set the count of this {@link AiScenarioList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiScenarioList} class + */ + @Nonnull + public AiScenarioList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiScenarioList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiScenarioList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiScenarioList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiScenarioList} instance and return the same instance. - * - * @param resources The resources of this {@link AiScenarioList} - * @return The same instance of this {@link AiScenarioList} class - */ - @Nonnull public AiScenarioList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiScenarioList} instance and return the same instance. + * + * @param resources The resources of this {@link AiScenarioList} + * @return The same instance of this {@link AiScenarioList} class + */ + @Nonnull + public AiScenarioList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiScenarioList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiScenarioList} */ - @Nonnull public AiScenarioList addResourcesItem( @Nonnull final AiScenario resourcesItem) { + @Nonnull + public AiScenarioList addResourcesItem(@Nonnull final AiScenario resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiScenarioList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiScenarioList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiScenarioList} instance. * - * @param resources The resources of this {@link AiScenarioList} + * @param resources The resources of this {@link AiScenarioList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiScenarioList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiScenarioList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiScenarioList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiScenarioList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiScenarioList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiScenarioList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiScenarioList aiScenarioList = (AiScenarioList) o; - return Objects.equals(this.cloudSdkCustomFields, aiScenarioList.cloudSdkCustomFields) && - Objects.equals(this.count, aiScenarioList.count) && - Objects.equals(this.resources, aiScenarioList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiScenarioList.cloudSdkCustomFields) + && Objects.equals(this.count, aiScenarioList.count) + && Objects.equals(this.resources, aiScenarioList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiScenarioList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiScenarioList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiScenarioList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiScenarioList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiScenarioList().count(count).resources(resources); - } + * Set the count of this {@link AiScenarioList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiScenarioList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiScenarioList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiScenarioList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiScenarioList} instance. + * + * @param resources The resources of this {@link AiScenarioList} + * @return The AiScenarioList instance. + */ + AiScenarioList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiScenarioList} instance. - * - * @param resources The resources of this {@link AiScenarioList} - * @return The AiScenarioList instance. - */ - AiScenarioList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiScenarioList} instance. - * - * @param resources The resources of this {@link AiScenarioList} - * @return The AiScenarioList instance. - */ - default AiScenarioList resources( @Nonnull final AiScenario... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiScenarioList} instance. + * + * @param resources The resources of this {@link AiScenarioList} + * @return The AiScenarioList instance. + */ + default AiScenarioList resources(@Nonnull final AiScenario... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java index 5b64a24b..66b09758 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersion.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiVersion - */ +/** AiVersion */ // CHECKSTYLE:OFF -public class AiVersion +public class AiVersion // CHECKSTYLE:ON { @JsonProperty("description") @@ -58,153 +45,169 @@ public class AiVersion @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiVersion() { } - - /** - * Set the description of this {@link AiVersion} instance and return the same instance. - * - * @param description Version description - * @return The same instance of this {@link AiVersion} class - */ - @Nonnull public AiVersion description(@Nonnull final String description) { + + protected AiVersion() {} + + /** + * Set the description of this {@link AiVersion} instance and return the same instance. + * + * @param description Version description + * @return The same instance of this {@link AiVersion} class + */ + @Nonnull + public AiVersion description(@Nonnull final String description) { this.description = description; return this; } - /** - * Version description - * @return description The description of this {@link AiVersion} instance. - */ - @Nonnull public String getDescription() { + /** + * Version description + * + * @return description The description of this {@link AiVersion} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link AiVersion} instance. * - * @param description Version description + * @param description Version description */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the id of this {@link AiVersion} instance and return the same instance. - * - * @param id Version ID - * @return The same instance of this {@link AiVersion} class - */ - @Nonnull public AiVersion id(@Nonnull final String id) { + /** + * Set the id of this {@link AiVersion} instance and return the same instance. + * + * @param id Version ID + * @return The same instance of this {@link AiVersion} class + */ + @Nonnull + public AiVersion id(@Nonnull final String id) { this.id = id; return this; } - /** - * Version ID - * @return id The id of this {@link AiVersion} instance. - */ - @Nonnull public String getId() { + /** + * Version ID + * + * @return id The id of this {@link AiVersion} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link AiVersion} instance. * - * @param id Version ID + * @param id Version ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the scenarioId of this {@link AiVersion} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link AiVersion} class - */ - @Nonnull public AiVersion scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link AiVersion} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link AiVersion} class + */ + @Nonnull + public AiVersion scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link AiVersion} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link AiVersion} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link AiVersion} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the createdAt of this {@link AiVersion} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link AiVersion} class - */ - @Nonnull public AiVersion createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link AiVersion} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link AiVersion} class + */ + @Nonnull + public AiVersion createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link AiVersion} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link AiVersion} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link AiVersion} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link AiVersion} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link AiVersion} class - */ - @Nonnull public AiVersion modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link AiVersion} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link AiVersion} class + */ + @Nonnull + public AiVersion modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link AiVersion} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link AiVersion} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link AiVersion} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link AiVersion}. + * * @return The set of properties names */ @JsonIgnore @@ -215,31 +218,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiVersion} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiVersion has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiVersion has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiVersion} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiVersion} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -249,12 +252,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiVersion aiVersion = (AiVersion) o; - return Objects.equals(this.cloudSdkCustomFields, aiVersion.cloudSdkCustomFields) && - Objects.equals(this.description, aiVersion.description) && - Objects.equals(this.id, aiVersion.id) && - Objects.equals(this.scenarioId, aiVersion.scenarioId) && - Objects.equals(this.createdAt, aiVersion.createdAt) && - Objects.equals(this.modifiedAt, aiVersion.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, aiVersion.cloudSdkCustomFields) + && Objects.equals(this.description, aiVersion.description) + && Objects.equals(this.id, aiVersion.id) + && Objects.equals(this.scenarioId, aiVersion.scenarioId) + && Objects.equals(this.createdAt, aiVersion.createdAt) + && Objects.equals(this.modifiedAt, aiVersion.modifiedAt); } @Override @@ -263,7 +266,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiVersion {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); @@ -271,14 +275,15 @@ public int hashCode() { sb.append(" scenarioId: ").append(toIndentedString(scenarioId)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -287,48 +292,46 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiVersion} instance + * with all required arguments. + */ + public static Builder create() { + return (id) -> + (createdAt) -> + (modifiedAt) -> new AiVersion().id(id).createdAt(createdAt).modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiVersion} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (createdAt) -> (modifiedAt) -> new AiVersion().id(id).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link AiVersion} instance. - * - * @param id Version ID - * @return The AiVersion builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the createdAt of this {@link AiVersion} instance. - * - * @param createdAt Timestamp of resource creation - * @return The AiVersion builder. - */ - Builder2 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the id of this {@link AiVersion} instance. + * + * @param id Version ID + * @return The AiVersion builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the modifiedAt of this {@link AiVersion} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The AiVersion instance. - */ - AiVersion modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link AiVersion} instance. + * + * @param createdAt Timestamp of resource creation + * @return The AiVersion builder. + */ + Builder2 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the modifiedAt of this {@link AiVersion} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The AiVersion instance. + */ + AiVersion modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java index 449b4c24..9b4735a6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/AiVersionList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiVersion; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AiVersionList - */ +/** AiVersionList */ // CHECKSTYLE:OFF -public class AiVersionList +public class AiVersionList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class AiVersionList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AiVersionList() { } - - /** - * Set the count of this {@link AiVersionList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link AiVersionList} class - */ - @Nonnull public AiVersionList count(@Nonnull final Integer count) { + + protected AiVersionList() {} + + /** + * Set the count of this {@link AiVersionList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link AiVersionList} class + */ + @Nonnull + public AiVersionList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link AiVersionList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link AiVersionList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link AiVersionList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link AiVersionList} instance and return the same instance. - * - * @param resources The resources of this {@link AiVersionList} - * @return The same instance of this {@link AiVersionList} class - */ - @Nonnull public AiVersionList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link AiVersionList} instance and return the same instance. + * + * @param resources The resources of this {@link AiVersionList} + * @return The same instance of this {@link AiVersionList} class + */ + @Nonnull + public AiVersionList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link AiVersionList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link AiVersionList} */ - @Nonnull public AiVersionList addResourcesItem( @Nonnull final AiVersion resourcesItem) { + @Nonnull + public AiVersionList addResourcesItem(@Nonnull final AiVersion resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link AiVersionList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link AiVersionList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link AiVersionList} instance. * - * @param resources The resources of this {@link AiVersionList} + * @param resources The resources of this {@link AiVersionList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link AiVersionList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AiVersionList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AiVersionList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AiVersionList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AiVersionList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AiVersionList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AiVersionList aiVersionList = (AiVersionList) o; - return Objects.equals(this.cloudSdkCustomFields, aiVersionList.cloudSdkCustomFields) && - Objects.equals(this.count, aiVersionList.count) && - Objects.equals(this.resources, aiVersionList.resources); + return Objects.equals(this.cloudSdkCustomFields, aiVersionList.cloudSdkCustomFields) + && Objects.equals(this.count, aiVersionList.count) + && Objects.equals(this.resources, aiVersionList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AiVersionList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link AiVersionList} instance + * with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new AiVersionList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link AiVersionList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new AiVersionList().count(count).resources(resources); - } + * Set the count of this {@link AiVersionList} instance. + * + * @param count Number of the resource instances in the list + * @return The AiVersionList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link AiVersionList} instance. - * - * @param count Number of the resource instances in the list - * @return The AiVersionList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link AiVersionList} instance. + * + * @param resources The resources of this {@link AiVersionList} + * @return The AiVersionList instance. + */ + AiVersionList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link AiVersionList} instance. - * - * @param resources The resources of this {@link AiVersionList} - * @return The AiVersionList instance. - */ - AiVersionList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link AiVersionList} instance. - * - * @param resources The resources of this {@link AiVersionList} - * @return The AiVersionList instance. - */ - default AiVersionList resources( @Nonnull final AiVersion... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link AiVersionList} instance. + * + * @param resources The resources of this {@link AiVersionList} + * @return The AiVersionList instance. + */ + default AiVersionList resources(@Nonnull final AiVersion... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java index 6f19dfe4..a50acc0c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/ArtifactQuery400Response.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.AiApiError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * ArtifactQuery400Response - */ +/** ArtifactQuery400Response */ // CHECKSTYLE:OFF -public class ArtifactQuery400Response +public class ArtifactQuery400Response // CHECKSTYLE:ON { @JsonProperty("error") private AiApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected ArtifactQuery400Response() { } - - /** - * Set the error of this {@link ArtifactQuery400Response} instance and return the same instance. - * - * @param error The error of this {@link ArtifactQuery400Response} - * @return The same instance of this {@link ArtifactQuery400Response} class - */ - @Nonnull public ArtifactQuery400Response error(@Nonnull final AiApiError error) { + + protected ArtifactQuery400Response() {} + + /** + * Set the error of this {@link ArtifactQuery400Response} instance and return the same instance. + * + * @param error The error of this {@link ArtifactQuery400Response} + * @return The same instance of this {@link ArtifactQuery400Response} class + */ + @Nonnull + public ArtifactQuery400Response error(@Nonnull final AiApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link ArtifactQuery400Response} instance. - */ - @Nonnull public AiApiError getError() { + /** + * Get error + * + * @return error The error of this {@link ArtifactQuery400Response} instance. + */ + @Nonnull + public AiApiError getError() { return error; } /** * Set the error of this {@link ArtifactQuery400Response} instance. * - * @param error The error of this {@link ArtifactQuery400Response} + * @param error The error of this {@link ArtifactQuery400Response} */ - public void setError( @Nonnull final AiApiError error) { + public void setError(@Nonnull final AiApiError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link ArtifactQuery400Response}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link ArtifactQuery400Response} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("ArtifactQuery400Response has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "ArtifactQuery400Response has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link ArtifactQuery400Response} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link ArtifactQuery400Response} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +116,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final ArtifactQuery400Response artifactQuery400Response = (ArtifactQuery400Response) o; - return Objects.equals(this.cloudSdkCustomFields, artifactQuery400Response.cloudSdkCustomFields) && - Objects.equals(this.error, artifactQuery400Response.error); + return Objects.equals(this.cloudSdkCustomFields, artifactQuery400Response.cloudSdkCustomFields) + && Objects.equals(this.error, artifactQuery400Response.error); } @Override @@ -135,18 +126,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class ArtifactQuery400Response {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +148,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link ArtifactQuery400Response} instance. No arguments are required. - */ - public static ArtifactQuery400Response create() { - return new ArtifactQuery400Response(); - } - + /** Create a new {@link ArtifactQuery400Response} instance. No arguments are required. */ + public static ArtifactQuery400Response create() { + return new ArtifactQuery400Response(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java index 72d31014..076442bd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndAllArgoCDApplicationData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationData; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * list of applications - */ +/** list of applications */ // CHECKSTYLE:OFF -public class BckndAllArgoCDApplicationData +public class BckndAllArgoCDApplicationData // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,66 @@ public class BckndAllArgoCDApplicationData @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndAllArgoCDApplicationData() { } - - /** - * Set the count of this {@link BckndAllArgoCDApplicationData} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BckndAllArgoCDApplicationData} class - */ - @Nonnull public BckndAllArgoCDApplicationData count(@Nonnull final Integer count) { + + protected BckndAllArgoCDApplicationData() {} + + /** + * Set the count of this {@link BckndAllArgoCDApplicationData} instance and return the same + * instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BckndAllArgoCDApplicationData} class + */ + @Nonnull + public BckndAllArgoCDApplicationData count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BckndAllArgoCDApplicationData} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BckndAllArgoCDApplicationData} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndAllArgoCDApplicationData} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BckndAllArgoCDApplicationData} instance and return the same instance. - * - * @param resources The resources of this {@link BckndAllArgoCDApplicationData} - * @return The same instance of this {@link BckndAllArgoCDApplicationData} class - */ - @Nonnull public BckndAllArgoCDApplicationData resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BckndAllArgoCDApplicationData} instance and return the same + * instance. + * + * @param resources The resources of this {@link BckndAllArgoCDApplicationData} + * @return The same instance of this {@link BckndAllArgoCDApplicationData} class + */ + @Nonnull + public BckndAllArgoCDApplicationData resources( + @Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BckndAllArgoCDApplicationData}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BckndAllArgoCDApplicationData} */ - @Nonnull public BckndAllArgoCDApplicationData addResourcesItem( @Nonnull final BckndArgoCDApplicationData resourcesItem) { + @Nonnull + public BckndAllArgoCDApplicationData addResourcesItem( + @Nonnull final BckndArgoCDApplicationData resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +105,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BckndAllArgoCDApplicationData} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BckndAllArgoCDApplicationData} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. * - * @param resources The resources of this {@link BckndAllArgoCDApplicationData} + * @param resources The resources of this {@link BckndAllArgoCDApplicationData} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link BckndAllArgoCDApplicationData}. + * * @return The set of properties names */ @JsonIgnore @@ -136,32 +136,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndAllArgoCDApplicationData} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndAllArgoCDApplicationData} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndAllArgoCDApplicationData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndAllArgoCDApplicationData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndAllArgoCDApplicationData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndAllArgoCDApplicationData} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -170,10 +173,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndAllArgoCDApplicationData bckndAllArgoCDApplicationData = (BckndAllArgoCDApplicationData) o; - return Objects.equals(this.cloudSdkCustomFields, bckndAllArgoCDApplicationData.cloudSdkCustomFields) && - Objects.equals(this.count, bckndAllArgoCDApplicationData.count) && - Objects.equals(this.resources, bckndAllArgoCDApplicationData.resources); + final BckndAllArgoCDApplicationData bckndAllArgoCDApplicationData = + (BckndAllArgoCDApplicationData) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndAllArgoCDApplicationData.cloudSdkCustomFields) + && Objects.equals(this.count, bckndAllArgoCDApplicationData.count) + && Objects.equals(this.resources, bckndAllArgoCDApplicationData.resources); } @Override @@ -182,19 +187,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndAllArgoCDApplicationData {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +210,46 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndAllArgoCDApplicationData} instance with all required arguments. + */ + public static Builder create() { + return (count) -> + (resources) -> new BckndAllArgoCDApplicationData().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndAllArgoCDApplicationData} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BckndAllArgoCDApplicationData().count(count).resources(resources); - } + * Set the count of this {@link BckndAllArgoCDApplicationData} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndAllArgoCDApplicationData builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndAllArgoCDApplicationData} instance. - * - * @param count Number of the resource instances in the list - * @return The BckndAllArgoCDApplicationData builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. + * + * @param resources The resources of this {@link BckndAllArgoCDApplicationData} + * @return The BckndAllArgoCDApplicationData instance. + */ + BckndAllArgoCDApplicationData resources( + @Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. - * - * @param resources The resources of this {@link BckndAllArgoCDApplicationData} - * @return The BckndAllArgoCDApplicationData instance. - */ - BckndAllArgoCDApplicationData resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. - * - * @param resources The resources of this {@link BckndAllArgoCDApplicationData} - * @return The BckndAllArgoCDApplicationData instance. - */ - default BckndAllArgoCDApplicationData resources( @Nonnull final BckndArgoCDApplicationData... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BckndAllArgoCDApplicationData} instance. + * + * @param resources The resources of this {@link BckndAllArgoCDApplicationData} + * @return The BckndAllArgoCDApplicationData instance. + */ + default BckndAllArgoCDApplicationData resources( + @Nonnull final BckndArgoCDApplicationData... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java index 9f8ffae7..c47f2386 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationBaseData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationBaseData - */ +/** BckndArgoCDApplicationBaseData */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationBaseData +public class BckndArgoCDApplicationBaseData // CHECKSTYLE:ON { @JsonProperty("repositoryUrl") @@ -51,97 +38,111 @@ public class BckndArgoCDApplicationBaseData @JsonProperty("path") private String path; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationBaseData() { } - /** - * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance and return the same instance. - * - * @param repositoryUrl URL of the repository to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationBaseData} class - */ - @Nonnull public BckndArgoCDApplicationBaseData repositoryUrl(@Nonnull final String repositoryUrl) { + protected BckndArgoCDApplicationBaseData() {} + + /** + * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance and return the + * same instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationBaseData} class + */ + @Nonnull + public BckndArgoCDApplicationBaseData repositoryUrl(@Nonnull final String repositoryUrl) { this.repositoryUrl = repositoryUrl; return this; } - /** - * URL of the repository to synchronise - * @return repositoryUrl The repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance. - */ - @Nonnull public String getRepositoryUrl() { + /** + * URL of the repository to synchronise + * + * @return repositoryUrl The repositoryUrl of this {@link BckndArgoCDApplicationBaseData} + * instance. + */ + @Nonnull + public String getRepositoryUrl() { return repositoryUrl; } /** * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance. * - * @param repositoryUrl URL of the repository to synchronise + * @param repositoryUrl URL of the repository to synchronise */ - public void setRepositoryUrl( @Nonnull final String repositoryUrl) { + public void setRepositoryUrl(@Nonnull final String repositoryUrl) { this.repositoryUrl = repositoryUrl; } - /** - * Set the revision of this {@link BckndArgoCDApplicationBaseData} instance and return the same instance. - * - * @param revision revision to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationBaseData} class - */ - @Nonnull public BckndArgoCDApplicationBaseData revision(@Nonnull final String revision) { + /** + * Set the revision of this {@link BckndArgoCDApplicationBaseData} instance and return the same + * instance. + * + * @param revision revision to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationBaseData} class + */ + @Nonnull + public BckndArgoCDApplicationBaseData revision(@Nonnull final String revision) { this.revision = revision; return this; } - /** - * revision to synchronise - * @return revision The revision of this {@link BckndArgoCDApplicationBaseData} instance. - */ - @Nonnull public String getRevision() { + /** + * revision to synchronise + * + * @return revision The revision of this {@link BckndArgoCDApplicationBaseData} instance. + */ + @Nonnull + public String getRevision() { return revision; } /** * Set the revision of this {@link BckndArgoCDApplicationBaseData} instance. * - * @param revision revision to synchronise + * @param revision revision to synchronise */ - public void setRevision( @Nonnull final String revision) { + public void setRevision(@Nonnull final String revision) { this.revision = revision; } - /** - * Set the path of this {@link BckndArgoCDApplicationBaseData} instance and return the same instance. - * - * @param path path within the repository to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationBaseData} class - */ - @Nonnull public BckndArgoCDApplicationBaseData path(@Nonnull final String path) { + /** + * Set the path of this {@link BckndArgoCDApplicationBaseData} instance and return the same + * instance. + * + * @param path path within the repository to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationBaseData} class + */ + @Nonnull + public BckndArgoCDApplicationBaseData path(@Nonnull final String path) { this.path = path; return this; } - /** - * path within the repository to synchronise - * @return path The path of this {@link BckndArgoCDApplicationBaseData} instance. - */ - @Nonnull public String getPath() { + /** + * path within the repository to synchronise + * + * @return path The path of this {@link BckndArgoCDApplicationBaseData} instance. + */ + @Nonnull + public String getPath() { return path; } /** * Set the path of this {@link BckndArgoCDApplicationBaseData} instance. * - * @param path path within the repository to synchronise + * @param path path within the repository to synchronise */ - public void setPath( @Nonnull final String path) { + public void setPath(@Nonnull final String path) { this.path = path; } /** * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationBaseData}. + * * @return The set of properties names */ @JsonIgnore @@ -151,32 +152,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationBaseData} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationBaseData} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationBaseData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationBaseData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationBaseData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationBaseData} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -185,11 +189,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData = (BckndArgoCDApplicationBaseData) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationBaseData.cloudSdkCustomFields) && - Objects.equals(this.repositoryUrl, bckndArgoCDApplicationBaseData.repositoryUrl) && - Objects.equals(this.revision, bckndArgoCDApplicationBaseData.revision) && - Objects.equals(this.path, bckndArgoCDApplicationBaseData.path); + final BckndArgoCDApplicationBaseData bckndArgoCDApplicationBaseData = + (BckndArgoCDApplicationBaseData) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationBaseData.cloudSdkCustomFields) + && Objects.equals(this.repositoryUrl, bckndArgoCDApplicationBaseData.repositoryUrl) + && Objects.equals(this.revision, bckndArgoCDApplicationBaseData.revision) + && Objects.equals(this.path, bckndArgoCDApplicationBaseData.path); } @Override @@ -198,20 +204,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationBaseData {\n"); sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,48 +228,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationBaseData} instance with all required arguments. + */ + public static Builder create() { + return (repositoryUrl) -> + (revision) -> + (path) -> + new BckndArgoCDApplicationBaseData() + .repositoryUrl(repositoryUrl) + .revision(revision) + .path(path); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationBaseData} instance with all required arguments. - */ - public static Builder create() { - return (repositoryUrl) -> (revision) -> (path) -> new BckndArgoCDApplicationBaseData().repositoryUrl(repositoryUrl).revision(revision).path(path); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance. - * - * @param repositoryUrl URL of the repository to synchronise - * @return The BckndArgoCDApplicationBaseData builder. - */ - Builder1 repositoryUrl( @Nonnull final String repositoryUrl); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the revision of this {@link BckndArgoCDApplicationBaseData} instance. - * - * @param revision revision to synchronise - * @return The BckndArgoCDApplicationBaseData builder. - */ - Builder2 revision( @Nonnull final String revision); - } + * Set the repositoryUrl of this {@link BckndArgoCDApplicationBaseData} instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The BckndArgoCDApplicationBaseData builder. + */ + Builder1 repositoryUrl(@Nonnull final String repositoryUrl); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the path of this {@link BckndArgoCDApplicationBaseData} instance. - * - * @param path path within the repository to synchronise - * @return The BckndArgoCDApplicationBaseData instance. - */ - BckndArgoCDApplicationBaseData path( @Nonnull final String path); - } + * Set the revision of this {@link BckndArgoCDApplicationBaseData} instance. + * + * @param revision revision to synchronise + * @return The BckndArgoCDApplicationBaseData builder. + */ + Builder2 revision(@Nonnull final String revision); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the path of this {@link BckndArgoCDApplicationBaseData} instance. + * + * @param path path within the repository to synchronise + * @return The BckndArgoCDApplicationBaseData instance. + */ + BckndArgoCDApplicationBaseData path(@Nonnull final String path); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java index 0af6b0cf..39f26836 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationCreationResponse - */ +/** BckndArgoCDApplicationCreationResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationCreationResponse +public class BckndArgoCDApplicationCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndArgoCDApplicationCreationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationCreationResponse() { } - - /** - * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDApplicationCreationResponse} class - */ - @Nonnull public BckndArgoCDApplicationCreationResponse id(@Nonnull final String id) { + + protected BckndArgoCDApplicationCreationResponse() {} + + /** + * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDApplicationCreationResponse} class + */ + @Nonnull + public BckndArgoCDApplicationCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDApplicationCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDApplicationCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDApplicationCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDApplicationCreationResponse} class - */ - @Nonnull public BckndArgoCDApplicationCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDApplicationCreationResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDApplicationCreationResponse} class + */ + @Nonnull + public BckndArgoCDApplicationCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDApplicationCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDApplicationCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDApplicationCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationCreationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDApplicationCreationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationCreationResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationCreationResponse bckndArgoCDApplicationCreationResponse = (BckndArgoCDApplicationCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDApplicationCreationResponse.id) && - Objects.equals(this.message, bckndArgoCDApplicationCreationResponse.message); + final BckndArgoCDApplicationCreationResponse bckndArgoCDApplicationCreationResponse = + (BckndArgoCDApplicationCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDApplicationCreationResponse.id) + && Objects.equals(this.message, bckndArgoCDApplicationCreationResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BckndArgoCDApplicationCreationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDApplicationCreationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDApplicationCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDApplicationCreationResponse} instance. - * - * @param message Message - * @return The BckndArgoCDApplicationCreationResponse instance. - */ - BckndArgoCDApplicationCreationResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDApplicationCreationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationCreationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationCreationResponse instance. + */ + BckndArgoCDApplicationCreationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java index 0fa3fbce..9aa55f3d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationData - */ +/** BckndArgoCDApplicationData */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationData +public class BckndArgoCDApplicationData // CHECKSTYLE:ON { @JsonProperty("repositoryUrl") @@ -54,125 +41,142 @@ public class BckndArgoCDApplicationData @JsonProperty("applicationName") private String applicationName; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationData() { } - /** - * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance and return the same instance. - * - * @param repositoryUrl URL of the repository to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationData} class - */ - @Nonnull public BckndArgoCDApplicationData repositoryUrl(@Nonnull final String repositoryUrl) { + protected BckndArgoCDApplicationData() {} + + /** + * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance and return the same + * instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationData} class + */ + @Nonnull + public BckndArgoCDApplicationData repositoryUrl(@Nonnull final String repositoryUrl) { this.repositoryUrl = repositoryUrl; return this; } - /** - * URL of the repository to synchronise - * @return repositoryUrl The repositoryUrl of this {@link BckndArgoCDApplicationData} instance. - */ - @Nonnull public String getRepositoryUrl() { + /** + * URL of the repository to synchronise + * + * @return repositoryUrl The repositoryUrl of this {@link BckndArgoCDApplicationData} instance. + */ + @Nonnull + public String getRepositoryUrl() { return repositoryUrl; } /** * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance. * - * @param repositoryUrl URL of the repository to synchronise + * @param repositoryUrl URL of the repository to synchronise */ - public void setRepositoryUrl( @Nonnull final String repositoryUrl) { + public void setRepositoryUrl(@Nonnull final String repositoryUrl) { this.repositoryUrl = repositoryUrl; } - /** - * Set the revision of this {@link BckndArgoCDApplicationData} instance and return the same instance. - * - * @param revision revision to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationData} class - */ - @Nonnull public BckndArgoCDApplicationData revision(@Nonnull final String revision) { + /** + * Set the revision of this {@link BckndArgoCDApplicationData} instance and return the same + * instance. + * + * @param revision revision to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationData} class + */ + @Nonnull + public BckndArgoCDApplicationData revision(@Nonnull final String revision) { this.revision = revision; return this; } - /** - * revision to synchronise - * @return revision The revision of this {@link BckndArgoCDApplicationData} instance. - */ - @Nonnull public String getRevision() { + /** + * revision to synchronise + * + * @return revision The revision of this {@link BckndArgoCDApplicationData} instance. + */ + @Nonnull + public String getRevision() { return revision; } /** * Set the revision of this {@link BckndArgoCDApplicationData} instance. * - * @param revision revision to synchronise + * @param revision revision to synchronise */ - public void setRevision( @Nonnull final String revision) { + public void setRevision(@Nonnull final String revision) { this.revision = revision; } - /** - * Set the path of this {@link BckndArgoCDApplicationData} instance and return the same instance. - * - * @param path path within the repository to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationData} class - */ - @Nonnull public BckndArgoCDApplicationData path(@Nonnull final String path) { + /** + * Set the path of this {@link BckndArgoCDApplicationData} instance and return the same instance. + * + * @param path path within the repository to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationData} class + */ + @Nonnull + public BckndArgoCDApplicationData path(@Nonnull final String path) { this.path = path; return this; } - /** - * path within the repository to synchronise - * @return path The path of this {@link BckndArgoCDApplicationData} instance. - */ - @Nonnull public String getPath() { + /** + * path within the repository to synchronise + * + * @return path The path of this {@link BckndArgoCDApplicationData} instance. + */ + @Nonnull + public String getPath() { return path; } /** * Set the path of this {@link BckndArgoCDApplicationData} instance. * - * @param path path within the repository to synchronise + * @param path path within the repository to synchronise */ - public void setPath( @Nonnull final String path) { + public void setPath(@Nonnull final String path) { this.path = path; } - /** - * Set the applicationName of this {@link BckndArgoCDApplicationData} instance and return the same instance. - * - * @param applicationName ArgoCD application name - * @return The same instance of this {@link BckndArgoCDApplicationData} class - */ - @Nonnull public BckndArgoCDApplicationData applicationName(@Nonnull final String applicationName) { + /** + * Set the applicationName of this {@link BckndArgoCDApplicationData} instance and return the same + * instance. + * + * @param applicationName ArgoCD application name + * @return The same instance of this {@link BckndArgoCDApplicationData} class + */ + @Nonnull + public BckndArgoCDApplicationData applicationName(@Nonnull final String applicationName) { this.applicationName = applicationName; return this; } - /** - * ArgoCD application name - * @return applicationName The applicationName of this {@link BckndArgoCDApplicationData} instance. - */ - @Nonnull public String getApplicationName() { + /** + * ArgoCD application name + * + * @return applicationName The applicationName of this {@link BckndArgoCDApplicationData} + * instance. + */ + @Nonnull + public String getApplicationName() { return applicationName; } /** * Set the applicationName of this {@link BckndArgoCDApplicationData} instance. * - * @param applicationName ArgoCD application name + * @param applicationName ArgoCD application name */ - public void setApplicationName( @Nonnull final String applicationName) { + public void setApplicationName(@Nonnull final String applicationName) { this.applicationName = applicationName; } /** * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationData}. + * * @return The set of properties names */ @JsonIgnore @@ -182,32 +186,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationData} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationData} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationData} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -217,11 +223,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndArgoCDApplicationData bckndArgoCDApplicationData = (BckndArgoCDApplicationData) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationData.cloudSdkCustomFields) && - Objects.equals(this.repositoryUrl, bckndArgoCDApplicationData.repositoryUrl) && - Objects.equals(this.revision, bckndArgoCDApplicationData.revision) && - Objects.equals(this.path, bckndArgoCDApplicationData.path) && - Objects.equals(this.applicationName, bckndArgoCDApplicationData.applicationName); + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationData.cloudSdkCustomFields) + && Objects.equals(this.repositoryUrl, bckndArgoCDApplicationData.repositoryUrl) + && Objects.equals(this.revision, bckndArgoCDApplicationData.revision) + && Objects.equals(this.path, bckndArgoCDApplicationData.path) + && Objects.equals(this.applicationName, bckndArgoCDApplicationData.applicationName); } @Override @@ -230,21 +237,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationData {\n"); sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -253,48 +262,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationData} instance with all required arguments. + */ + public static Builder create() { + return (repositoryUrl) -> + (revision) -> + (path) -> + new BckndArgoCDApplicationData() + .repositoryUrl(repositoryUrl) + .revision(revision) + .path(path); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationData} instance with all required arguments. - */ - public static Builder create() { - return (repositoryUrl) -> (revision) -> (path) -> new BckndArgoCDApplicationData().repositoryUrl(repositoryUrl).revision(revision).path(path); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance. - * - * @param repositoryUrl URL of the repository to synchronise - * @return The BckndArgoCDApplicationData builder. - */ - Builder1 repositoryUrl( @Nonnull final String repositoryUrl); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the revision of this {@link BckndArgoCDApplicationData} instance. - * - * @param revision revision to synchronise - * @return The BckndArgoCDApplicationData builder. - */ - Builder2 revision( @Nonnull final String revision); - } + * Set the repositoryUrl of this {@link BckndArgoCDApplicationData} instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The BckndArgoCDApplicationData builder. + */ + Builder1 repositoryUrl(@Nonnull final String repositoryUrl); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the path of this {@link BckndArgoCDApplicationData} instance. - * - * @param path path within the repository to synchronise - * @return The BckndArgoCDApplicationData instance. - */ - BckndArgoCDApplicationData path( @Nonnull final String path); - } + * Set the revision of this {@link BckndArgoCDApplicationData} instance. + * + * @param revision revision to synchronise + * @return The BckndArgoCDApplicationData builder. + */ + Builder2 revision(@Nonnull final String revision); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the path of this {@link BckndArgoCDApplicationData} instance. + * + * @param path path within the repository to synchronise + * @return The BckndArgoCDApplicationData instance. + */ + BckndArgoCDApplicationData path(@Nonnull final String path); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java index 93edd01f..613c8031 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDataRepoName.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationDataRepoName - */ +/** BckndArgoCDApplicationDataRepoName */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationDataRepoName +public class BckndArgoCDApplicationDataRepoName // CHECKSTYLE:ON { @JsonProperty("repositoryName") @@ -54,125 +41,145 @@ public class BckndArgoCDApplicationDataRepoName @JsonProperty("applicationName") private String applicationName; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationDataRepoName() { } - /** - * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance and return the same instance. - * - * @param repositoryName Name of the repository to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class - */ - @Nonnull public BckndArgoCDApplicationDataRepoName repositoryName(@Nonnull final String repositoryName) { + protected BckndArgoCDApplicationDataRepoName() {} + + /** + * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance and return + * the same instance. + * + * @param repositoryName Name of the repository to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class + */ + @Nonnull + public BckndArgoCDApplicationDataRepoName repositoryName(@Nonnull final String repositoryName) { this.repositoryName = repositoryName; return this; } - /** - * Name of the repository to synchronise - * @return repositoryName The repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance. - */ - @Nonnull public String getRepositoryName() { + /** + * Name of the repository to synchronise + * + * @return repositoryName The repositoryName of this {@link BckndArgoCDApplicationDataRepoName} + * instance. + */ + @Nonnull + public String getRepositoryName() { return repositoryName; } /** * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance. * - * @param repositoryName Name of the repository to synchronise + * @param repositoryName Name of the repository to synchronise */ - public void setRepositoryName( @Nonnull final String repositoryName) { + public void setRepositoryName(@Nonnull final String repositoryName) { this.repositoryName = repositoryName; } - /** - * Set the revision of this {@link BckndArgoCDApplicationDataRepoName} instance and return the same instance. - * - * @param revision revision to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class - */ - @Nonnull public BckndArgoCDApplicationDataRepoName revision(@Nonnull final String revision) { + /** + * Set the revision of this {@link BckndArgoCDApplicationDataRepoName} instance and return the + * same instance. + * + * @param revision revision to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class + */ + @Nonnull + public BckndArgoCDApplicationDataRepoName revision(@Nonnull final String revision) { this.revision = revision; return this; } - /** - * revision to synchronise - * @return revision The revision of this {@link BckndArgoCDApplicationDataRepoName} instance. - */ - @Nonnull public String getRevision() { + /** + * revision to synchronise + * + * @return revision The revision of this {@link BckndArgoCDApplicationDataRepoName} instance. + */ + @Nonnull + public String getRevision() { return revision; } /** * Set the revision of this {@link BckndArgoCDApplicationDataRepoName} instance. * - * @param revision revision to synchronise + * @param revision revision to synchronise */ - public void setRevision( @Nonnull final String revision) { + public void setRevision(@Nonnull final String revision) { this.revision = revision; } - /** - * Set the path of this {@link BckndArgoCDApplicationDataRepoName} instance and return the same instance. - * - * @param path path within the repository to synchronise - * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class - */ - @Nonnull public BckndArgoCDApplicationDataRepoName path(@Nonnull final String path) { + /** + * Set the path of this {@link BckndArgoCDApplicationDataRepoName} instance and return the same + * instance. + * + * @param path path within the repository to synchronise + * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class + */ + @Nonnull + public BckndArgoCDApplicationDataRepoName path(@Nonnull final String path) { this.path = path; return this; } - /** - * path within the repository to synchronise - * @return path The path of this {@link BckndArgoCDApplicationDataRepoName} instance. - */ - @Nonnull public String getPath() { + /** + * path within the repository to synchronise + * + * @return path The path of this {@link BckndArgoCDApplicationDataRepoName} instance. + */ + @Nonnull + public String getPath() { return path; } /** * Set the path of this {@link BckndArgoCDApplicationDataRepoName} instance. * - * @param path path within the repository to synchronise + * @param path path within the repository to synchronise */ - public void setPath( @Nonnull final String path) { + public void setPath(@Nonnull final String path) { this.path = path; } - /** - * Set the applicationName of this {@link BckndArgoCDApplicationDataRepoName} instance and return the same instance. - * - * @param applicationName ArgoCD application name - * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class - */ - @Nonnull public BckndArgoCDApplicationDataRepoName applicationName(@Nonnull final String applicationName) { + /** + * Set the applicationName of this {@link BckndArgoCDApplicationDataRepoName} instance and return + * the same instance. + * + * @param applicationName ArgoCD application name + * @return The same instance of this {@link BckndArgoCDApplicationDataRepoName} class + */ + @Nonnull + public BckndArgoCDApplicationDataRepoName applicationName(@Nonnull final String applicationName) { this.applicationName = applicationName; return this; } - /** - * ArgoCD application name - * @return applicationName The applicationName of this {@link BckndArgoCDApplicationDataRepoName} instance. - */ - @Nonnull public String getApplicationName() { + /** + * ArgoCD application name + * + * @return applicationName The applicationName of this {@link BckndArgoCDApplicationDataRepoName} + * instance. + */ + @Nonnull + public String getApplicationName() { return applicationName; } /** * Set the applicationName of this {@link BckndArgoCDApplicationDataRepoName} instance. * - * @param applicationName ArgoCD application name + * @param applicationName ArgoCD application name */ - public void setApplicationName( @Nonnull final String applicationName) { + public void setApplicationName(@Nonnull final String applicationName) { this.applicationName = applicationName; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationDataRepoName}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationDataRepoName}. + * * @return The set of properties names */ @JsonIgnore @@ -182,32 +189,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationDataRepoName} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationDataRepoName} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationDataRepoName has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationDataRepoName has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationDataRepoName} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationDataRepoName} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -216,12 +226,14 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationDataRepoName bckndArgoCDApplicationDataRepoName = (BckndArgoCDApplicationDataRepoName) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationDataRepoName.cloudSdkCustomFields) && - Objects.equals(this.repositoryName, bckndArgoCDApplicationDataRepoName.repositoryName) && - Objects.equals(this.revision, bckndArgoCDApplicationDataRepoName.revision) && - Objects.equals(this.path, bckndArgoCDApplicationDataRepoName.path) && - Objects.equals(this.applicationName, bckndArgoCDApplicationDataRepoName.applicationName); + final BckndArgoCDApplicationDataRepoName bckndArgoCDApplicationDataRepoName = + (BckndArgoCDApplicationDataRepoName) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationDataRepoName.cloudSdkCustomFields) + && Objects.equals(this.repositoryName, bckndArgoCDApplicationDataRepoName.repositoryName) + && Objects.equals(this.revision, bckndArgoCDApplicationDataRepoName.revision) + && Objects.equals(this.path, bckndArgoCDApplicationDataRepoName.path) + && Objects.equals(this.applicationName, bckndArgoCDApplicationDataRepoName.applicationName); } @Override @@ -230,21 +242,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationDataRepoName {\n"); sb.append(" repositoryName: ").append(toIndentedString(repositoryName)).append("\n"); sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -253,48 +267,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationDataRepoName} instance with all required arguments. + */ + public static Builder create() { + return (repositoryName) -> + (revision) -> + (path) -> + new BckndArgoCDApplicationDataRepoName() + .repositoryName(repositoryName) + .revision(revision) + .path(path); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationDataRepoName} instance with all required arguments. - */ - public static Builder create() { - return (repositoryName) -> (revision) -> (path) -> new BckndArgoCDApplicationDataRepoName().repositoryName(repositoryName).revision(revision).path(path); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance. - * - * @param repositoryName Name of the repository to synchronise - * @return The BckndArgoCDApplicationDataRepoName builder. - */ - Builder1 repositoryName( @Nonnull final String repositoryName); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the revision of this {@link BckndArgoCDApplicationDataRepoName} instance. - * - * @param revision revision to synchronise - * @return The BckndArgoCDApplicationDataRepoName builder. - */ - Builder2 revision( @Nonnull final String revision); - } + * Set the repositoryName of this {@link BckndArgoCDApplicationDataRepoName} instance. + * + * @param repositoryName Name of the repository to synchronise + * @return The BckndArgoCDApplicationDataRepoName builder. + */ + Builder1 repositoryName(@Nonnull final String repositoryName); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the path of this {@link BckndArgoCDApplicationDataRepoName} instance. - * - * @param path path within the repository to synchronise - * @return The BckndArgoCDApplicationDataRepoName instance. - */ - BckndArgoCDApplicationDataRepoName path( @Nonnull final String path); - } + * Set the revision of this {@link BckndArgoCDApplicationDataRepoName} instance. + * + * @param revision revision to synchronise + * @return The BckndArgoCDApplicationDataRepoName builder. + */ + Builder2 revision(@Nonnull final String revision); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the path of this {@link BckndArgoCDApplicationDataRepoName} instance. + * + * @param path path within the repository to synchronise + * @return The BckndArgoCDApplicationDataRepoName instance. + */ + BckndArgoCDApplicationDataRepoName path(@Nonnull final String path); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java index 638c8af8..b7b35030 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationDeletionResponse - */ +/** BckndArgoCDApplicationDeletionResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationDeletionResponse +public class BckndArgoCDApplicationDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndArgoCDApplicationDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationDeletionResponse() { } - - /** - * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDApplicationDeletionResponse} class - */ - @Nonnull public BckndArgoCDApplicationDeletionResponse id(@Nonnull final String id) { + + protected BckndArgoCDApplicationDeletionResponse() {} + + /** + * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDApplicationDeletionResponse} class + */ + @Nonnull + public BckndArgoCDApplicationDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDApplicationDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDApplicationDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDApplicationDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDApplicationDeletionResponse} class - */ - @Nonnull public BckndArgoCDApplicationDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDApplicationDeletionResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDApplicationDeletionResponse} class + */ + @Nonnull + public BckndArgoCDApplicationDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDApplicationDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDApplicationDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDApplicationDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationDeletionResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDApplicationDeletionResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationDeletionResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationDeletionResponse bckndArgoCDApplicationDeletionResponse = (BckndArgoCDApplicationDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDApplicationDeletionResponse.id) && - Objects.equals(this.message, bckndArgoCDApplicationDeletionResponse.message); + final BckndArgoCDApplicationDeletionResponse bckndArgoCDApplicationDeletionResponse = + (BckndArgoCDApplicationDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDApplicationDeletionResponse.id) + && Objects.equals(this.message, bckndArgoCDApplicationDeletionResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BckndArgoCDApplicationDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDApplicationDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDApplicationDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDApplicationDeletionResponse} instance. - * - * @param message Message - * @return The BckndArgoCDApplicationDeletionResponse instance. - */ - BckndArgoCDApplicationDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDApplicationDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationDeletionResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationDeletionResponse instance. + */ + BckndArgoCDApplicationDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java index 16ae8126..715727fe 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationModificationResponse - */ +/** BckndArgoCDApplicationModificationResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationModificationResponse +public class BckndArgoCDApplicationModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,80 @@ public class BckndArgoCDApplicationModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationModificationResponse() { } - - /** - * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDApplicationModificationResponse} class - */ - @Nonnull public BckndArgoCDApplicationModificationResponse id(@Nonnull final String id) { + + protected BckndArgoCDApplicationModificationResponse() {} + + /** + * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance and return the + * same instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDApplicationModificationResponse} class + */ + @Nonnull + public BckndArgoCDApplicationModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDApplicationModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDApplicationModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDApplicationModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDApplicationModificationResponse} class - */ - @Nonnull public BckndArgoCDApplicationModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDApplicationModificationResponse} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDApplicationModificationResponse} class + */ + @Nonnull + public BckndArgoCDApplicationModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDApplicationModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDApplicationModificationResponse} + * instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDApplicationModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +118,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDApplicationModificationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationModificationResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +155,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationModificationResponse bckndArgoCDApplicationModificationResponse = (BckndArgoCDApplicationModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDApplicationModificationResponse.id) && - Objects.equals(this.message, bckndArgoCDApplicationModificationResponse.message); + final BckndArgoCDApplicationModificationResponse bckndArgoCDApplicationModificationResponse = + (BckndArgoCDApplicationModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndArgoCDApplicationModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDApplicationModificationResponse.id) + && Objects.equals(this.message, bckndArgoCDApplicationModificationResponse.message); } @Override @@ -166,19 +170,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +193,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BckndArgoCDApplicationModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDApplicationModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDApplicationModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDApplicationModificationResponse} instance. - * - * @param message Message - * @return The BckndArgoCDApplicationModificationResponse instance. - */ - BckndArgoCDApplicationModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDApplicationModificationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationModificationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationModificationResponse instance. + */ + BckndArgoCDApplicationModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java index 1133687c..51ca8091 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationRefreshResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationRefreshResponse - */ +/** BckndArgoCDApplicationRefreshResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationRefreshResponse +public class BckndArgoCDApplicationRefreshResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndArgoCDApplicationRefreshResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationRefreshResponse() { } - - /** - * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDApplicationRefreshResponse} class - */ - @Nonnull public BckndArgoCDApplicationRefreshResponse id(@Nonnull final String id) { + + protected BckndArgoCDApplicationRefreshResponse() {} + + /** + * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDApplicationRefreshResponse} class + */ + @Nonnull + public BckndArgoCDApplicationRefreshResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDApplicationRefreshResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDApplicationRefreshResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDApplicationRefreshResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDApplicationRefreshResponse} class - */ - @Nonnull public BckndArgoCDApplicationRefreshResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDApplicationRefreshResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDApplicationRefreshResponse} class + */ + @Nonnull + public BckndArgoCDApplicationRefreshResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDApplicationRefreshResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDApplicationRefreshResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDApplicationRefreshResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationRefreshResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationRefreshResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationRefreshResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDApplicationRefreshResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationRefreshResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationRefreshResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationRefreshResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationRefreshResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationRefreshResponse bckndArgoCDApplicationRefreshResponse = (BckndArgoCDApplicationRefreshResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationRefreshResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDApplicationRefreshResponse.id) && - Objects.equals(this.message, bckndArgoCDApplicationRefreshResponse.message); + final BckndArgoCDApplicationRefreshResponse bckndArgoCDApplicationRefreshResponse = + (BckndArgoCDApplicationRefreshResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationRefreshResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDApplicationRefreshResponse.id) + && Objects.equals(this.message, bckndArgoCDApplicationRefreshResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationRefreshResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDApplicationRefreshResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDApplicationRefreshResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDApplicationRefreshResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDApplicationRefreshResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDApplicationRefreshResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDApplicationRefreshResponse} instance. - * - * @param message Message - * @return The BckndArgoCDApplicationRefreshResponse instance. - */ - BckndArgoCDApplicationRefreshResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDApplicationRefreshResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDApplicationRefreshResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDApplicationRefreshResponse} instance. + * + * @param message Message + * @return The BckndArgoCDApplicationRefreshResponse instance. + */ + BckndArgoCDApplicationRefreshResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java index d698bd0e..6037304a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationStatusSource; -import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationStatusSyncResourcesStatusInner; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * ArgoCD application definition and status - */ +/** ArgoCD application definition and status */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationStatus +public class BckndArgoCDApplicationStatus // CHECKSTYLE:ON { @JsonProperty("healthStatus") @@ -69,228 +53,275 @@ public class BckndArgoCDApplicationStatus private String reconciledAt; @JsonProperty("syncResourcesStatus") - private List syncResourcesStatus = new ArrayList<>(); + private List syncResourcesStatus = + new ArrayList<>(); @JsonProperty("syncRessourcesStatus") - private List syncRessourcesStatus = new ArrayList<>(); + private List syncRessourcesStatus = + new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationStatus() { } - - /** - * Set the healthStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param healthStatus ArgoCD application health status - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus healthStatus(@Nonnull final String healthStatus) { + + protected BckndArgoCDApplicationStatus() {} + + /** + * Set the healthStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same + * instance. + * + * @param healthStatus ArgoCD application health status + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus healthStatus(@Nonnull final String healthStatus) { this.healthStatus = healthStatus; return this; } - /** - * ArgoCD application health status - * @return healthStatus The healthStatus of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public String getHealthStatus() { + /** + * ArgoCD application health status + * + * @return healthStatus The healthStatus of this {@link BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public String getHealthStatus() { return healthStatus; } /** * Set the healthStatus of this {@link BckndArgoCDApplicationStatus} instance. * - * @param healthStatus ArgoCD application health status + * @param healthStatus ArgoCD application health status */ - public void setHealthStatus( @Nonnull final String healthStatus) { + public void setHealthStatus(@Nonnull final String healthStatus) { this.healthStatus = healthStatus; } - /** - * Set the syncStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param syncStatus ArgoCD application sync status - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus syncStatus(@Nonnull final String syncStatus) { + /** + * Set the syncStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same + * instance. + * + * @param syncStatus ArgoCD application sync status + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus syncStatus(@Nonnull final String syncStatus) { this.syncStatus = syncStatus; return this; } - /** - * ArgoCD application sync status - * @return syncStatus The syncStatus of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public String getSyncStatus() { + /** + * ArgoCD application sync status + * + * @return syncStatus The syncStatus of this {@link BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public String getSyncStatus() { return syncStatus; } /** * Set the syncStatus of this {@link BckndArgoCDApplicationStatus} instance. * - * @param syncStatus ArgoCD application sync status + * @param syncStatus ArgoCD application sync status */ - public void setSyncStatus( @Nonnull final String syncStatus) { + public void setSyncStatus(@Nonnull final String syncStatus) { this.syncStatus = syncStatus; } - /** - * Set the message of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param message ArgoCD application health status message - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDApplicationStatus} instance and return the same + * instance. + * + * @param message ArgoCD application health status message + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus message(@Nonnull final String message) { this.message = message; return this; } - /** - * ArgoCD application health status message - * @return message The message of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public String getMessage() { + /** + * ArgoCD application health status message + * + * @return message The message of this {@link BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDApplicationStatus} instance. * - * @param message ArgoCD application health status message + * @param message ArgoCD application health status message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the source of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param source The source of this {@link BckndArgoCDApplicationStatus} - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus source(@Nonnull final BckndArgoCDApplicationStatusSource source) { + /** + * Set the source of this {@link BckndArgoCDApplicationStatus} instance and return the same + * instance. + * + * @param source The source of this {@link BckndArgoCDApplicationStatus} + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus source( + @Nonnull final BckndArgoCDApplicationStatusSource source) { this.source = source; return this; } - /** - * Get source - * @return source The source of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public BckndArgoCDApplicationStatusSource getSource() { + /** + * Get source + * + * @return source The source of this {@link BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public BckndArgoCDApplicationStatusSource getSource() { return source; } /** * Set the source of this {@link BckndArgoCDApplicationStatus} instance. * - * @param source The source of this {@link BckndArgoCDApplicationStatus} + * @param source The source of this {@link BckndArgoCDApplicationStatus} */ - public void setSource( @Nonnull final BckndArgoCDApplicationStatusSource source) { + public void setSource(@Nonnull final BckndArgoCDApplicationStatusSource source) { this.source = source; } - /** - * Set the syncFinishedAt of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param syncFinishedAt Gets the timestamp information related to the sync state of the ArgoCD application - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus syncFinishedAt(@Nonnull final String syncFinishedAt) { + /** + * Set the syncFinishedAt of this {@link BckndArgoCDApplicationStatus} instance and return the + * same instance. + * + * @param syncFinishedAt Gets the timestamp information related to the sync state of the ArgoCD + * application + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus syncFinishedAt(@Nonnull final String syncFinishedAt) { this.syncFinishedAt = syncFinishedAt; return this; } - /** - * Gets the timestamp information related to the sync state of the ArgoCD application - * @return syncFinishedAt The syncFinishedAt of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public String getSyncFinishedAt() { + /** + * Gets the timestamp information related to the sync state of the ArgoCD application + * + * @return syncFinishedAt The syncFinishedAt of this {@link BckndArgoCDApplicationStatus} + * instance. + */ + @Nonnull + public String getSyncFinishedAt() { return syncFinishedAt; } /** * Set the syncFinishedAt of this {@link BckndArgoCDApplicationStatus} instance. * - * @param syncFinishedAt Gets the timestamp information related to the sync state of the ArgoCD application + * @param syncFinishedAt Gets the timestamp information related to the sync state of the ArgoCD + * application */ - public void setSyncFinishedAt( @Nonnull final String syncFinishedAt) { + public void setSyncFinishedAt(@Nonnull final String syncFinishedAt) { this.syncFinishedAt = syncFinishedAt; } - /** - * Set the syncStartedAt of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param syncStartedAt Get timestamp information related to the sync state of the ArgoCD application - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus syncStartedAt(@Nonnull final String syncStartedAt) { + /** + * Set the syncStartedAt of this {@link BckndArgoCDApplicationStatus} instance and return the same + * instance. + * + * @param syncStartedAt Get timestamp information related to the sync state of the ArgoCD + * application + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus syncStartedAt(@Nonnull final String syncStartedAt) { this.syncStartedAt = syncStartedAt; return this; } - /** - * Get timestamp information related to the sync state of the ArgoCD application - * @return syncStartedAt The syncStartedAt of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public String getSyncStartedAt() { + /** + * Get timestamp information related to the sync state of the ArgoCD application + * + * @return syncStartedAt The syncStartedAt of this {@link BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public String getSyncStartedAt() { return syncStartedAt; } /** * Set the syncStartedAt of this {@link BckndArgoCDApplicationStatus} instance. * - * @param syncStartedAt Get timestamp information related to the sync state of the ArgoCD application + * @param syncStartedAt Get timestamp information related to the sync state of the ArgoCD + * application */ - public void setSyncStartedAt( @Nonnull final String syncStartedAt) { + public void setSyncStartedAt(@Nonnull final String syncStartedAt) { this.syncStartedAt = syncStartedAt; } - /** - * Set the reconciledAt of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param reconciledAt Get timestamp information related to the sync state of the ArgoCD application - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus reconciledAt(@Nonnull final String reconciledAt) { + /** + * Set the reconciledAt of this {@link BckndArgoCDApplicationStatus} instance and return the same + * instance. + * + * @param reconciledAt Get timestamp information related to the sync state of the ArgoCD + * application + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus reconciledAt(@Nonnull final String reconciledAt) { this.reconciledAt = reconciledAt; return this; } - /** - * Get timestamp information related to the sync state of the ArgoCD application - * @return reconciledAt The reconciledAt of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public String getReconciledAt() { + /** + * Get timestamp information related to the sync state of the ArgoCD application + * + * @return reconciledAt The reconciledAt of this {@link BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public String getReconciledAt() { return reconciledAt; } /** * Set the reconciledAt of this {@link BckndArgoCDApplicationStatus} instance. * - * @param reconciledAt Get timestamp information related to the sync state of the ArgoCD application + * @param reconciledAt Get timestamp information related to the sync state of the ArgoCD + * application */ - public void setReconciledAt( @Nonnull final String reconciledAt) { + public void setReconciledAt(@Nonnull final String reconciledAt) { this.reconciledAt = reconciledAt; } - /** - * Set the syncResourcesStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param syncResourcesStatus Status of all resources that need to be synchronized with the gitops repo - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus syncResourcesStatus(@Nonnull final List syncResourcesStatus) { + /** + * Set the syncResourcesStatus of this {@link BckndArgoCDApplicationStatus} instance and return + * the same instance. + * + * @param syncResourcesStatus Status of all resources that need to be synchronized with the gitops + * repo + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus syncResourcesStatus( + @Nonnull + final List syncResourcesStatus) { this.syncResourcesStatus = syncResourcesStatus; return this; } + /** * Add one syncResourcesStatus instance to this {@link BckndArgoCDApplicationStatus}. + * * @param syncResourcesStatusItem The syncResourcesStatus that should be added * @return The same instance of type {@link BckndArgoCDApplicationStatus} */ - @Nonnull public BckndArgoCDApplicationStatus addSyncResourcesStatusItem( @Nonnull final BckndArgoCDApplicationStatusSyncResourcesStatusInner syncResourcesStatusItem) { + @Nonnull + public BckndArgoCDApplicationStatus addSyncResourcesStatusItem( + @Nonnull final BckndArgoCDApplicationStatusSyncResourcesStatusInner syncResourcesStatusItem) { if (this.syncResourcesStatus == null) { this.syncResourcesStatus = new ArrayList<>(); } @@ -298,39 +329,55 @@ public void setReconciledAt( @Nonnull final String reconciledAt) { return this; } - /** - * Status of all resources that need to be synchronized with the gitops repo - * @return syncResourcesStatus The syncResourcesStatus of this {@link BckndArgoCDApplicationStatus} instance. - */ - @Nonnull public List getSyncResourcesStatus() { + /** + * Status of all resources that need to be synchronized with the gitops repo + * + * @return syncResourcesStatus The syncResourcesStatus of this {@link + * BckndArgoCDApplicationStatus} instance. + */ + @Nonnull + public List getSyncResourcesStatus() { return syncResourcesStatus; } /** * Set the syncResourcesStatus of this {@link BckndArgoCDApplicationStatus} instance. * - * @param syncResourcesStatus Status of all resources that need to be synchronized with the gitops repo + * @param syncResourcesStatus Status of all resources that need to be synchronized with the gitops + * repo */ - public void setSyncResourcesStatus( @Nonnull final List syncResourcesStatus) { + public void setSyncResourcesStatus( + @Nonnull + final List syncResourcesStatus) { this.syncResourcesStatus = syncResourcesStatus; } - /** - * Set the syncRessourcesStatus of this {@link BckndArgoCDApplicationStatus} instance and return the same instance. - * - * @param syncRessourcesStatus Status of all resources that need to be synchronized with the gitops repo. Misspelled and deprecated, use syncResourcesStatus instead. - * @return The same instance of this {@link BckndArgoCDApplicationStatus} class - */ - @Nonnull public BckndArgoCDApplicationStatus syncRessourcesStatus(@Nonnull final List syncRessourcesStatus) { + /** + * Set the syncRessourcesStatus of this {@link BckndArgoCDApplicationStatus} instance and return + * the same instance. + * + * @param syncRessourcesStatus Status of all resources that need to be synchronized with the + * gitops repo. Misspelled and deprecated, use syncResourcesStatus instead. + * @return The same instance of this {@link BckndArgoCDApplicationStatus} class + */ + @Nonnull + public BckndArgoCDApplicationStatus syncRessourcesStatus( + @Nonnull + final List syncRessourcesStatus) { this.syncRessourcesStatus = syncRessourcesStatus; return this; } + /** * Add one syncRessourcesStatus instance to this {@link BckndArgoCDApplicationStatus}. + * * @param syncRessourcesStatusItem The syncRessourcesStatus that should be added * @return The same instance of type {@link BckndArgoCDApplicationStatus} */ - @Nonnull public BckndArgoCDApplicationStatus addSyncRessourcesStatusItem( @Nonnull final BckndArgoCDApplicationStatusSyncResourcesStatusInner syncRessourcesStatusItem) { + @Nonnull + public BckndArgoCDApplicationStatus addSyncRessourcesStatusItem( + @Nonnull + final BckndArgoCDApplicationStatusSyncResourcesStatusInner syncRessourcesStatusItem) { if (this.syncRessourcesStatus == null) { this.syncRessourcesStatus = new ArrayList<>(); } @@ -338,27 +385,35 @@ public void setSyncResourcesStatus( @Nonnull final List getSyncRessourcesStatus() { + /** + * Status of all resources that need to be synchronized with the gitops repo. Misspelled and + * deprecated, use syncResourcesStatus instead. + * + * @return syncRessourcesStatus The syncRessourcesStatus of this {@link + * BckndArgoCDApplicationStatus} instance. + * @deprecated + */ + @Deprecated + @Nonnull + public List getSyncRessourcesStatus() { return syncRessourcesStatus; } /** * Set the syncRessourcesStatus of this {@link BckndArgoCDApplicationStatus} instance. * - * @param syncRessourcesStatus Status of all resources that need to be synchronized with the gitops repo. Misspelled and deprecated, use syncResourcesStatus instead. + * @param syncRessourcesStatus Status of all resources that need to be synchronized with the + * gitops repo. Misspelled and deprecated, use syncResourcesStatus instead. */ - public void setSyncRessourcesStatus( @Nonnull final List syncRessourcesStatus) { + public void setSyncRessourcesStatus( + @Nonnull + final List syncRessourcesStatus) { this.syncRessourcesStatus = syncRessourcesStatus; } /** * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationStatus}. + * * @return The set of properties names */ @JsonIgnore @@ -368,32 +423,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationStatus} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationStatus} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationStatus has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationStatus has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationStatus} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationStatus} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -402,26 +460,41 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationStatus bckndArgoCDApplicationStatus = (BckndArgoCDApplicationStatus) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationStatus.cloudSdkCustomFields) && - Objects.equals(this.healthStatus, bckndArgoCDApplicationStatus.healthStatus) && - Objects.equals(this.syncStatus, bckndArgoCDApplicationStatus.syncStatus) && - Objects.equals(this.message, bckndArgoCDApplicationStatus.message) && - Objects.equals(this.source, bckndArgoCDApplicationStatus.source) && - Objects.equals(this.syncFinishedAt, bckndArgoCDApplicationStatus.syncFinishedAt) && - Objects.equals(this.syncStartedAt, bckndArgoCDApplicationStatus.syncStartedAt) && - Objects.equals(this.reconciledAt, bckndArgoCDApplicationStatus.reconciledAt) && - Objects.equals(this.syncResourcesStatus, bckndArgoCDApplicationStatus.syncResourcesStatus) && - Objects.equals(this.syncRessourcesStatus, bckndArgoCDApplicationStatus.syncRessourcesStatus); + final BckndArgoCDApplicationStatus bckndArgoCDApplicationStatus = + (BckndArgoCDApplicationStatus) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationStatus.cloudSdkCustomFields) + && Objects.equals(this.healthStatus, bckndArgoCDApplicationStatus.healthStatus) + && Objects.equals(this.syncStatus, bckndArgoCDApplicationStatus.syncStatus) + && Objects.equals(this.message, bckndArgoCDApplicationStatus.message) + && Objects.equals(this.source, bckndArgoCDApplicationStatus.source) + && Objects.equals(this.syncFinishedAt, bckndArgoCDApplicationStatus.syncFinishedAt) + && Objects.equals(this.syncStartedAt, bckndArgoCDApplicationStatus.syncStartedAt) + && Objects.equals(this.reconciledAt, bckndArgoCDApplicationStatus.reconciledAt) + && Objects.equals( + this.syncResourcesStatus, bckndArgoCDApplicationStatus.syncResourcesStatus) + && Objects.equals( + this.syncRessourcesStatus, bckndArgoCDApplicationStatus.syncRessourcesStatus); } @Override public int hashCode() { - return Objects.hash(healthStatus, syncStatus, message, source, syncFinishedAt, syncStartedAt, reconciledAt, syncResourcesStatus, syncRessourcesStatus, cloudSdkCustomFields); + return Objects.hash( + healthStatus, + syncStatus, + message, + source, + syncFinishedAt, + syncStartedAt, + reconciledAt, + syncResourcesStatus, + syncRessourcesStatus, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationStatus {\n"); sb.append(" healthStatus: ").append(toIndentedString(healthStatus)).append("\n"); @@ -431,16 +504,21 @@ public int hashCode() { sb.append(" syncFinishedAt: ").append(toIndentedString(syncFinishedAt)).append("\n"); sb.append(" syncStartedAt: ").append(toIndentedString(syncStartedAt)).append("\n"); sb.append(" reconciledAt: ").append(toIndentedString(reconciledAt)).append("\n"); - sb.append(" syncResourcesStatus: ").append(toIndentedString(syncResourcesStatus)).append("\n"); - sb.append(" syncRessourcesStatus: ").append(toIndentedString(syncRessourcesStatus)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" syncResourcesStatus: ") + .append(toIndentedString(syncResourcesStatus)) + .append("\n"); + sb.append(" syncRessourcesStatus: ") + .append(toIndentedString(syncRessourcesStatus)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -449,12 +527,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndArgoCDApplicationStatus} instance. No arguments are required. - */ - public static BckndArgoCDApplicationStatus create() { - return new BckndArgoCDApplicationStatus(); - } - + /** Create a new {@link BckndArgoCDApplicationStatus} instance. No arguments are required. */ + public static BckndArgoCDApplicationStatus create() { + return new BckndArgoCDApplicationStatus(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java index f0e84b9d..abdd4758 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSource.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Information about the ArgoCD application itself - */ +/** Information about the ArgoCD application itself */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationStatusSource +public class BckndArgoCDApplicationStatusSource // CHECKSTYLE:ON { @JsonProperty("repoURL") @@ -51,97 +38,111 @@ public class BckndArgoCDApplicationStatusSource @JsonProperty("revision") private String revision; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationStatusSource() { } - - /** - * Set the repoURL of this {@link BckndArgoCDApplicationStatusSource} instance and return the same instance. - * - * @param repoURL URL of the repository - * @return The same instance of this {@link BckndArgoCDApplicationStatusSource} class - */ - @Nonnull public BckndArgoCDApplicationStatusSource repoURL(@Nonnull final String repoURL) { + + protected BckndArgoCDApplicationStatusSource() {} + + /** + * Set the repoURL of this {@link BckndArgoCDApplicationStatusSource} instance and return the same + * instance. + * + * @param repoURL URL of the repository + * @return The same instance of this {@link BckndArgoCDApplicationStatusSource} class + */ + @Nonnull + public BckndArgoCDApplicationStatusSource repoURL(@Nonnull final String repoURL) { this.repoURL = repoURL; return this; } - /** - * URL of the repository - * @return repoURL The repoURL of this {@link BckndArgoCDApplicationStatusSource} instance. - */ - @Nonnull public String getRepoURL() { + /** + * URL of the repository + * + * @return repoURL The repoURL of this {@link BckndArgoCDApplicationStatusSource} instance. + */ + @Nonnull + public String getRepoURL() { return repoURL; } /** * Set the repoURL of this {@link BckndArgoCDApplicationStatusSource} instance. * - * @param repoURL URL of the repository + * @param repoURL URL of the repository */ - public void setRepoURL( @Nonnull final String repoURL) { + public void setRepoURL(@Nonnull final String repoURL) { this.repoURL = repoURL; } - /** - * Set the path of this {@link BckndArgoCDApplicationStatusSource} instance and return the same instance. - * - * @param path Path of the repository - * @return The same instance of this {@link BckndArgoCDApplicationStatusSource} class - */ - @Nonnull public BckndArgoCDApplicationStatusSource path(@Nonnull final String path) { + /** + * Set the path of this {@link BckndArgoCDApplicationStatusSource} instance and return the same + * instance. + * + * @param path Path of the repository + * @return The same instance of this {@link BckndArgoCDApplicationStatusSource} class + */ + @Nonnull + public BckndArgoCDApplicationStatusSource path(@Nonnull final String path) { this.path = path; return this; } - /** - * Path of the repository - * @return path The path of this {@link BckndArgoCDApplicationStatusSource} instance. - */ - @Nonnull public String getPath() { + /** + * Path of the repository + * + * @return path The path of this {@link BckndArgoCDApplicationStatusSource} instance. + */ + @Nonnull + public String getPath() { return path; } /** * Set the path of this {@link BckndArgoCDApplicationStatusSource} instance. * - * @param path Path of the repository + * @param path Path of the repository */ - public void setPath( @Nonnull final String path) { + public void setPath(@Nonnull final String path) { this.path = path; } - /** - * Set the revision of this {@link BckndArgoCDApplicationStatusSource} instance and return the same instance. - * - * @param revision Revision number of the ArgoCD application - * @return The same instance of this {@link BckndArgoCDApplicationStatusSource} class - */ - @Nonnull public BckndArgoCDApplicationStatusSource revision(@Nonnull final String revision) { + /** + * Set the revision of this {@link BckndArgoCDApplicationStatusSource} instance and return the + * same instance. + * + * @param revision Revision number of the ArgoCD application + * @return The same instance of this {@link BckndArgoCDApplicationStatusSource} class + */ + @Nonnull + public BckndArgoCDApplicationStatusSource revision(@Nonnull final String revision) { this.revision = revision; return this; } - /** - * Revision number of the ArgoCD application - * @return revision The revision of this {@link BckndArgoCDApplicationStatusSource} instance. - */ - @Nonnull public String getRevision() { + /** + * Revision number of the ArgoCD application + * + * @return revision The revision of this {@link BckndArgoCDApplicationStatusSource} instance. + */ + @Nonnull + public String getRevision() { return revision; } /** * Set the revision of this {@link BckndArgoCDApplicationStatusSource} instance. * - * @param revision Revision number of the ArgoCD application + * @param revision Revision number of the ArgoCD application */ - public void setRevision( @Nonnull final String revision) { + public void setRevision(@Nonnull final String revision) { this.revision = revision; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationStatusSource}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationStatusSource}. + * * @return The set of properties names */ @JsonIgnore @@ -151,32 +152,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationStatusSource} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationStatusSource} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationStatusSource has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationStatusSource has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationStatusSource} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDApplicationStatusSource} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -185,11 +189,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationStatusSource bckndArgoCDApplicationStatusSource = (BckndArgoCDApplicationStatusSource) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationStatusSource.cloudSdkCustomFields) && - Objects.equals(this.repoURL, bckndArgoCDApplicationStatusSource.repoURL) && - Objects.equals(this.path, bckndArgoCDApplicationStatusSource.path) && - Objects.equals(this.revision, bckndArgoCDApplicationStatusSource.revision); + final BckndArgoCDApplicationStatusSource bckndArgoCDApplicationStatusSource = + (BckndArgoCDApplicationStatusSource) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDApplicationStatusSource.cloudSdkCustomFields) + && Objects.equals(this.repoURL, bckndArgoCDApplicationStatusSource.repoURL) + && Objects.equals(this.path, bckndArgoCDApplicationStatusSource.path) + && Objects.equals(this.revision, bckndArgoCDApplicationStatusSource.revision); } @Override @@ -198,20 +204,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationStatusSource {\n"); sb.append(" repoURL: ").append(toIndentedString(repoURL)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,12 +228,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndArgoCDApplicationStatusSource} instance. No arguments are required. - */ - public static BckndArgoCDApplicationStatusSource create() { - return new BckndArgoCDApplicationStatusSource(); - } - + /** + * Create a new {@link BckndArgoCDApplicationStatusSource} instance. No arguments are required. + */ + public static BckndArgoCDApplicationStatusSource create() { + return new BckndArgoCDApplicationStatusSource(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java index c2fb2e33..080ae3d0 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDApplicationStatusSyncResourcesStatusInner.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDApplicationStatusSyncResourcesStatusInner - */ +/** BckndArgoCDApplicationStatusSyncResourcesStatusInner */ // CHECKSTYLE:OFF -public class BckndArgoCDApplicationStatusSyncResourcesStatusInner +public class BckndArgoCDApplicationStatusSyncResourcesStatusInner // CHECKSTYLE:ON { @JsonProperty("name") @@ -54,125 +41,152 @@ public class BckndArgoCDApplicationStatusSyncResourcesStatusInner @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDApplicationStatusSyncResourcesStatusInner() { } - /** - * Set the name of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and return the same instance. - * - * @param name ArgoCD application object name - * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} class - */ - @Nonnull public BckndArgoCDApplicationStatusSyncResourcesStatusInner name(@Nonnull final String name) { + protected BckndArgoCDApplicationStatusSyncResourcesStatusInner() {} + + /** + * Set the name of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and + * return the same instance. + * + * @param name ArgoCD application object name + * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * class + */ + @Nonnull + public BckndArgoCDApplicationStatusSyncResourcesStatusInner name(@Nonnull final String name) { this.name = name; return this; } - /** - * ArgoCD application object name - * @return name The name of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. - */ - @Nonnull public String getName() { + /** + * ArgoCD application object name + * + * @return name The name of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. * - * @param name ArgoCD application object name + * @param name ArgoCD application object name */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the kind of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and return the same instance. - * - * @param kind ArgoCD application object kind - * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} class - */ - @Nonnull public BckndArgoCDApplicationStatusSyncResourcesStatusInner kind(@Nonnull final String kind) { + /** + * Set the kind of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and + * return the same instance. + * + * @param kind ArgoCD application object kind + * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * class + */ + @Nonnull + public BckndArgoCDApplicationStatusSyncResourcesStatusInner kind(@Nonnull final String kind) { this.kind = kind; return this; } - /** - * ArgoCD application object kind - * @return kind The kind of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. - */ - @Nonnull public String getKind() { + /** + * ArgoCD application object kind + * + * @return kind The kind of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * instance. + */ + @Nonnull + public String getKind() { return kind; } /** * Set the kind of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. * - * @param kind ArgoCD application object kind + * @param kind ArgoCD application object kind */ - public void setKind( @Nonnull final String kind) { + public void setKind(@Nonnull final String kind) { this.kind = kind; } - /** - * Set the status of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and return the same instance. - * - * @param status ArgoCD application object sync status - * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} class - */ - @Nonnull public BckndArgoCDApplicationStatusSyncResourcesStatusInner status(@Nonnull final String status) { + /** + * Set the status of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance + * and return the same instance. + * + * @param status ArgoCD application object sync status + * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * class + */ + @Nonnull + public BckndArgoCDApplicationStatusSyncResourcesStatusInner status(@Nonnull final String status) { this.status = status; return this; } - /** - * ArgoCD application object sync status - * @return status The status of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. - */ - @Nonnull public String getStatus() { + /** + * ArgoCD application object sync status + * + * @return status The status of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * instance. + */ + @Nonnull + public String getStatus() { return status; } /** * Set the status of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. * - * @param status ArgoCD application object sync status + * @param status ArgoCD application object sync status */ - public void setStatus( @Nonnull final String status) { + public void setStatus(@Nonnull final String status) { this.status = status; } - /** - * Set the message of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance and return the same instance. - * - * @param message ArgoCD application object message - * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} class - */ - @Nonnull public BckndArgoCDApplicationStatusSyncResourcesStatusInner message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance + * and return the same instance. + * + * @param message ArgoCD application object message + * @return The same instance of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} + * class + */ + @Nonnull + public BckndArgoCDApplicationStatusSyncResourcesStatusInner message( + @Nonnull final String message) { this.message = message; return this; } - /** - * ArgoCD application object message - * @return message The message of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. - */ - @Nonnull public String getMessage() { + /** + * ArgoCD application object message + * + * @return message The message of this {@link + * BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. * - * @param message ArgoCD application object message + * @param message ArgoCD application object message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDApplicationStatusSyncResourcesStatusInner}. + * * @return The set of properties names */ @JsonIgnore @@ -182,32 +196,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDApplicationStatusSyncResourcesStatusInner has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDApplicationStatusSyncResourcesStatusInner has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. If the map previously contained + * a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -216,12 +235,17 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDApplicationStatusSyncResourcesStatusInner bckndArgoCDApplicationStatusSyncResourcesStatusInner = (BckndArgoCDApplicationStatusSyncResourcesStatusInner) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDApplicationStatusSyncResourcesStatusInner.cloudSdkCustomFields) && - Objects.equals(this.name, bckndArgoCDApplicationStatusSyncResourcesStatusInner.name) && - Objects.equals(this.kind, bckndArgoCDApplicationStatusSyncResourcesStatusInner.kind) && - Objects.equals(this.status, bckndArgoCDApplicationStatusSyncResourcesStatusInner.status) && - Objects.equals(this.message, bckndArgoCDApplicationStatusSyncResourcesStatusInner.message); + final BckndArgoCDApplicationStatusSyncResourcesStatusInner + bckndArgoCDApplicationStatusSyncResourcesStatusInner = + (BckndArgoCDApplicationStatusSyncResourcesStatusInner) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndArgoCDApplicationStatusSyncResourcesStatusInner.cloudSdkCustomFields) + && Objects.equals(this.name, bckndArgoCDApplicationStatusSyncResourcesStatusInner.name) + && Objects.equals(this.kind, bckndArgoCDApplicationStatusSyncResourcesStatusInner.kind) + && Objects.equals(this.status, bckndArgoCDApplicationStatusSyncResourcesStatusInner.status) + && Objects.equals( + this.message, bckndArgoCDApplicationStatusSyncResourcesStatusInner.message); } @Override @@ -230,21 +254,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDApplicationStatusSyncResourcesStatusInner {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -253,12 +279,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. No arguments are required. - */ - public static BckndArgoCDApplicationStatusSyncResourcesStatusInner create() { - return new BckndArgoCDApplicationStatusSyncResourcesStatusInner(); - } - + /** + * Create a new {@link BckndArgoCDApplicationStatusSyncResourcesStatusInner} instance. No + * arguments are required. + */ + public static BckndArgoCDApplicationStatusSyncResourcesStatusInner create() { + return new BckndArgoCDApplicationStatusSyncResourcesStatusInner(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java index 1bd5c891..54060313 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDRepositoryCreationResponse - */ +/** BckndArgoCDRepositoryCreationResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryCreationResponse +public class BckndArgoCDRepositoryCreationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndArgoCDRepositoryCreationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryCreationResponse() { } - - /** - * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDRepositoryCreationResponse} class - */ - @Nonnull public BckndArgoCDRepositoryCreationResponse id(@Nonnull final String id) { + + protected BckndArgoCDRepositoryCreationResponse() {} + + /** + * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDRepositoryCreationResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryCreationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDRepositoryCreationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDRepositoryCreationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDRepositoryCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDRepositoryCreationResponse} class - */ - @Nonnull public BckndArgoCDRepositoryCreationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDRepositoryCreationResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDRepositoryCreationResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDRepositoryCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDRepositoryCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDRepositoryCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryCreationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDRepositoryCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDRepositoryCreationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryCreationResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDRepositoryCreationResponse bckndArgoCDRepositoryCreationResponse = (BckndArgoCDRepositoryCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDRepositoryCreationResponse.id) && - Objects.equals(this.message, bckndArgoCDRepositoryCreationResponse.message); + final BckndArgoCDRepositoryCreationResponse bckndArgoCDRepositoryCreationResponse = + (BckndArgoCDRepositoryCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDRepositoryCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDRepositoryCreationResponse.id) + && Objects.equals(this.message, bckndArgoCDRepositoryCreationResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryCreationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDRepositoryCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDRepositoryCreationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDRepositoryCreationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDRepositoryCreationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDRepositoryCreationResponse} instance. - * - * @param message Message - * @return The BckndArgoCDRepositoryCreationResponse instance. - */ - BckndArgoCDRepositoryCreationResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDRepositoryCreationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDRepositoryCreationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDRepositoryCreationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDRepositoryCreationResponse instance. + */ + BckndArgoCDRepositoryCreationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java index a5094d4a..da9fac88 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryCredentials.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDRepositoryCredentials - */ +/** BckndArgoCDRepositoryCredentials */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryCredentials +public class BckndArgoCDRepositoryCredentials // CHECKSTYLE:ON { @JsonProperty("username") @@ -48,69 +35,78 @@ public class BckndArgoCDRepositoryCredentials @JsonProperty("password") private String password; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryCredentials() { } - - /** - * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance and return the same instance. - * - * @param username Username for read-access to the repository - * @return The same instance of this {@link BckndArgoCDRepositoryCredentials} class - */ - @Nonnull public BckndArgoCDRepositoryCredentials username(@Nonnull final String username) { + + protected BckndArgoCDRepositoryCredentials() {} + + /** + * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance and return the same + * instance. + * + * @param username Username for read-access to the repository + * @return The same instance of this {@link BckndArgoCDRepositoryCredentials} class + */ + @Nonnull + public BckndArgoCDRepositoryCredentials username(@Nonnull final String username) { this.username = username; return this; } - /** - * Username for read-access to the repository - * @return username The username of this {@link BckndArgoCDRepositoryCredentials} instance. - */ - @Nonnull public String getUsername() { + /** + * Username for read-access to the repository + * + * @return username The username of this {@link BckndArgoCDRepositoryCredentials} instance. + */ + @Nonnull + public String getUsername() { return username; } /** * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance. * - * @param username Username for read-access to the repository + * @param username Username for read-access to the repository */ - public void setUsername( @Nonnull final String username) { + public void setUsername(@Nonnull final String username) { this.username = username; } - /** - * Set the password of this {@link BckndArgoCDRepositoryCredentials} instance and return the same instance. - * - * @param password Password for read-access to the repository - * @return The same instance of this {@link BckndArgoCDRepositoryCredentials} class - */ - @Nonnull public BckndArgoCDRepositoryCredentials password(@Nonnull final String password) { + /** + * Set the password of this {@link BckndArgoCDRepositoryCredentials} instance and return the same + * instance. + * + * @param password Password for read-access to the repository + * @return The same instance of this {@link BckndArgoCDRepositoryCredentials} class + */ + @Nonnull + public BckndArgoCDRepositoryCredentials password(@Nonnull final String password) { this.password = password; return this; } - /** - * Password for read-access to the repository - * @return password The password of this {@link BckndArgoCDRepositoryCredentials} instance. - */ - @Nonnull public String getPassword() { + /** + * Password for read-access to the repository + * + * @return password The password of this {@link BckndArgoCDRepositoryCredentials} instance. + */ + @Nonnull + public String getPassword() { return password; } /** * Set the password of this {@link BckndArgoCDRepositoryCredentials} instance. * - * @param password Password for read-access to the repository + * @param password Password for read-access to the repository */ - public void setPassword( @Nonnull final String password) { + public void setPassword(@Nonnull final String password) { this.password = password; } /** * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryCredentials}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryCredentials} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryCredentials} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryCredentials has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryCredentials has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryCredentials} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryCredentials} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials = (BckndArgoCDRepositoryCredentials) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryCredentials.cloudSdkCustomFields) && - Objects.equals(this.username, bckndArgoCDRepositoryCredentials.username) && - Objects.equals(this.password, bckndArgoCDRepositoryCredentials.password); + final BckndArgoCDRepositoryCredentials bckndArgoCDRepositoryCredentials = + (BckndArgoCDRepositoryCredentials) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDRepositoryCredentials.cloudSdkCustomFields) + && Objects.equals(this.username, bckndArgoCDRepositoryCredentials.username) + && Objects.equals(this.password, bckndArgoCDRepositoryCredentials.password); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryCredentials {\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +190,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDRepositoryCredentials} instance with all required arguments. + */ + public static Builder create() { + return (username) -> + (password) -> new BckndArgoCDRepositoryCredentials().username(username).password(password); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryCredentials} instance with all required arguments. - */ - public static Builder create() { - return (username) -> (password) -> new BckndArgoCDRepositoryCredentials().username(username).password(password); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance. - * - * @param username Username for read-access to the repository - * @return The BckndArgoCDRepositoryCredentials builder. - */ - Builder1 username( @Nonnull final String username); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the password of this {@link BckndArgoCDRepositoryCredentials} instance. - * - * @param password Password for read-access to the repository - * @return The BckndArgoCDRepositoryCredentials instance. - */ - BckndArgoCDRepositoryCredentials password( @Nonnull final String password); - } + * Set the username of this {@link BckndArgoCDRepositoryCredentials} instance. + * + * @param username Username for read-access to the repository + * @return The BckndArgoCDRepositoryCredentials builder. + */ + Builder1 username(@Nonnull final String username); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the password of this {@link BckndArgoCDRepositoryCredentials} instance. + * + * @param password Password for read-access to the repository + * @return The BckndArgoCDRepositoryCredentials instance. + */ + BckndArgoCDRepositoryCredentials password(@Nonnull final String password); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java index 8c01cb94..e5101dd8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDRepositoryData - */ +/** BckndArgoCDRepositoryData */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryData +public class BckndArgoCDRepositoryData // CHECKSTYLE:ON { @JsonProperty("name") @@ -54,125 +41,140 @@ public class BckndArgoCDRepositoryData @JsonProperty("password") private String password; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryData() { } - /** - * Set the name of this {@link BckndArgoCDRepositoryData} instance and return the same instance. - * - * @param name Name of the repository - * @return The same instance of this {@link BckndArgoCDRepositoryData} class - */ - @Nonnull public BckndArgoCDRepositoryData name(@Nonnull final String name) { + protected BckndArgoCDRepositoryData() {} + + /** + * Set the name of this {@link BckndArgoCDRepositoryData} instance and return the same instance. + * + * @param name Name of the repository + * @return The same instance of this {@link BckndArgoCDRepositoryData} class + */ + @Nonnull + public BckndArgoCDRepositoryData name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the repository - * @return name The name of this {@link BckndArgoCDRepositoryData} instance. - */ - @Nonnull public String getName() { + /** + * Name of the repository + * + * @return name The name of this {@link BckndArgoCDRepositoryData} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndArgoCDRepositoryData} instance. * - * @param name Name of the repository + * @param name Name of the repository */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the url of this {@link BckndArgoCDRepositoryData} instance and return the same instance. - * - * @param url URL of the repository to synchronise - * @return The same instance of this {@link BckndArgoCDRepositoryData} class - */ - @Nonnull public BckndArgoCDRepositoryData url(@Nonnull final String url) { + /** + * Set the url of this {@link BckndArgoCDRepositoryData} instance and return the same instance. + * + * @param url URL of the repository to synchronise + * @return The same instance of this {@link BckndArgoCDRepositoryData} class + */ + @Nonnull + public BckndArgoCDRepositoryData url(@Nonnull final String url) { this.url = url; return this; } - /** - * URL of the repository to synchronise - * @return url The url of this {@link BckndArgoCDRepositoryData} instance. - */ - @Nonnull public String getUrl() { + /** + * URL of the repository to synchronise + * + * @return url The url of this {@link BckndArgoCDRepositoryData} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link BckndArgoCDRepositoryData} instance. * - * @param url URL of the repository to synchronise + * @param url URL of the repository to synchronise */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the username of this {@link BckndArgoCDRepositoryData} instance and return the same instance. - * - * @param username Username for read-access to the repository - * @return The same instance of this {@link BckndArgoCDRepositoryData} class - */ - @Nonnull public BckndArgoCDRepositoryData username(@Nonnull final String username) { + /** + * Set the username of this {@link BckndArgoCDRepositoryData} instance and return the same + * instance. + * + * @param username Username for read-access to the repository + * @return The same instance of this {@link BckndArgoCDRepositoryData} class + */ + @Nonnull + public BckndArgoCDRepositoryData username(@Nonnull final String username) { this.username = username; return this; } - /** - * Username for read-access to the repository - * @return username The username of this {@link BckndArgoCDRepositoryData} instance. - */ - @Nonnull public String getUsername() { + /** + * Username for read-access to the repository + * + * @return username The username of this {@link BckndArgoCDRepositoryData} instance. + */ + @Nonnull + public String getUsername() { return username; } /** * Set the username of this {@link BckndArgoCDRepositoryData} instance. * - * @param username Username for read-access to the repository + * @param username Username for read-access to the repository */ - public void setUsername( @Nonnull final String username) { + public void setUsername(@Nonnull final String username) { this.username = username; } - /** - * Set the password of this {@link BckndArgoCDRepositoryData} instance and return the same instance. - * - * @param password Password for read-access to the repository - * @return The same instance of this {@link BckndArgoCDRepositoryData} class - */ - @Nonnull public BckndArgoCDRepositoryData password(@Nonnull final String password) { + /** + * Set the password of this {@link BckndArgoCDRepositoryData} instance and return the same + * instance. + * + * @param password Password for read-access to the repository + * @return The same instance of this {@link BckndArgoCDRepositoryData} class + */ + @Nonnull + public BckndArgoCDRepositoryData password(@Nonnull final String password) { this.password = password; return this; } - /** - * Password for read-access to the repository - * @return password The password of this {@link BckndArgoCDRepositoryData} instance. - */ - @Nonnull public String getPassword() { + /** + * Password for read-access to the repository + * + * @return password The password of this {@link BckndArgoCDRepositoryData} instance. + */ + @Nonnull + public String getPassword() { return password; } /** * Set the password of this {@link BckndArgoCDRepositoryData} instance. * - * @param password Password for read-access to the repository + * @param password Password for read-access to the repository */ - public void setPassword( @Nonnull final String password) { + public void setPassword(@Nonnull final String password) { this.password = password; } /** * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryData}. + * * @return The set of properties names */ @JsonIgnore @@ -183,31 +185,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryData} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -217,11 +220,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndArgoCDRepositoryData bckndArgoCDRepositoryData = (BckndArgoCDRepositoryData) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryData.cloudSdkCustomFields) && - Objects.equals(this.name, bckndArgoCDRepositoryData.name) && - Objects.equals(this.url, bckndArgoCDRepositoryData.url) && - Objects.equals(this.username, bckndArgoCDRepositoryData.username) && - Objects.equals(this.password, bckndArgoCDRepositoryData.password); + return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryData.cloudSdkCustomFields) + && Objects.equals(this.name, bckndArgoCDRepositoryData.name) + && Objects.equals(this.url, bckndArgoCDRepositoryData.url) + && Objects.equals(this.username, bckndArgoCDRepositoryData.username) + && Objects.equals(this.password, bckndArgoCDRepositoryData.password); } @Override @@ -230,21 +233,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryData {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -253,48 +258,47 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDRepositoryData} instance with all required arguments. + */ + public static Builder create() { + return (url) -> + (username) -> + (password) -> + new BckndArgoCDRepositoryData().url(url).username(username).password(password); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryData} instance with all required arguments. - */ - public static Builder create() { - return (url) -> (username) -> (password) -> new BckndArgoCDRepositoryData().url(url).username(username).password(password); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the url of this {@link BckndArgoCDRepositoryData} instance. - * - * @param url URL of the repository to synchronise - * @return The BckndArgoCDRepositoryData builder. - */ - Builder1 url( @Nonnull final String url); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the username of this {@link BckndArgoCDRepositoryData} instance. - * - * @param username Username for read-access to the repository - * @return The BckndArgoCDRepositoryData builder. - */ - Builder2 username( @Nonnull final String username); - } + * Set the url of this {@link BckndArgoCDRepositoryData} instance. + * + * @param url URL of the repository to synchronise + * @return The BckndArgoCDRepositoryData builder. + */ + Builder1 url(@Nonnull final String url); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the password of this {@link BckndArgoCDRepositoryData} instance. - * - * @param password Password for read-access to the repository - * @return The BckndArgoCDRepositoryData instance. - */ - BckndArgoCDRepositoryData password( @Nonnull final String password); - } + * Set the username of this {@link BckndArgoCDRepositoryData} instance. + * + * @param username Username for read-access to the repository + * @return The BckndArgoCDRepositoryData builder. + */ + Builder2 username(@Nonnull final String username); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the password of this {@link BckndArgoCDRepositoryData} instance. + * + * @param password Password for read-access to the repository + * @return The BckndArgoCDRepositoryData instance. + */ + BckndArgoCDRepositoryData password(@Nonnull final String password); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java index d396dbbc..0465be1a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDataResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndArgoCDRepositoryDetails; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * This represents a list of GitOps repositories for the tenant. - */ +/** This represents a list of GitOps repositories for the tenant. */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryDataResponse +public class BckndArgoCDRepositoryDataResponse // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,66 @@ public class BckndArgoCDRepositoryDataResponse @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryDataResponse() { } - - /** - * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BckndArgoCDRepositoryDataResponse} class - */ - @Nonnull public BckndArgoCDRepositoryDataResponse count(@Nonnull final Integer count) { + + protected BckndArgoCDRepositoryDataResponse() {} + + /** + * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance and return the same + * instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BckndArgoCDRepositoryDataResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryDataResponse count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BckndArgoCDRepositoryDataResponse} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BckndArgoCDRepositoryDataResponse} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance and return the same instance. - * - * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} - * @return The same instance of this {@link BckndArgoCDRepositoryDataResponse} class - */ - @Nonnull public BckndArgoCDRepositoryDataResponse resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance and return the + * same instance. + * + * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} + * @return The same instance of this {@link BckndArgoCDRepositoryDataResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryDataResponse resources( + @Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BckndArgoCDRepositoryDataResponse}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BckndArgoCDRepositoryDataResponse} */ - @Nonnull public BckndArgoCDRepositoryDataResponse addResourcesItem( @Nonnull final BckndArgoCDRepositoryDetails resourcesItem) { + @Nonnull + public BckndArgoCDRepositoryDataResponse addResourcesItem( + @Nonnull final BckndArgoCDRepositoryDetails resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +105,29 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BckndArgoCDRepositoryDataResponse} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BckndArgoCDRepositoryDataResponse} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. * - * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} + * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryDataResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDRepositoryDataResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -136,32 +137,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryDataResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryDataResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryDataResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryDataResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryDataResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryDataResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -170,10 +174,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDRepositoryDataResponse bckndArgoCDRepositoryDataResponse = (BckndArgoCDRepositoryDataResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryDataResponse.cloudSdkCustomFields) && - Objects.equals(this.count, bckndArgoCDRepositoryDataResponse.count) && - Objects.equals(this.resources, bckndArgoCDRepositoryDataResponse.resources); + final BckndArgoCDRepositoryDataResponse bckndArgoCDRepositoryDataResponse = + (BckndArgoCDRepositoryDataResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDRepositoryDataResponse.cloudSdkCustomFields) + && Objects.equals(this.count, bckndArgoCDRepositoryDataResponse.count) + && Objects.equals(this.resources, bckndArgoCDRepositoryDataResponse.resources); } @Override @@ -182,19 +188,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryDataResponse {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +211,46 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDRepositoryDataResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> + (resources) -> new BckndArgoCDRepositoryDataResponse().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryDataResponse} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BckndArgoCDRepositoryDataResponse().count(count).resources(resources); - } + * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndArgoCDRepositoryDataResponse builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndArgoCDRepositoryDataResponse} instance. - * - * @param count Number of the resource instances in the list - * @return The BckndArgoCDRepositoryDataResponse builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. + * + * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} + * @return The BckndArgoCDRepositoryDataResponse instance. + */ + BckndArgoCDRepositoryDataResponse resources( + @Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. - * - * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} - * @return The BckndArgoCDRepositoryDataResponse instance. - */ - BckndArgoCDRepositoryDataResponse resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. - * - * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} - * @return The BckndArgoCDRepositoryDataResponse instance. - */ - default BckndArgoCDRepositoryDataResponse resources( @Nonnull final BckndArgoCDRepositoryDetails... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BckndArgoCDRepositoryDataResponse} instance. + * + * @param resources The resources of this {@link BckndArgoCDRepositoryDataResponse} + * @return The BckndArgoCDRepositoryDataResponse instance. + */ + default BckndArgoCDRepositoryDataResponse resources( + @Nonnull final BckndArgoCDRepositoryDetails... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java index 05f9768b..abf19d7b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDRepositoryDeletionResponse - */ +/** BckndArgoCDRepositoryDeletionResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryDeletionResponse +public class BckndArgoCDRepositoryDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndArgoCDRepositoryDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryDeletionResponse() { } - - /** - * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDRepositoryDeletionResponse} class - */ - @Nonnull public BckndArgoCDRepositoryDeletionResponse id(@Nonnull final String id) { + + protected BckndArgoCDRepositoryDeletionResponse() {} + + /** + * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDRepositoryDeletionResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDRepositoryDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDRepositoryDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDRepositoryDeletionResponse} class - */ - @Nonnull public BckndArgoCDRepositoryDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDRepositoryDeletionResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDRepositoryDeletionResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDRepositoryDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDRepositoryDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryDeletionResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDRepositoryDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDRepositoryDeletionResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDRepositoryDeletionResponse bckndArgoCDRepositoryDeletionResponse = (BckndArgoCDRepositoryDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDRepositoryDeletionResponse.id) && - Objects.equals(this.message, bckndArgoCDRepositoryDeletionResponse.message); + final BckndArgoCDRepositoryDeletionResponse bckndArgoCDRepositoryDeletionResponse = + (BckndArgoCDRepositoryDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDRepositoryDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDRepositoryDeletionResponse.id) + && Objects.equals(this.message, bckndArgoCDRepositoryDeletionResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDRepositoryDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndArgoCDRepositoryDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDRepositoryDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDRepositoryDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDRepositoryDeletionResponse} instance. - * - * @param message Message - * @return The BckndArgoCDRepositoryDeletionResponse instance. - */ - BckndArgoCDRepositoryDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDRepositoryDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDRepositoryDeletionResponse} instance. + * + * @param message Message + * @return The BckndArgoCDRepositoryDeletionResponse instance. + */ + BckndArgoCDRepositoryDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java index 630eaeaa..bf90af78 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Repository details - */ +/** Repository details */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryDetails +public class BckndArgoCDRepositoryDetails // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,23 +37,15 @@ public class BckndArgoCDRepositoryDetails @JsonProperty("url") private String url; - /** - * The status of the repository's on-boarding - */ + /** The status of the repository's on-boarding */ public enum StatusEnum { - /** - * The ERROR option of this BckndArgoCDRepositoryDetails - */ + /** The ERROR option of this BckndArgoCDRepositoryDetails */ ERROR("ERROR"), - - /** - * The IN_PROGRESS option of this BckndArgoCDRepositoryDetails - */ + + /** The IN_PROGRESS option of this BckndArgoCDRepositoryDetails */ IN_PROGRESS("IN-PROGRESS"), - - /** - * The COMPLETED option of this BckndArgoCDRepositoryDetails - */ + + /** The COMPLETED option of this BckndArgoCDRepositoryDetails */ COMPLETED("COMPLETED"); private String value; @@ -74,30 +55,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndArgoCDRepositoryDetails - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndArgoCDRepositoryDetails + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -110,97 +97,109 @@ public enum StatusEnum { @JsonProperty("status") private StatusEnum status; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryDetails() { } - - /** - * Set the name of this {@link BckndArgoCDRepositoryDetails} instance and return the same instance. - * - * @param name The name of the repository - * @return The same instance of this {@link BckndArgoCDRepositoryDetails} class - */ - @Nonnull public BckndArgoCDRepositoryDetails name(@Nonnull final String name) { + + protected BckndArgoCDRepositoryDetails() {} + + /** + * Set the name of this {@link BckndArgoCDRepositoryDetails} instance and return the same + * instance. + * + * @param name The name of the repository + * @return The same instance of this {@link BckndArgoCDRepositoryDetails} class + */ + @Nonnull + public BckndArgoCDRepositoryDetails name(@Nonnull final String name) { this.name = name; return this; } - /** - * The name of the repository - * @return name The name of this {@link BckndArgoCDRepositoryDetails} instance. - */ - @Nonnull public String getName() { + /** + * The name of the repository + * + * @return name The name of this {@link BckndArgoCDRepositoryDetails} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndArgoCDRepositoryDetails} instance. * - * @param name The name of the repository + * @param name The name of the repository */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the url of this {@link BckndArgoCDRepositoryDetails} instance and return the same instance. - * - * @param url The repository URL - * @return The same instance of this {@link BckndArgoCDRepositoryDetails} class - */ - @Nonnull public BckndArgoCDRepositoryDetails url(@Nonnull final String url) { + /** + * Set the url of this {@link BckndArgoCDRepositoryDetails} instance and return the same instance. + * + * @param url The repository URL + * @return The same instance of this {@link BckndArgoCDRepositoryDetails} class + */ + @Nonnull + public BckndArgoCDRepositoryDetails url(@Nonnull final String url) { this.url = url; return this; } - /** - * The repository URL - * @return url The url of this {@link BckndArgoCDRepositoryDetails} instance. - */ - @Nonnull public String getUrl() { + /** + * The repository URL + * + * @return url The url of this {@link BckndArgoCDRepositoryDetails} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link BckndArgoCDRepositoryDetails} instance. * - * @param url The repository URL + * @param url The repository URL */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the status of this {@link BckndArgoCDRepositoryDetails} instance and return the same instance. - * - * @param status The status of the repository's on-boarding - * @return The same instance of this {@link BckndArgoCDRepositoryDetails} class - */ - @Nonnull public BckndArgoCDRepositoryDetails status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link BckndArgoCDRepositoryDetails} instance and return the same + * instance. + * + * @param status The status of the repository's on-boarding + * @return The same instance of this {@link BckndArgoCDRepositoryDetails} class + */ + @Nonnull + public BckndArgoCDRepositoryDetails status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * The status of the repository's on-boarding - * @return status The status of this {@link BckndArgoCDRepositoryDetails} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * The status of the repository's on-boarding + * + * @return status The status of this {@link BckndArgoCDRepositoryDetails} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link BckndArgoCDRepositoryDetails} instance. * - * @param status The status of the repository's on-boarding + * @param status The status of the repository's on-boarding */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } /** * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -210,32 +209,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryDetails} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryDetails} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryDetails} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -244,11 +246,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDRepositoryDetails bckndArgoCDRepositoryDetails = (BckndArgoCDRepositoryDetails) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryDetails.cloudSdkCustomFields) && - Objects.equals(this.name, bckndArgoCDRepositoryDetails.name) && - Objects.equals(this.url, bckndArgoCDRepositoryDetails.url) && - Objects.equals(this.status, bckndArgoCDRepositoryDetails.status); + final BckndArgoCDRepositoryDetails bckndArgoCDRepositoryDetails = + (BckndArgoCDRepositoryDetails) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndArgoCDRepositoryDetails.cloudSdkCustomFields) + && Objects.equals(this.name, bckndArgoCDRepositoryDetails.name) + && Objects.equals(this.url, bckndArgoCDRepositoryDetails.url) + && Objects.equals(this.status, bckndArgoCDRepositoryDetails.status); } @Override @@ -257,20 +261,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryDetails {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -279,12 +285,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndArgoCDRepositoryDetails} instance. No arguments are required. - */ - public static BckndArgoCDRepositoryDetails create() { - return new BckndArgoCDRepositoryDetails(); - } - + /** Create a new {@link BckndArgoCDRepositoryDetails} instance. No arguments are required. */ + public static BckndArgoCDRepositoryDetails create() { + return new BckndArgoCDRepositoryDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java index 25d7ec5c..e290a2c6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndArgoCDRepositoryModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndArgoCDRepositoryModificationResponse - */ +/** BckndArgoCDRepositoryModificationResponse */ // CHECKSTYLE:OFF -public class BckndArgoCDRepositoryModificationResponse +public class BckndArgoCDRepositoryModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndArgoCDRepositoryModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndArgoCDRepositoryModificationResponse() { } - - /** - * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndArgoCDRepositoryModificationResponse} class - */ - @Nonnull public BckndArgoCDRepositoryModificationResponse id(@Nonnull final String id) { + + protected BckndArgoCDRepositoryModificationResponse() {} + + /** + * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance and return the + * same instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndArgoCDRepositoryModificationResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndArgoCDRepositoryModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndArgoCDRepositoryModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndArgoCDRepositoryModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndArgoCDRepositoryModificationResponse} class - */ - @Nonnull public BckndArgoCDRepositoryModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndArgoCDRepositoryModificationResponse} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link BckndArgoCDRepositoryModificationResponse} class + */ + @Nonnull + public BckndArgoCDRepositoryModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndArgoCDRepositoryModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndArgoCDRepositoryModificationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndArgoCDRepositoryModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndArgoCDRepositoryModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndArgoCDRepositoryModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndArgoCDRepositoryModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndArgoCDRepositoryModificationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndArgoCDRepositoryModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndArgoCDRepositoryModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndArgoCDRepositoryModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndArgoCDRepositoryModificationResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndArgoCDRepositoryModificationResponse bckndArgoCDRepositoryModificationResponse = (BckndArgoCDRepositoryModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndArgoCDRepositoryModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndArgoCDRepositoryModificationResponse.id) && - Objects.equals(this.message, bckndArgoCDRepositoryModificationResponse.message); + final BckndArgoCDRepositoryModificationResponse bckndArgoCDRepositoryModificationResponse = + (BckndArgoCDRepositoryModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndArgoCDRepositoryModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndArgoCDRepositoryModificationResponse.id) + && Objects.equals(this.message, bckndArgoCDRepositoryModificationResponse.message); } @Override @@ -166,19 +169,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndArgoCDRepositoryModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +192,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndArgoCDRepositoryModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BckndArgoCDRepositoryModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndArgoCDRepositoryModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndArgoCDRepositoryModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance. - * - * @param id Generic ID - * @return The BckndArgoCDRepositoryModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndArgoCDRepositoryModificationResponse} instance. - * - * @param message Message - * @return The BckndArgoCDRepositoryModificationResponse instance. - */ - BckndArgoCDRepositoryModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndArgoCDRepositoryModificationResponse} instance. + * + * @param id Generic ID + * @return The BckndArgoCDRepositoryModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndArgoCDRepositoryModificationResponse} instance. + * + * @param message Message + * @return The BckndArgoCDRepositoryModificationResponse instance. + */ + BckndArgoCDRepositoryModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java index 8c2f0017..76ee8c9b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndCommonResourceQuotaResponseQuota; -import com.sap.ai.sdk.core.client.model.BckndCommonResourceQuotaResponseUsage; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndCommonResourceQuotaResponse - */ +/** BckndCommonResourceQuotaResponse */ // CHECKSTYLE:OFF -public class BckndCommonResourceQuotaResponse +public class BckndCommonResourceQuotaResponse // CHECKSTYLE:ON { @JsonProperty("usage") @@ -50,69 +35,80 @@ public class BckndCommonResourceQuotaResponse @JsonProperty("quota") private BckndCommonResourceQuotaResponseQuota quota; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndCommonResourceQuotaResponse() { } - - /** - * Set the usage of this {@link BckndCommonResourceQuotaResponse} instance and return the same instance. - * - * @param usage The usage of this {@link BckndCommonResourceQuotaResponse} - * @return The same instance of this {@link BckndCommonResourceQuotaResponse} class - */ - @Nonnull public BckndCommonResourceQuotaResponse usage(@Nonnull final BckndCommonResourceQuotaResponseUsage usage) { + + protected BckndCommonResourceQuotaResponse() {} + + /** + * Set the usage of this {@link BckndCommonResourceQuotaResponse} instance and return the same + * instance. + * + * @param usage The usage of this {@link BckndCommonResourceQuotaResponse} + * @return The same instance of this {@link BckndCommonResourceQuotaResponse} class + */ + @Nonnull + public BckndCommonResourceQuotaResponse usage( + @Nonnull final BckndCommonResourceQuotaResponseUsage usage) { this.usage = usage; return this; } - /** - * Get usage - * @return usage The usage of this {@link BckndCommonResourceQuotaResponse} instance. - */ - @Nonnull public BckndCommonResourceQuotaResponseUsage getUsage() { + /** + * Get usage + * + * @return usage The usage of this {@link BckndCommonResourceQuotaResponse} instance. + */ + @Nonnull + public BckndCommonResourceQuotaResponseUsage getUsage() { return usage; } /** * Set the usage of this {@link BckndCommonResourceQuotaResponse} instance. * - * @param usage The usage of this {@link BckndCommonResourceQuotaResponse} + * @param usage The usage of this {@link BckndCommonResourceQuotaResponse} */ - public void setUsage( @Nonnull final BckndCommonResourceQuotaResponseUsage usage) { + public void setUsage(@Nonnull final BckndCommonResourceQuotaResponseUsage usage) { this.usage = usage; } - /** - * Set the quota of this {@link BckndCommonResourceQuotaResponse} instance and return the same instance. - * - * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} - * @return The same instance of this {@link BckndCommonResourceQuotaResponse} class - */ - @Nonnull public BckndCommonResourceQuotaResponse quota(@Nonnull final BckndCommonResourceQuotaResponseQuota quota) { + /** + * Set the quota of this {@link BckndCommonResourceQuotaResponse} instance and return the same + * instance. + * + * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} + * @return The same instance of this {@link BckndCommonResourceQuotaResponse} class + */ + @Nonnull + public BckndCommonResourceQuotaResponse quota( + @Nonnull final BckndCommonResourceQuotaResponseQuota quota) { this.quota = quota; return this; } - /** - * Get quota - * @return quota The quota of this {@link BckndCommonResourceQuotaResponse} instance. - */ - @Nonnull public BckndCommonResourceQuotaResponseQuota getQuota() { + /** + * Get quota + * + * @return quota The quota of this {@link BckndCommonResourceQuotaResponse} instance. + */ + @Nonnull + public BckndCommonResourceQuotaResponseQuota getQuota() { return quota; } /** * Set the quota of this {@link BckndCommonResourceQuotaResponse} instance. * - * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} + * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} */ - public void setQuota( @Nonnull final BckndCommonResourceQuotaResponseQuota quota) { + public void setQuota(@Nonnull final BckndCommonResourceQuotaResponseQuota quota) { this.quota = quota; } /** * Get the names of the unrecognizable properties of the {@link BckndCommonResourceQuotaResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -122,32 +118,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndCommonResourceQuotaResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndCommonResourceQuotaResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndCommonResourceQuotaResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndCommonResourceQuotaResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndCommonResourceQuotaResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndCommonResourceQuotaResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,10 +155,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndCommonResourceQuotaResponse bckndCommonResourceQuotaResponse = (BckndCommonResourceQuotaResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndCommonResourceQuotaResponse.cloudSdkCustomFields) && - Objects.equals(this.usage, bckndCommonResourceQuotaResponse.usage) && - Objects.equals(this.quota, bckndCommonResourceQuotaResponse.quota); + final BckndCommonResourceQuotaResponse bckndCommonResourceQuotaResponse = + (BckndCommonResourceQuotaResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndCommonResourceQuotaResponse.cloudSdkCustomFields) + && Objects.equals(this.usage, bckndCommonResourceQuotaResponse.usage) + && Objects.equals(this.quota, bckndCommonResourceQuotaResponse.quota); } @Override @@ -168,19 +169,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndCommonResourceQuotaResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append(" quota: ").append(toIndentedString(quota)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -189,24 +192,23 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndCommonResourceQuotaResponse} instance with all required arguments. - */ - public static Builder create() { - return (quota) -> new BckndCommonResourceQuotaResponse().quota(quota); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the quota of this {@link BckndCommonResourceQuotaResponse} instance. - * - * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} - * @return The BckndCommonResourceQuotaResponse instance. - */ - BckndCommonResourceQuotaResponse quota( @Nonnull final BckndCommonResourceQuotaResponseQuota quota); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndCommonResourceQuotaResponse} instance with all required arguments. + */ + public static Builder create() { + return (quota) -> new BckndCommonResourceQuotaResponse().quota(quota); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the quota of this {@link BckndCommonResourceQuotaResponse} instance. + * + * @param quota The quota of this {@link BckndCommonResourceQuotaResponse} + * @return The BckndCommonResourceQuotaResponse instance. + */ + BckndCommonResourceQuotaResponse quota( + @Nonnull final BckndCommonResourceQuotaResponseQuota quota); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java index e8ea6ae7..d9989cd2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseQuota.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,69 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndCommonResourceQuotaResponseQuota - */ +/** BckndCommonResourceQuotaResponseQuota */ // CHECKSTYLE:OFF -public class BckndCommonResourceQuotaResponseQuota +public class BckndCommonResourceQuotaResponseQuota // CHECKSTYLE:ON { @JsonProperty("maxCount") private Integer maxCount; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndCommonResourceQuotaResponseQuota() { } - - /** - * Set the maxCount of this {@link BckndCommonResourceQuotaResponseQuota} instance and return the same instance. - * - * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return The same instance of this {@link BckndCommonResourceQuotaResponseQuota} class - */ - @Nonnull public BckndCommonResourceQuotaResponseQuota maxCount(@Nonnull final Integer maxCount) { + + protected BckndCommonResourceQuotaResponseQuota() {} + + /** + * Set the maxCount of this {@link BckndCommonResourceQuotaResponseQuota} instance and return the + * same instance. + * + * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed + * number + * @return The same instance of this {@link BckndCommonResourceQuotaResponseQuota} class + */ + @Nonnull + public BckndCommonResourceQuotaResponseQuota maxCount(@Nonnull final Integer maxCount) { this.maxCount = maxCount; return this; } - /** - * The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return maxCount The maxCount of this {@link BckndCommonResourceQuotaResponseQuota} instance. - */ - @Nonnull public Integer getMaxCount() { + /** + * The value can be 0(disabled) or a positive integer defining the maximum allowed number + * + * @return maxCount The maxCount of this {@link BckndCommonResourceQuotaResponseQuota} instance. + */ + @Nonnull + public Integer getMaxCount() { return maxCount; } /** * Set the maxCount of this {@link BckndCommonResourceQuotaResponseQuota} instance. * - * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number + * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed + * number */ - public void setMaxCount( @Nonnull final Integer maxCount) { + public void setMaxCount(@Nonnull final Integer maxCount) { this.maxCount = maxCount; } /** - * Get the names of the unrecognizable properties of the {@link BckndCommonResourceQuotaResponseQuota}. + * Get the names of the unrecognizable properties of the {@link + * BckndCommonResourceQuotaResponseQuota}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +84,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndCommonResourceQuotaResponseQuota} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndCommonResourceQuotaResponseQuota} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndCommonResourceQuotaResponseQuota has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndCommonResourceQuotaResponseQuota has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndCommonResourceQuotaResponseQuota} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndCommonResourceQuotaResponseQuota} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +121,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndCommonResourceQuotaResponseQuota bckndCommonResourceQuotaResponseQuota = (BckndCommonResourceQuotaResponseQuota) o; - return Objects.equals(this.cloudSdkCustomFields, bckndCommonResourceQuotaResponseQuota.cloudSdkCustomFields) && - Objects.equals(this.maxCount, bckndCommonResourceQuotaResponseQuota.maxCount); + final BckndCommonResourceQuotaResponseQuota bckndCommonResourceQuotaResponseQuota = + (BckndCommonResourceQuotaResponseQuota) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndCommonResourceQuotaResponseQuota.cloudSdkCustomFields) + && Objects.equals(this.maxCount, bckndCommonResourceQuotaResponseQuota.maxCount); } @Override @@ -134,18 +134,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndCommonResourceQuotaResponseQuota {\n"); sb.append(" maxCount: ").append(toIndentedString(maxCount)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +156,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndCommonResourceQuotaResponseQuota} instance. No arguments are required. - */ - public static BckndCommonResourceQuotaResponseQuota create() { - return new BckndCommonResourceQuotaResponseQuota(); - } - + /** + * Create a new {@link BckndCommonResourceQuotaResponseQuota} instance. No arguments are required. + */ + public static BckndCommonResourceQuotaResponseQuota create() { + return new BckndCommonResourceQuotaResponseQuota(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java index c002ba9e..9d3ef20a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndCommonResourceQuotaResponseUsage.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,67 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndCommonResourceQuotaResponseUsage - */ +/** BckndCommonResourceQuotaResponseUsage */ // CHECKSTYLE:OFF -public class BckndCommonResourceQuotaResponseUsage +public class BckndCommonResourceQuotaResponseUsage // CHECKSTYLE:ON { @JsonProperty("count") private Integer count; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndCommonResourceQuotaResponseUsage() { } - - /** - * Set the count of this {@link BckndCommonResourceQuotaResponseUsage} instance and return the same instance. - * - * @param count The count of this {@link BckndCommonResourceQuotaResponseUsage} - * @return The same instance of this {@link BckndCommonResourceQuotaResponseUsage} class - */ - @Nonnull public BckndCommonResourceQuotaResponseUsage count(@Nonnull final Integer count) { + + protected BckndCommonResourceQuotaResponseUsage() {} + + /** + * Set the count of this {@link BckndCommonResourceQuotaResponseUsage} instance and return the + * same instance. + * + * @param count The count of this {@link BckndCommonResourceQuotaResponseUsage} + * @return The same instance of this {@link BckndCommonResourceQuotaResponseUsage} class + */ + @Nonnull + public BckndCommonResourceQuotaResponseUsage count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Get count - * @return count The count of this {@link BckndCommonResourceQuotaResponseUsage} instance. - */ - @Nonnull public Integer getCount() { + /** + * Get count + * + * @return count The count of this {@link BckndCommonResourceQuotaResponseUsage} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndCommonResourceQuotaResponseUsage} instance. * - * @param count The count of this {@link BckndCommonResourceQuotaResponseUsage} + * @param count The count of this {@link BckndCommonResourceQuotaResponseUsage} */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } /** - * Get the names of the unrecognizable properties of the {@link BckndCommonResourceQuotaResponseUsage}. + * Get the names of the unrecognizable properties of the {@link + * BckndCommonResourceQuotaResponseUsage}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +82,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndCommonResourceQuotaResponseUsage} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndCommonResourceQuotaResponseUsage} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndCommonResourceQuotaResponseUsage has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndCommonResourceQuotaResponseUsage has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndCommonResourceQuotaResponseUsage} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndCommonResourceQuotaResponseUsage} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +119,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndCommonResourceQuotaResponseUsage bckndCommonResourceQuotaResponseUsage = (BckndCommonResourceQuotaResponseUsage) o; - return Objects.equals(this.cloudSdkCustomFields, bckndCommonResourceQuotaResponseUsage.cloudSdkCustomFields) && - Objects.equals(this.count, bckndCommonResourceQuotaResponseUsage.count); + final BckndCommonResourceQuotaResponseUsage bckndCommonResourceQuotaResponseUsage = + (BckndCommonResourceQuotaResponseUsage) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndCommonResourceQuotaResponseUsage.cloudSdkCustomFields) + && Objects.equals(this.count, bckndCommonResourceQuotaResponseUsage.count); } @Override @@ -134,18 +132,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndCommonResourceQuotaResponseUsage {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +154,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndCommonResourceQuotaResponseUsage} instance. No arguments are required. - */ - public static BckndCommonResourceQuotaResponseUsage create() { - return new BckndCommonResourceQuotaResponseUsage(); - } - + /** + * Create a new {@link BckndCommonResourceQuotaResponseUsage} instance. No arguments are required. + */ + public static BckndCommonResourceQuotaResponseUsage create() { + return new BckndCommonResourceQuotaResponseUsage(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java index 3be034a7..defe1775 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuota.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndDeploymentQuota - */ +/** BckndDeploymentQuota */ // CHECKSTYLE:OFF -public class BckndDeploymentQuota +public class BckndDeploymentQuota // CHECKSTYLE:ON { @JsonProperty("maxCount") @@ -48,69 +35,81 @@ public class BckndDeploymentQuota @JsonProperty("maxReplicaPerDeployment") private Integer maxReplicaPerDeployment; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndDeploymentQuota() { } - - /** - * Set the maxCount of this {@link BckndDeploymentQuota} instance and return the same instance. - * - * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return The same instance of this {@link BckndDeploymentQuota} class - */ - @Nonnull public BckndDeploymentQuota maxCount(@Nonnull final Integer maxCount) { + + protected BckndDeploymentQuota() {} + + /** + * Set the maxCount of this {@link BckndDeploymentQuota} instance and return the same instance. + * + * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed + * number + * @return The same instance of this {@link BckndDeploymentQuota} class + */ + @Nonnull + public BckndDeploymentQuota maxCount(@Nonnull final Integer maxCount) { this.maxCount = maxCount; return this; } - /** - * The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return maxCount The maxCount of this {@link BckndDeploymentQuota} instance. - */ - @Nonnull public Integer getMaxCount() { + /** + * The value can be 0(disabled) or a positive integer defining the maximum allowed number + * + * @return maxCount The maxCount of this {@link BckndDeploymentQuota} instance. + */ + @Nonnull + public Integer getMaxCount() { return maxCount; } /** * Set the maxCount of this {@link BckndDeploymentQuota} instance. * - * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number + * @param maxCount The value can be 0(disabled) or a positive integer defining the maximum allowed + * number */ - public void setMaxCount( @Nonnull final Integer maxCount) { + public void setMaxCount(@Nonnull final Integer maxCount) { this.maxCount = maxCount; } - /** - * Set the maxReplicaPerDeployment of this {@link BckndDeploymentQuota} instance and return the same instance. - * - * @param maxReplicaPerDeployment The maxReplicaPerDeployment of this {@link BckndDeploymentQuota} - * @return The same instance of this {@link BckndDeploymentQuota} class - */ - @Nonnull public BckndDeploymentQuota maxReplicaPerDeployment(@Nonnull final Integer maxReplicaPerDeployment) { + /** + * Set the maxReplicaPerDeployment of this {@link BckndDeploymentQuota} instance and return the + * same instance. + * + * @param maxReplicaPerDeployment The maxReplicaPerDeployment of this {@link BckndDeploymentQuota} + * @return The same instance of this {@link BckndDeploymentQuota} class + */ + @Nonnull + public BckndDeploymentQuota maxReplicaPerDeployment( + @Nonnull final Integer maxReplicaPerDeployment) { this.maxReplicaPerDeployment = maxReplicaPerDeployment; return this; } - /** - * Get maxReplicaPerDeployment - * @return maxReplicaPerDeployment The maxReplicaPerDeployment of this {@link BckndDeploymentQuota} instance. - */ - @Nonnull public Integer getMaxReplicaPerDeployment() { + /** + * Get maxReplicaPerDeployment + * + * @return maxReplicaPerDeployment The maxReplicaPerDeployment of this {@link + * BckndDeploymentQuota} instance. + */ + @Nonnull + public Integer getMaxReplicaPerDeployment() { return maxReplicaPerDeployment; } /** * Set the maxReplicaPerDeployment of this {@link BckndDeploymentQuota} instance. * - * @param maxReplicaPerDeployment The maxReplicaPerDeployment of this {@link BckndDeploymentQuota} + * @param maxReplicaPerDeployment The maxReplicaPerDeployment of this {@link BckndDeploymentQuota} */ - public void setMaxReplicaPerDeployment( @Nonnull final Integer maxReplicaPerDeployment) { + public void setMaxReplicaPerDeployment(@Nonnull final Integer maxReplicaPerDeployment) { this.maxReplicaPerDeployment = maxReplicaPerDeployment; } /** * Get the names of the unrecognizable properties of the {@link BckndDeploymentQuota}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +120,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndDeploymentQuota} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndDeploymentQuota has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndDeploymentQuota has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndDeploymentQuota} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndDeploymentQuota} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +155,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndDeploymentQuota bckndDeploymentQuota = (BckndDeploymentQuota) o; - return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentQuota.cloudSdkCustomFields) && - Objects.equals(this.maxCount, bckndDeploymentQuota.maxCount) && - Objects.equals(this.maxReplicaPerDeployment, bckndDeploymentQuota.maxReplicaPerDeployment); + return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentQuota.cloudSdkCustomFields) + && Objects.equals(this.maxCount, bckndDeploymentQuota.maxCount) + && Objects.equals( + this.maxReplicaPerDeployment, bckndDeploymentQuota.maxReplicaPerDeployment); } @Override @@ -166,19 +167,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndDeploymentQuota {\n"); sb.append(" maxCount: ").append(toIndentedString(maxCount)).append("\n"); - sb.append(" maxReplicaPerDeployment: ").append(toIndentedString(maxReplicaPerDeployment)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" maxReplicaPerDeployment: ") + .append(toIndentedString(maxReplicaPerDeployment)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +192,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndDeploymentQuota} instance. No arguments are required. - */ - public static BckndDeploymentQuota create() { - return new BckndDeploymentQuota(); - } - + /** Create a new {@link BckndDeploymentQuota} instance. No arguments are required. */ + public static BckndDeploymentQuota create() { + return new BckndDeploymentQuota(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java index f745da46..538cc58e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentQuotaItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndDeploymentQuota; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndDeploymentQuotaItem - */ +/** BckndDeploymentQuotaItem */ // CHECKSTYLE:OFF -public class BckndDeploymentQuotaItem +public class BckndDeploymentQuotaItem // CHECKSTYLE:ON { @JsonProperty("resourcePlanType") @@ -49,69 +35,80 @@ public class BckndDeploymentQuotaItem @JsonProperty("deploymentQuota") private BckndDeploymentQuota deploymentQuota; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndDeploymentQuotaItem() { } - - /** - * Set the resourcePlanType of this {@link BckndDeploymentQuotaItem} instance and return the same instance. - * - * @param resourcePlanType The resourcePlanType of this {@link BckndDeploymentQuotaItem} - * @return The same instance of this {@link BckndDeploymentQuotaItem} class - */ - @Nonnull public BckndDeploymentQuotaItem resourcePlanType(@Nonnull final String resourcePlanType) { + + protected BckndDeploymentQuotaItem() {} + + /** + * Set the resourcePlanType of this {@link BckndDeploymentQuotaItem} instance and return the same + * instance. + * + * @param resourcePlanType The resourcePlanType of this {@link BckndDeploymentQuotaItem} + * @return The same instance of this {@link BckndDeploymentQuotaItem} class + */ + @Nonnull + public BckndDeploymentQuotaItem resourcePlanType(@Nonnull final String resourcePlanType) { this.resourcePlanType = resourcePlanType; return this; } - /** - * Get resourcePlanType - * @return resourcePlanType The resourcePlanType of this {@link BckndDeploymentQuotaItem} instance. - */ - @Nonnull public String getResourcePlanType() { + /** + * Get resourcePlanType + * + * @return resourcePlanType The resourcePlanType of this {@link BckndDeploymentQuotaItem} + * instance. + */ + @Nonnull + public String getResourcePlanType() { return resourcePlanType; } /** * Set the resourcePlanType of this {@link BckndDeploymentQuotaItem} instance. * - * @param resourcePlanType The resourcePlanType of this {@link BckndDeploymentQuotaItem} + * @param resourcePlanType The resourcePlanType of this {@link BckndDeploymentQuotaItem} */ - public void setResourcePlanType( @Nonnull final String resourcePlanType) { + public void setResourcePlanType(@Nonnull final String resourcePlanType) { this.resourcePlanType = resourcePlanType; } - /** - * Set the deploymentQuota of this {@link BckndDeploymentQuotaItem} instance and return the same instance. - * - * @param deploymentQuota The deploymentQuota of this {@link BckndDeploymentQuotaItem} - * @return The same instance of this {@link BckndDeploymentQuotaItem} class - */ - @Nonnull public BckndDeploymentQuotaItem deploymentQuota(@Nonnull final BckndDeploymentQuota deploymentQuota) { + /** + * Set the deploymentQuota of this {@link BckndDeploymentQuotaItem} instance and return the same + * instance. + * + * @param deploymentQuota The deploymentQuota of this {@link BckndDeploymentQuotaItem} + * @return The same instance of this {@link BckndDeploymentQuotaItem} class + */ + @Nonnull + public BckndDeploymentQuotaItem deploymentQuota( + @Nonnull final BckndDeploymentQuota deploymentQuota) { this.deploymentQuota = deploymentQuota; return this; } - /** - * Get deploymentQuota - * @return deploymentQuota The deploymentQuota of this {@link BckndDeploymentQuotaItem} instance. - */ - @Nonnull public BckndDeploymentQuota getDeploymentQuota() { + /** + * Get deploymentQuota + * + * @return deploymentQuota The deploymentQuota of this {@link BckndDeploymentQuotaItem} instance. + */ + @Nonnull + public BckndDeploymentQuota getDeploymentQuota() { return deploymentQuota; } /** * Set the deploymentQuota of this {@link BckndDeploymentQuotaItem} instance. * - * @param deploymentQuota The deploymentQuota of this {@link BckndDeploymentQuotaItem} + * @param deploymentQuota The deploymentQuota of this {@link BckndDeploymentQuotaItem} */ - public void setDeploymentQuota( @Nonnull final BckndDeploymentQuota deploymentQuota) { + public void setDeploymentQuota(@Nonnull final BckndDeploymentQuota deploymentQuota) { this.deploymentQuota = deploymentQuota; } /** * Get the names of the unrecognizable properties of the {@link BckndDeploymentQuotaItem}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +119,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndDeploymentQuotaItem} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndDeploymentQuotaItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndDeploymentQuotaItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndDeploymentQuotaItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndDeploymentQuotaItem} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +154,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndDeploymentQuotaItem bckndDeploymentQuotaItem = (BckndDeploymentQuotaItem) o; - return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentQuotaItem.cloudSdkCustomFields) && - Objects.equals(this.resourcePlanType, bckndDeploymentQuotaItem.resourcePlanType) && - Objects.equals(this.deploymentQuota, bckndDeploymentQuotaItem.deploymentQuota); + return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentQuotaItem.cloudSdkCustomFields) + && Objects.equals(this.resourcePlanType, bckndDeploymentQuotaItem.resourcePlanType) + && Objects.equals(this.deploymentQuota, bckndDeploymentQuotaItem.deploymentQuota); } @Override @@ -167,19 +165,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndDeploymentQuotaItem {\n"); sb.append(" resourcePlanType: ").append(toIndentedString(resourcePlanType)).append("\n"); sb.append(" deploymentQuota: ").append(toIndentedString(deploymentQuota)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +188,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndDeploymentQuotaItem} instance. No arguments are required. - */ - public static BckndDeploymentQuotaItem create() { - return new BckndDeploymentQuotaItem(); - } - + /** Create a new {@link BckndDeploymentQuotaItem} instance. No arguments are required. */ + public static BckndDeploymentQuotaItem create() { + return new BckndDeploymentQuotaItem(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java index 19ec13a8..5e666e66 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentResourceQuotaResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndDeploymentQuotaItem; -import com.sap.ai.sdk.core.client.model.BckndDeploymentUsage; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndDeploymentResourceQuotaResponse - */ +/** BckndDeploymentResourceQuotaResponse */ // CHECKSTYLE:OFF -public class BckndDeploymentResourceQuotaResponse +public class BckndDeploymentResourceQuotaResponse // CHECKSTYLE:ON { @JsonProperty("usage") @@ -53,55 +38,66 @@ public class BckndDeploymentResourceQuotaResponse @JsonProperty("quotas") private List quotas = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndDeploymentResourceQuotaResponse() { } - - /** - * Set the usage of this {@link BckndDeploymentResourceQuotaResponse} instance and return the same instance. - * - * @param usage The usage of this {@link BckndDeploymentResourceQuotaResponse} - * @return The same instance of this {@link BckndDeploymentResourceQuotaResponse} class - */ - @Nonnull public BckndDeploymentResourceQuotaResponse usage(@Nonnull final BckndDeploymentUsage usage) { + + protected BckndDeploymentResourceQuotaResponse() {} + + /** + * Set the usage of this {@link BckndDeploymentResourceQuotaResponse} instance and return the same + * instance. + * + * @param usage The usage of this {@link BckndDeploymentResourceQuotaResponse} + * @return The same instance of this {@link BckndDeploymentResourceQuotaResponse} class + */ + @Nonnull + public BckndDeploymentResourceQuotaResponse usage(@Nonnull final BckndDeploymentUsage usage) { this.usage = usage; return this; } - /** - * Get usage - * @return usage The usage of this {@link BckndDeploymentResourceQuotaResponse} instance. - */ - @Nonnull public BckndDeploymentUsage getUsage() { + /** + * Get usage + * + * @return usage The usage of this {@link BckndDeploymentResourceQuotaResponse} instance. + */ + @Nonnull + public BckndDeploymentUsage getUsage() { return usage; } /** * Set the usage of this {@link BckndDeploymentResourceQuotaResponse} instance. * - * @param usage The usage of this {@link BckndDeploymentResourceQuotaResponse} + * @param usage The usage of this {@link BckndDeploymentResourceQuotaResponse} */ - public void setUsage( @Nonnull final BckndDeploymentUsage usage) { + public void setUsage(@Nonnull final BckndDeploymentUsage usage) { this.usage = usage; } - /** - * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance and return the same instance. - * - * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} - * @return The same instance of this {@link BckndDeploymentResourceQuotaResponse} class - */ - @Nonnull public BckndDeploymentResourceQuotaResponse quotas(@Nonnull final List quotas) { + /** + * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance and return the + * same instance. + * + * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} + * @return The same instance of this {@link BckndDeploymentResourceQuotaResponse} class + */ + @Nonnull + public BckndDeploymentResourceQuotaResponse quotas( + @Nonnull final List quotas) { this.quotas = quotas; return this; } + /** * Add one quotas instance to this {@link BckndDeploymentResourceQuotaResponse}. + * * @param quotasItem The quotas that should be added * @return The same instance of type {@link BckndDeploymentResourceQuotaResponse} */ - @Nonnull public BckndDeploymentResourceQuotaResponse addQuotasItem( @Nonnull final BckndDeploymentQuotaItem quotasItem) { + @Nonnull + public BckndDeploymentResourceQuotaResponse addQuotasItem( + @Nonnull final BckndDeploymentQuotaItem quotasItem) { if (this.quotas == null) { this.quotas = new ArrayList<>(); } @@ -109,25 +105,29 @@ public void setUsage( @Nonnull final BckndDeploymentUsage usage) { return this; } - /** - * Get quotas - * @return quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. - */ - @Nonnull public List getQuotas() { + /** + * Get quotas + * + * @return quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. + */ + @Nonnull + public List getQuotas() { return quotas; } /** * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. * - * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} + * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} */ - public void setQuotas( @Nonnull final List quotas) { + public void setQuotas(@Nonnull final List quotas) { this.quotas = quotas; } /** - * Get the names of the unrecognizable properties of the {@link BckndDeploymentResourceQuotaResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndDeploymentResourceQuotaResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -137,32 +137,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndDeploymentResourceQuotaResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndDeploymentResourceQuotaResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndDeploymentResourceQuotaResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndDeploymentResourceQuotaResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndDeploymentResourceQuotaResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndDeploymentResourceQuotaResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,10 +174,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndDeploymentResourceQuotaResponse bckndDeploymentResourceQuotaResponse = (BckndDeploymentResourceQuotaResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentResourceQuotaResponse.cloudSdkCustomFields) && - Objects.equals(this.usage, bckndDeploymentResourceQuotaResponse.usage) && - Objects.equals(this.quotas, bckndDeploymentResourceQuotaResponse.quotas); + final BckndDeploymentResourceQuotaResponse bckndDeploymentResourceQuotaResponse = + (BckndDeploymentResourceQuotaResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndDeploymentResourceQuotaResponse.cloudSdkCustomFields) + && Objects.equals(this.usage, bckndDeploymentResourceQuotaResponse.usage) + && Objects.equals(this.quotas, bckndDeploymentResourceQuotaResponse.quotas); } @Override @@ -183,19 +188,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndDeploymentResourceQuotaResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append(" quotas: ").append(toIndentedString(quotas)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -204,33 +211,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndDeploymentResourceQuotaResponse} instance with all required arguments. + */ + public static Builder create() { + return (quotas) -> new BckndDeploymentResourceQuotaResponse().quotas(quotas); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndDeploymentResourceQuotaResponse} instance with all required arguments. - */ - public static Builder create() { - return (quotas) -> new BckndDeploymentResourceQuotaResponse().quotas(quotas); - } + * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. + * + * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} + * @return The BckndDeploymentResourceQuotaResponse instance. + */ + BckndDeploymentResourceQuotaResponse quotas( + @Nonnull final List quotas); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. - * - * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} - * @return The BckndDeploymentResourceQuotaResponse instance. - */ - BckndDeploymentResourceQuotaResponse quotas( @Nonnull final List quotas); - /** - * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. - * - * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} - * @return The BckndDeploymentResourceQuotaResponse instance. - */ - default BckndDeploymentResourceQuotaResponse quotas( @Nonnull final BckndDeploymentQuotaItem... quotas) { - return quotas(Arrays.asList(quotas)); - } + * Set the quotas of this {@link BckndDeploymentResourceQuotaResponse} instance. + * + * @param quotas The quotas of this {@link BckndDeploymentResourceQuotaResponse} + * @return The BckndDeploymentResourceQuotaResponse instance. + */ + default BckndDeploymentResourceQuotaResponse quotas( + @Nonnull final BckndDeploymentQuotaItem... quotas) { + return quotas(Arrays.asList(quotas)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java index c92cb180..100336a1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndDeploymentUsage.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndUsageResourcePlanItem; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndDeploymentUsage - */ +/** BckndDeploymentUsage */ // CHECKSTYLE:OFF -public class BckndDeploymentUsage +public class BckndDeploymentUsage // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class BckndDeploymentUsage @JsonProperty("items") private List items = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndDeploymentUsage() { } - - /** - * Set the count of this {@link BckndDeploymentUsage} instance and return the same instance. - * - * @param count The count of this {@link BckndDeploymentUsage} - * @return The same instance of this {@link BckndDeploymentUsage} class - */ - @Nonnull public BckndDeploymentUsage count(@Nonnull final Integer count) { + + protected BckndDeploymentUsage() {} + + /** + * Set the count of this {@link BckndDeploymentUsage} instance and return the same instance. + * + * @param count The count of this {@link BckndDeploymentUsage} + * @return The same instance of this {@link BckndDeploymentUsage} class + */ + @Nonnull + public BckndDeploymentUsage count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Get count - * @return count The count of this {@link BckndDeploymentUsage} instance. - */ - @Nonnull public Integer getCount() { + /** + * Get count + * + * @return count The count of this {@link BckndDeploymentUsage} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndDeploymentUsage} instance. * - * @param count The count of this {@link BckndDeploymentUsage} + * @param count The count of this {@link BckndDeploymentUsage} */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the items of this {@link BckndDeploymentUsage} instance and return the same instance. - * - * @param items The items of this {@link BckndDeploymentUsage} - * @return The same instance of this {@link BckndDeploymentUsage} class - */ - @Nonnull public BckndDeploymentUsage items(@Nonnull final List items) { + /** + * Set the items of this {@link BckndDeploymentUsage} instance and return the same instance. + * + * @param items The items of this {@link BckndDeploymentUsage} + * @return The same instance of this {@link BckndDeploymentUsage} class + */ + @Nonnull + public BckndDeploymentUsage items(@Nonnull final List items) { this.items = items; return this; } + /** * Add one items instance to this {@link BckndDeploymentUsage}. + * * @param itemsItem The items that should be added * @return The same instance of type {@link BckndDeploymentUsage} */ - @Nonnull public BckndDeploymentUsage addItemsItem( @Nonnull final BckndUsageResourcePlanItem itemsItem) { + @Nonnull + public BckndDeploymentUsage addItemsItem(@Nonnull final BckndUsageResourcePlanItem itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get items - * @return items The items of this {@link BckndDeploymentUsage} instance. - */ - @Nonnull public List getItems() { + /** + * Get items + * + * @return items The items of this {@link BckndDeploymentUsage} instance. + */ + @Nonnull + public List getItems() { return items; } /** * Set the items of this {@link BckndDeploymentUsage} instance. * - * @param items The items of this {@link BckndDeploymentUsage} + * @param items The items of this {@link BckndDeploymentUsage} */ - public void setItems( @Nonnull final List items) { + public void setItems(@Nonnull final List items) { this.items = items; } /** * Get the names of the unrecognizable properties of the {@link BckndDeploymentUsage}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndDeploymentUsage} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndDeploymentUsage has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndDeploymentUsage has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndDeploymentUsage} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndDeploymentUsage} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +168,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndDeploymentUsage bckndDeploymentUsage = (BckndDeploymentUsage) o; - return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentUsage.cloudSdkCustomFields) && - Objects.equals(this.count, bckndDeploymentUsage.count) && - Objects.equals(this.items, bckndDeploymentUsage.items); + return Objects.equals(this.cloudSdkCustomFields, bckndDeploymentUsage.cloudSdkCustomFields) + && Objects.equals(this.count, bckndDeploymentUsage.count) + && Objects.equals(this.items, bckndDeploymentUsage.items); } @Override @@ -182,19 +179,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndDeploymentUsage {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +202,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndDeploymentUsage} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (items) -> new BckndDeploymentUsage().count(count).items(items); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndDeploymentUsage} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (items) -> new BckndDeploymentUsage().count(count).items(items); - } + * Set the count of this {@link BckndDeploymentUsage} instance. + * + * @param count The count of this {@link BckndDeploymentUsage} + * @return The BckndDeploymentUsage builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndDeploymentUsage} instance. - * - * @param count The count of this {@link BckndDeploymentUsage} - * @return The BckndDeploymentUsage builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the items of this {@link BckndDeploymentUsage} instance. + * + * @param items The items of this {@link BckndDeploymentUsage} + * @return The BckndDeploymentUsage instance. + */ + BckndDeploymentUsage items(@Nonnull final List items); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the items of this {@link BckndDeploymentUsage} instance. - * - * @param items The items of this {@link BckndDeploymentUsage} - * @return The BckndDeploymentUsage instance. - */ - BckndDeploymentUsage items( @Nonnull final List items); - /** - * Set the items of this {@link BckndDeploymentUsage} instance. - * - * @param items The items of this {@link BckndDeploymentUsage} - * @return The BckndDeploymentUsage instance. - */ - default BckndDeploymentUsage items( @Nonnull final BckndUsageResourcePlanItem... items) { - return items(Arrays.asList(items)); - } + * Set the items of this {@link BckndDeploymentUsage} instance. + * + * @param items The items of this {@link BckndDeploymentUsage} + * @return The BckndDeploymentUsage instance. + */ + default BckndDeploymentUsage items(@Nonnull final BckndUsageResourcePlanItem... items) { + return items(Arrays.asList(items)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java index 6190e022..a15c10d9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndError - */ +/** BckndError */ // CHECKSTYLE:OFF -public class BckndError +public class BckndError // CHECKSTYLE:ON { @JsonProperty("code") @@ -57,153 +44,169 @@ public class BckndError @JsonProperty("details") private Object details; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndError() { } - - /** - * Set the code of this {@link BckndError} instance and return the same instance. - * - * @param code Descriptive error code (not http status code) - * @return The same instance of this {@link BckndError} class - */ - @Nonnull public BckndError code(@Nonnull final String code) { + + protected BckndError() {} + + /** + * Set the code of this {@link BckndError} instance and return the same instance. + * + * @param code Descriptive error code (not http status code) + * @return The same instance of this {@link BckndError} class + */ + @Nonnull + public BckndError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code) - * @return code The code of this {@link BckndError} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code) + * + * @return code The code of this {@link BckndError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link BckndError} instance. * - * @param code Descriptive error code (not http status code) + * @param code Descriptive error code (not http status code) */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link BckndError} instance and return the same instance. - * - * @param message Plaintext error description - * @return The same instance of this {@link BckndError} class - */ - @Nonnull public BckndError message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndError} instance and return the same instance. + * + * @param message Plaintext error description + * @return The same instance of this {@link BckndError} class + */ + @Nonnull + public BckndError message(@Nonnull final String message) { this.message = message; return this; } - /** - * Plaintext error description - * @return message The message of this {@link BckndError} instance. - */ - @Nonnull public String getMessage() { + /** + * Plaintext error description + * + * @return message The message of this {@link BckndError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndError} instance. * - * @param message Plaintext error description + * @param message Plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the requestId of this {@link BckndError} instance and return the same instance. - * - * @param requestId ID of the individual request - * @return The same instance of this {@link BckndError} class - */ - @Nonnull public BckndError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link BckndError} instance and return the same instance. + * + * @param requestId ID of the individual request + * @return The same instance of this {@link BckndError} class + */ + @Nonnull + public BckndError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * ID of the individual request - * @return requestId The requestId of this {@link BckndError} instance. - */ - @Nonnull public String getRequestId() { + /** + * ID of the individual request + * + * @return requestId The requestId of this {@link BckndError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link BckndError} instance. * - * @param requestId ID of the individual request + * @param requestId ID of the individual request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the target of this {@link BckndError} instance and return the same instance. - * - * @param target Invoked URL - * @return The same instance of this {@link BckndError} class - */ - @Nonnull public BckndError target(@Nonnull final String target) { + /** + * Set the target of this {@link BckndError} instance and return the same instance. + * + * @param target Invoked URL + * @return The same instance of this {@link BckndError} class + */ + @Nonnull + public BckndError target(@Nonnull final String target) { this.target = target; return this; } - /** - * Invoked URL - * @return target The target of this {@link BckndError} instance. - */ - @Nonnull public String getTarget() { + /** + * Invoked URL + * + * @return target The target of this {@link BckndError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link BckndError} instance. * - * @param target Invoked URL + * @param target Invoked URL */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the details of this {@link BckndError} instance and return the same instance. - * - * @param details Optional details of the error message - * @return The same instance of this {@link BckndError} class - */ - @Nonnull public BckndError details(@Nonnull final Object details) { + /** + * Set the details of this {@link BckndError} instance and return the same instance. + * + * @param details Optional details of the error message + * @return The same instance of this {@link BckndError} class + */ + @Nonnull + public BckndError details(@Nonnull final Object details) { this.details = details; return this; } - /** - * Optional details of the error message - * @return details The details of this {@link BckndError} instance. - */ - @Nonnull public Object getDetails() { + /** + * Optional details of the error message + * + * @return details The details of this {@link BckndError} instance. + */ + @Nonnull + public Object getDetails() { return details; } /** * Set the details of this {@link BckndError} instance. * - * @param details Optional details of the error message + * @param details Optional details of the error message */ - public void setDetails( @Nonnull final Object details) { + public void setDetails(@Nonnull final Object details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link BckndError}. + * * @return The set of properties names */ @JsonIgnore @@ -214,31 +217,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,12 +251,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndError bckndError = (BckndError) o; - return Objects.equals(this.cloudSdkCustomFields, bckndError.cloudSdkCustomFields) && - Objects.equals(this.code, bckndError.code) && - Objects.equals(this.message, bckndError.message) && - Objects.equals(this.requestId, bckndError.requestId) && - Objects.equals(this.target, bckndError.target) && - Objects.equals(this.details, bckndError.details); + return Objects.equals(this.cloudSdkCustomFields, bckndError.cloudSdkCustomFields) + && Objects.equals(this.code, bckndError.code) + && Objects.equals(this.message, bckndError.message) + && Objects.equals(this.requestId, bckndError.requestId) + && Objects.equals(this.target, bckndError.target) + && Objects.equals(this.details, bckndError.details); } @Override @@ -262,7 +265,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -270,14 +274,15 @@ public int hashCode() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -286,36 +291,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndError} instance + * with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new BckndError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new BckndError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link BckndError} instance. - * - * @param code Descriptive error code (not http status code) - * @return The BckndError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndError} instance. - * - * @param message Plaintext error description - * @return The BckndError instance. - */ - BckndError message( @Nonnull final String message); - } + * Set the code of this {@link BckndError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The BckndError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndError} instance. + * + * @param message Plaintext error description + * @return The BckndError instance. + */ + BckndError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java index 4606859a..c8f9860b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndErrorResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndErrorResponse - */ +/** BckndErrorResponse */ // CHECKSTYLE:OFF -public class BckndErrorResponse +public class BckndErrorResponse // CHECKSTYLE:ON { @JsonProperty("error") private BckndError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndErrorResponse() { } - - /** - * Set the error of this {@link BckndErrorResponse} instance and return the same instance. - * - * @param error The error of this {@link BckndErrorResponse} - * @return The same instance of this {@link BckndErrorResponse} class - */ - @Nonnull public BckndErrorResponse error(@Nonnull final BckndError error) { + + protected BckndErrorResponse() {} + + /** + * Set the error of this {@link BckndErrorResponse} instance and return the same instance. + * + * @param error The error of this {@link BckndErrorResponse} + * @return The same instance of this {@link BckndErrorResponse} class + */ + @Nonnull + public BckndErrorResponse error(@Nonnull final BckndError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link BckndErrorResponse} instance. - */ - @Nonnull public BckndError getError() { + /** + * Get error + * + * @return error The error of this {@link BckndErrorResponse} instance. + */ + @Nonnull + public BckndError getError() { return error; } /** * Set the error of this {@link BckndErrorResponse} instance. * - * @param error The error of this {@link BckndErrorResponse} + * @param error The error of this {@link BckndErrorResponse} */ - public void setError( @Nonnull final BckndError error) { + public void setError(@Nonnull final BckndError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link BckndErrorResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndErrorResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndErrorResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndErrorResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndErrorResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndErrorResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +115,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndErrorResponse bckndErrorResponse = (BckndErrorResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndErrorResponse.cloudSdkCustomFields) && - Objects.equals(this.error, bckndErrorResponse.error); + return Objects.equals(this.cloudSdkCustomFields, bckndErrorResponse.cloudSdkCustomFields) + && Objects.equals(this.error, bckndErrorResponse.error); } @Override @@ -135,18 +125,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndErrorResponse {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +147,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndErrorResponse} instance. No arguments are required. - */ - public static BckndErrorResponse create() { - return new BckndErrorResponse(); - } - + /** Create a new {@link BckndErrorResponse} instance. No arguments are required. */ + public static BckndErrorResponse create() { + return new BckndErrorResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java index 8b442454..f189e051 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndEvent.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,50 +12,35 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndEvent - */ +/** BckndEvent */ // CHECKSTYLE:OFF -public class BckndEvent +public class BckndEvent // CHECKSTYLE:ON { @JsonProperty("tenantId") private String tenantId; - /** - * Gets or Sets action - */ + /** Gets or Sets action */ public enum ActionEnum { - /** - * The PROVISION option of this BckndEvent - */ + /** The PROVISION option of this BckndEvent */ PROVISION("PROVISION"), - - /** - * The DEPROVISION option of this BckndEvent - */ + + /** The DEPROVISION option of this BckndEvent */ DEPROVISION("DEPROVISION"); private String value; @@ -67,30 +50,36 @@ public enum ActionEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndEvent - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndEvent + */ @JsonCreator - @Nonnull public static ActionEnum fromValue(@Nonnull final String value) { + @Nonnull + public static ActionEnum fromValue(@Nonnull final String value) { for (ActionEnum b : ActionEnum.values()) { if (b.value.equals(value)) { return b; @@ -103,23 +92,15 @@ public enum ActionEnum { @JsonProperty("action") private ActionEnum action; - /** - * Gets or Sets state - */ + /** Gets or Sets state */ public enum StateEnum { - /** - * The SUCCESSFUL option of this BckndEvent - */ + /** The SUCCESSFUL option of this BckndEvent */ SUCCESSFUL("SUCCESSFUL"), - - /** - * The FAILED option of this BckndEvent - */ + + /** The FAILED option of this BckndEvent */ FAILED("FAILED"), - - /** - * The PENDING option of this BckndEvent - */ + + /** The PENDING option of this BckndEvent */ PENDING("PENDING"); private String value; @@ -129,30 +110,36 @@ public enum StateEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndEvent - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndEvent + */ @JsonCreator - @Nonnull public static StateEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StateEnum fromValue(@Nonnull final String value) { for (StateEnum b : StateEnum.values()) { if (b.value.equals(value)) { return b; @@ -171,153 +158,169 @@ public enum StateEnum { @JsonProperty("createdAt") private OffsetDateTime createdAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndEvent() { } - - /** - * Set the tenantId of this {@link BckndEvent} instance and return the same instance. - * - * @param tenantId tenant id - * @return The same instance of this {@link BckndEvent} class - */ - @Nonnull public BckndEvent tenantId(@Nonnull final String tenantId) { + + protected BckndEvent() {} + + /** + * Set the tenantId of this {@link BckndEvent} instance and return the same instance. + * + * @param tenantId tenant id + * @return The same instance of this {@link BckndEvent} class + */ + @Nonnull + public BckndEvent tenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; return this; } - /** - * tenant id - * @return tenantId The tenantId of this {@link BckndEvent} instance. - */ - @Nonnull public String getTenantId() { + /** + * tenant id + * + * @return tenantId The tenantId of this {@link BckndEvent} instance. + */ + @Nonnull + public String getTenantId() { return tenantId; } /** * Set the tenantId of this {@link BckndEvent} instance. * - * @param tenantId tenant id + * @param tenantId tenant id */ - public void setTenantId( @Nonnull final String tenantId) { + public void setTenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; } - /** - * Set the action of this {@link BckndEvent} instance and return the same instance. - * - * @param action The action of this {@link BckndEvent} - * @return The same instance of this {@link BckndEvent} class - */ - @Nonnull public BckndEvent action(@Nonnull final ActionEnum action) { + /** + * Set the action of this {@link BckndEvent} instance and return the same instance. + * + * @param action The action of this {@link BckndEvent} + * @return The same instance of this {@link BckndEvent} class + */ + @Nonnull + public BckndEvent action(@Nonnull final ActionEnum action) { this.action = action; return this; } - /** - * Get action - * @return action The action of this {@link BckndEvent} instance. - */ - @Nonnull public ActionEnum getAction() { + /** + * Get action + * + * @return action The action of this {@link BckndEvent} instance. + */ + @Nonnull + public ActionEnum getAction() { return action; } /** * Set the action of this {@link BckndEvent} instance. * - * @param action The action of this {@link BckndEvent} + * @param action The action of this {@link BckndEvent} */ - public void setAction( @Nonnull final ActionEnum action) { + public void setAction(@Nonnull final ActionEnum action) { this.action = action; } - /** - * Set the state of this {@link BckndEvent} instance and return the same instance. - * - * @param state The state of this {@link BckndEvent} - * @return The same instance of this {@link BckndEvent} class - */ - @Nonnull public BckndEvent state(@Nonnull final StateEnum state) { + /** + * Set the state of this {@link BckndEvent} instance and return the same instance. + * + * @param state The state of this {@link BckndEvent} + * @return The same instance of this {@link BckndEvent} class + */ + @Nonnull + public BckndEvent state(@Nonnull final StateEnum state) { this.state = state; return this; } - /** - * Get state - * @return state The state of this {@link BckndEvent} instance. - */ - @Nonnull public StateEnum getState() { + /** + * Get state + * + * @return state The state of this {@link BckndEvent} instance. + */ + @Nonnull + public StateEnum getState() { return state; } /** * Set the state of this {@link BckndEvent} instance. * - * @param state The state of this {@link BckndEvent} + * @param state The state of this {@link BckndEvent} */ - public void setState( @Nonnull final StateEnum state) { + public void setState(@Nonnull final StateEnum state) { this.state = state; } - /** - * Set the description of this {@link BckndEvent} instance and return the same instance. - * - * @param description describes the event state - * @return The same instance of this {@link BckndEvent} class - */ - @Nonnull public BckndEvent description(@Nonnull final String description) { + /** + * Set the description of this {@link BckndEvent} instance and return the same instance. + * + * @param description describes the event state + * @return The same instance of this {@link BckndEvent} class + */ + @Nonnull + public BckndEvent description(@Nonnull final String description) { this.description = description; return this; } - /** - * describes the event state - * @return description The description of this {@link BckndEvent} instance. - */ - @Nonnull public String getDescription() { + /** + * describes the event state + * + * @return description The description of this {@link BckndEvent} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link BckndEvent} instance. * - * @param description describes the event state + * @param description describes the event state */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the createdAt of this {@link BckndEvent} instance and return the same instance. - * - * @param createdAt The createdAt of this {@link BckndEvent} - * @return The same instance of this {@link BckndEvent} class - */ - @Nonnull public BckndEvent createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link BckndEvent} instance and return the same instance. + * + * @param createdAt The createdAt of this {@link BckndEvent} + * @return The same instance of this {@link BckndEvent} class + */ + @Nonnull + public BckndEvent createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Get createdAt - * @return createdAt The createdAt of this {@link BckndEvent} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Get createdAt + * + * @return createdAt The createdAt of this {@link BckndEvent} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link BckndEvent} instance. * - * @param createdAt The createdAt of this {@link BckndEvent} + * @param createdAt The createdAt of this {@link BckndEvent} */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } /** * Get the names of the unrecognizable properties of the {@link BckndEvent}. + * * @return The set of properties names */ @JsonIgnore @@ -328,31 +331,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndEvent} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndEvent has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndEvent has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndEvent} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndEvent} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -362,12 +365,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndEvent bckndEvent = (BckndEvent) o; - return Objects.equals(this.cloudSdkCustomFields, bckndEvent.cloudSdkCustomFields) && - Objects.equals(this.tenantId, bckndEvent.tenantId) && - Objects.equals(this.action, bckndEvent.action) && - Objects.equals(this.state, bckndEvent.state) && - Objects.equals(this.description, bckndEvent.description) && - Objects.equals(this.createdAt, bckndEvent.createdAt); + return Objects.equals(this.cloudSdkCustomFields, bckndEvent.cloudSdkCustomFields) + && Objects.equals(this.tenantId, bckndEvent.tenantId) + && Objects.equals(this.action, bckndEvent.action) + && Objects.equals(this.state, bckndEvent.state) + && Objects.equals(this.description, bckndEvent.description) + && Objects.equals(this.createdAt, bckndEvent.createdAt); } @Override @@ -376,7 +379,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndEvent {\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); @@ -384,14 +388,15 @@ public int hashCode() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -400,12 +405,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndEvent} instance. No arguments are required. - */ - public static BckndEvent create() { - return new BckndEvent(); - } - + /** Create a new {@link BckndEvent} instance. No arguments are required. */ + public static BckndEvent create() { + return new BckndEvent(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java index 526be51b..29069308 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndExecutableResourceQuotaResponseQuota; -import com.sap.ai.sdk.core.client.model.BckndExecutableResourceQuotaResponseUsage; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndExecutableResourceQuotaResponse - */ +/** BckndExecutableResourceQuotaResponse */ // CHECKSTYLE:OFF -public class BckndExecutableResourceQuotaResponse +public class BckndExecutableResourceQuotaResponse // CHECKSTYLE:ON { @JsonProperty("usage") @@ -50,69 +35,81 @@ public class BckndExecutableResourceQuotaResponse @JsonProperty("quota") private BckndExecutableResourceQuotaResponseQuota quota; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndExecutableResourceQuotaResponse() { } - - /** - * Set the usage of this {@link BckndExecutableResourceQuotaResponse} instance and return the same instance. - * - * @param usage The usage of this {@link BckndExecutableResourceQuotaResponse} - * @return The same instance of this {@link BckndExecutableResourceQuotaResponse} class - */ - @Nonnull public BckndExecutableResourceQuotaResponse usage(@Nonnull final BckndExecutableResourceQuotaResponseUsage usage) { + + protected BckndExecutableResourceQuotaResponse() {} + + /** + * Set the usage of this {@link BckndExecutableResourceQuotaResponse} instance and return the same + * instance. + * + * @param usage The usage of this {@link BckndExecutableResourceQuotaResponse} + * @return The same instance of this {@link BckndExecutableResourceQuotaResponse} class + */ + @Nonnull + public BckndExecutableResourceQuotaResponse usage( + @Nonnull final BckndExecutableResourceQuotaResponseUsage usage) { this.usage = usage; return this; } - /** - * Get usage - * @return usage The usage of this {@link BckndExecutableResourceQuotaResponse} instance. - */ - @Nonnull public BckndExecutableResourceQuotaResponseUsage getUsage() { + /** + * Get usage + * + * @return usage The usage of this {@link BckndExecutableResourceQuotaResponse} instance. + */ + @Nonnull + public BckndExecutableResourceQuotaResponseUsage getUsage() { return usage; } /** * Set the usage of this {@link BckndExecutableResourceQuotaResponse} instance. * - * @param usage The usage of this {@link BckndExecutableResourceQuotaResponse} + * @param usage The usage of this {@link BckndExecutableResourceQuotaResponse} */ - public void setUsage( @Nonnull final BckndExecutableResourceQuotaResponseUsage usage) { + public void setUsage(@Nonnull final BckndExecutableResourceQuotaResponseUsage usage) { this.usage = usage; } - /** - * Set the quota of this {@link BckndExecutableResourceQuotaResponse} instance and return the same instance. - * - * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} - * @return The same instance of this {@link BckndExecutableResourceQuotaResponse} class - */ - @Nonnull public BckndExecutableResourceQuotaResponse quota(@Nonnull final BckndExecutableResourceQuotaResponseQuota quota) { + /** + * Set the quota of this {@link BckndExecutableResourceQuotaResponse} instance and return the same + * instance. + * + * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} + * @return The same instance of this {@link BckndExecutableResourceQuotaResponse} class + */ + @Nonnull + public BckndExecutableResourceQuotaResponse quota( + @Nonnull final BckndExecutableResourceQuotaResponseQuota quota) { this.quota = quota; return this; } - /** - * Get quota - * @return quota The quota of this {@link BckndExecutableResourceQuotaResponse} instance. - */ - @Nonnull public BckndExecutableResourceQuotaResponseQuota getQuota() { + /** + * Get quota + * + * @return quota The quota of this {@link BckndExecutableResourceQuotaResponse} instance. + */ + @Nonnull + public BckndExecutableResourceQuotaResponseQuota getQuota() { return quota; } /** * Set the quota of this {@link BckndExecutableResourceQuotaResponse} instance. * - * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} + * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} */ - public void setQuota( @Nonnull final BckndExecutableResourceQuotaResponseQuota quota) { + public void setQuota(@Nonnull final BckndExecutableResourceQuotaResponseQuota quota) { this.quota = quota; } /** - * Get the names of the unrecognizable properties of the {@link BckndExecutableResourceQuotaResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndExecutableResourceQuotaResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -122,32 +119,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndExecutableResourceQuotaResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndExecutableResourceQuotaResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndExecutableResourceQuotaResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndExecutableResourceQuotaResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndExecutableResourceQuotaResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndExecutableResourceQuotaResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,10 +156,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndExecutableResourceQuotaResponse bckndExecutableResourceQuotaResponse = (BckndExecutableResourceQuotaResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndExecutableResourceQuotaResponse.cloudSdkCustomFields) && - Objects.equals(this.usage, bckndExecutableResourceQuotaResponse.usage) && - Objects.equals(this.quota, bckndExecutableResourceQuotaResponse.quota); + final BckndExecutableResourceQuotaResponse bckndExecutableResourceQuotaResponse = + (BckndExecutableResourceQuotaResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndExecutableResourceQuotaResponse.cloudSdkCustomFields) + && Objects.equals(this.usage, bckndExecutableResourceQuotaResponse.usage) + && Objects.equals(this.quota, bckndExecutableResourceQuotaResponse.quota); } @Override @@ -168,19 +170,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndExecutableResourceQuotaResponse {\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); sb.append(" quota: ").append(toIndentedString(quota)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -189,24 +193,23 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndExecutableResourceQuotaResponse} instance with all required arguments. - */ - public static Builder create() { - return (quota) -> new BckndExecutableResourceQuotaResponse().quota(quota); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the quota of this {@link BckndExecutableResourceQuotaResponse} instance. - * - * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} - * @return The BckndExecutableResourceQuotaResponse instance. - */ - BckndExecutableResourceQuotaResponse quota( @Nonnull final BckndExecutableResourceQuotaResponseQuota quota); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndExecutableResourceQuotaResponse} instance with all required arguments. + */ + public static Builder create() { + return (quota) -> new BckndExecutableResourceQuotaResponse().quota(quota); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the quota of this {@link BckndExecutableResourceQuotaResponse} instance. + * + * @param quota The quota of this {@link BckndExecutableResourceQuotaResponse} + * @return The BckndExecutableResourceQuotaResponse instance. + */ + BckndExecutableResourceQuotaResponse quota( + @Nonnull final BckndExecutableResourceQuotaResponseQuota quota); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java index e24a935f..d9aa4485 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseQuota.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndExecutableResourceQuotaResponseQuota - */ +/** BckndExecutableResourceQuotaResponseQuota */ // CHECKSTYLE:OFF -public class BckndExecutableResourceQuotaResponseQuota +public class BckndExecutableResourceQuotaResponseQuota // CHECKSTYLE:ON { @JsonProperty("servingTemplateMaxCount") @@ -48,69 +35,89 @@ public class BckndExecutableResourceQuotaResponseQuota @JsonProperty("workflowTemplateMaxCount") private Integer workflowTemplateMaxCount; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndExecutableResourceQuotaResponseQuota() { } - - /** - * Set the servingTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance and return the same instance. - * - * @param servingTemplateMaxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return The same instance of this {@link BckndExecutableResourceQuotaResponseQuota} class - */ - @Nonnull public BckndExecutableResourceQuotaResponseQuota servingTemplateMaxCount(@Nonnull final Integer servingTemplateMaxCount) { + + protected BckndExecutableResourceQuotaResponseQuota() {} + + /** + * Set the servingTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} + * instance and return the same instance. + * + * @param servingTemplateMaxCount The value can be 0(disabled) or a positive integer defining the + * maximum allowed number + * @return The same instance of this {@link BckndExecutableResourceQuotaResponseQuota} class + */ + @Nonnull + public BckndExecutableResourceQuotaResponseQuota servingTemplateMaxCount( + @Nonnull final Integer servingTemplateMaxCount) { this.servingTemplateMaxCount = servingTemplateMaxCount; return this; } - /** - * The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return servingTemplateMaxCount The servingTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance. - */ - @Nonnull public Integer getServingTemplateMaxCount() { + /** + * The value can be 0(disabled) or a positive integer defining the maximum allowed number + * + * @return servingTemplateMaxCount The servingTemplateMaxCount of this {@link + * BckndExecutableResourceQuotaResponseQuota} instance. + */ + @Nonnull + public Integer getServingTemplateMaxCount() { return servingTemplateMaxCount; } /** - * Set the servingTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance. + * Set the servingTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} + * instance. * - * @param servingTemplateMaxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number + * @param servingTemplateMaxCount The value can be 0(disabled) or a positive integer defining the + * maximum allowed number */ - public void setServingTemplateMaxCount( @Nonnull final Integer servingTemplateMaxCount) { + public void setServingTemplateMaxCount(@Nonnull final Integer servingTemplateMaxCount) { this.servingTemplateMaxCount = servingTemplateMaxCount; } - /** - * Set the workflowTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance and return the same instance. - * - * @param workflowTemplateMaxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return The same instance of this {@link BckndExecutableResourceQuotaResponseQuota} class - */ - @Nonnull public BckndExecutableResourceQuotaResponseQuota workflowTemplateMaxCount(@Nonnull final Integer workflowTemplateMaxCount) { + /** + * Set the workflowTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} + * instance and return the same instance. + * + * @param workflowTemplateMaxCount The value can be 0(disabled) or a positive integer defining the + * maximum allowed number + * @return The same instance of this {@link BckndExecutableResourceQuotaResponseQuota} class + */ + @Nonnull + public BckndExecutableResourceQuotaResponseQuota workflowTemplateMaxCount( + @Nonnull final Integer workflowTemplateMaxCount) { this.workflowTemplateMaxCount = workflowTemplateMaxCount; return this; } - /** - * The value can be 0(disabled) or a positive integer defining the maximum allowed number - * @return workflowTemplateMaxCount The workflowTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance. - */ - @Nonnull public Integer getWorkflowTemplateMaxCount() { + /** + * The value can be 0(disabled) or a positive integer defining the maximum allowed number + * + * @return workflowTemplateMaxCount The workflowTemplateMaxCount of this {@link + * BckndExecutableResourceQuotaResponseQuota} instance. + */ + @Nonnull + public Integer getWorkflowTemplateMaxCount() { return workflowTemplateMaxCount; } /** - * Set the workflowTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} instance. + * Set the workflowTemplateMaxCount of this {@link BckndExecutableResourceQuotaResponseQuota} + * instance. * - * @param workflowTemplateMaxCount The value can be 0(disabled) or a positive integer defining the maximum allowed number + * @param workflowTemplateMaxCount The value can be 0(disabled) or a positive integer defining the + * maximum allowed number */ - public void setWorkflowTemplateMaxCount( @Nonnull final Integer workflowTemplateMaxCount) { + public void setWorkflowTemplateMaxCount(@Nonnull final Integer workflowTemplateMaxCount) { this.workflowTemplateMaxCount = workflowTemplateMaxCount; } /** - * Get the names of the unrecognizable properties of the {@link BckndExecutableResourceQuotaResponseQuota}. + * Get the names of the unrecognizable properties of the {@link + * BckndExecutableResourceQuotaResponseQuota}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +127,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndExecutableResourceQuotaResponseQuota} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndExecutableResourceQuotaResponseQuota} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndExecutableResourceQuotaResponseQuota has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndExecutableResourceQuotaResponseQuota has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndExecutableResourceQuotaResponseQuota} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndExecutableResourceQuotaResponseQuota} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +164,17 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndExecutableResourceQuotaResponseQuota bckndExecutableResourceQuotaResponseQuota = (BckndExecutableResourceQuotaResponseQuota) o; - return Objects.equals(this.cloudSdkCustomFields, bckndExecutableResourceQuotaResponseQuota.cloudSdkCustomFields) && - Objects.equals(this.servingTemplateMaxCount, bckndExecutableResourceQuotaResponseQuota.servingTemplateMaxCount) && - Objects.equals(this.workflowTemplateMaxCount, bckndExecutableResourceQuotaResponseQuota.workflowTemplateMaxCount); + final BckndExecutableResourceQuotaResponseQuota bckndExecutableResourceQuotaResponseQuota = + (BckndExecutableResourceQuotaResponseQuota) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndExecutableResourceQuotaResponseQuota.cloudSdkCustomFields) + && Objects.equals( + this.servingTemplateMaxCount, + bckndExecutableResourceQuotaResponseQuota.servingTemplateMaxCount) + && Objects.equals( + this.workflowTemplateMaxCount, + bckndExecutableResourceQuotaResponseQuota.workflowTemplateMaxCount); } @Override @@ -166,19 +183,25 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndExecutableResourceQuotaResponseQuota {\n"); - sb.append(" servingTemplateMaxCount: ").append(toIndentedString(servingTemplateMaxCount)).append("\n"); - sb.append(" workflowTemplateMaxCount: ").append(toIndentedString(workflowTemplateMaxCount)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" servingTemplateMaxCount: ") + .append(toIndentedString(servingTemplateMaxCount)) + .append("\n"); + sb.append(" workflowTemplateMaxCount: ") + .append(toIndentedString(workflowTemplateMaxCount)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +210,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndExecutableResourceQuotaResponseQuota} instance. No arguments are required. - */ - public static BckndExecutableResourceQuotaResponseQuota create() { - return new BckndExecutableResourceQuotaResponseQuota(); - } - + /** + * Create a new {@link BckndExecutableResourceQuotaResponseQuota} instance. No arguments are + * required. + */ + public static BckndExecutableResourceQuotaResponseQuota create() { + return new BckndExecutableResourceQuotaResponseQuota(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java index 67fbbba8..91695594 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExecutableResourceQuotaResponseUsage.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndExecutableResourceQuotaResponseUsage - */ +/** BckndExecutableResourceQuotaResponseUsage */ // CHECKSTYLE:OFF -public class BckndExecutableResourceQuotaResponseUsage +public class BckndExecutableResourceQuotaResponseUsage // CHECKSTYLE:ON { @JsonProperty("servingTemplateCount") @@ -48,69 +35,89 @@ public class BckndExecutableResourceQuotaResponseUsage @JsonProperty("workflowTemplateCount") private Integer workflowTemplateCount; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndExecutableResourceQuotaResponseUsage() { } - - /** - * Set the servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance and return the same instance. - * - * @param servingTemplateCount The servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} - * @return The same instance of this {@link BckndExecutableResourceQuotaResponseUsage} class - */ - @Nonnull public BckndExecutableResourceQuotaResponseUsage servingTemplateCount(@Nonnull final Integer servingTemplateCount) { + + protected BckndExecutableResourceQuotaResponseUsage() {} + + /** + * Set the servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance + * and return the same instance. + * + * @param servingTemplateCount The servingTemplateCount of this {@link + * BckndExecutableResourceQuotaResponseUsage} + * @return The same instance of this {@link BckndExecutableResourceQuotaResponseUsage} class + */ + @Nonnull + public BckndExecutableResourceQuotaResponseUsage servingTemplateCount( + @Nonnull final Integer servingTemplateCount) { this.servingTemplateCount = servingTemplateCount; return this; } - /** - * Get servingTemplateCount - * @return servingTemplateCount The servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance. - */ - @Nonnull public Integer getServingTemplateCount() { + /** + * Get servingTemplateCount + * + * @return servingTemplateCount The servingTemplateCount of this {@link + * BckndExecutableResourceQuotaResponseUsage} instance. + */ + @Nonnull + public Integer getServingTemplateCount() { return servingTemplateCount; } /** - * Set the servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance. + * Set the servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} + * instance. * - * @param servingTemplateCount The servingTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} + * @param servingTemplateCount The servingTemplateCount of this {@link + * BckndExecutableResourceQuotaResponseUsage} */ - public void setServingTemplateCount( @Nonnull final Integer servingTemplateCount) { + public void setServingTemplateCount(@Nonnull final Integer servingTemplateCount) { this.servingTemplateCount = servingTemplateCount; } - /** - * Set the workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance and return the same instance. - * - * @param workflowTemplateCount The workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} - * @return The same instance of this {@link BckndExecutableResourceQuotaResponseUsage} class - */ - @Nonnull public BckndExecutableResourceQuotaResponseUsage workflowTemplateCount(@Nonnull final Integer workflowTemplateCount) { + /** + * Set the workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} + * instance and return the same instance. + * + * @param workflowTemplateCount The workflowTemplateCount of this {@link + * BckndExecutableResourceQuotaResponseUsage} + * @return The same instance of this {@link BckndExecutableResourceQuotaResponseUsage} class + */ + @Nonnull + public BckndExecutableResourceQuotaResponseUsage workflowTemplateCount( + @Nonnull final Integer workflowTemplateCount) { this.workflowTemplateCount = workflowTemplateCount; return this; } - /** - * Get workflowTemplateCount - * @return workflowTemplateCount The workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance. - */ - @Nonnull public Integer getWorkflowTemplateCount() { + /** + * Get workflowTemplateCount + * + * @return workflowTemplateCount The workflowTemplateCount of this {@link + * BckndExecutableResourceQuotaResponseUsage} instance. + */ + @Nonnull + public Integer getWorkflowTemplateCount() { return workflowTemplateCount; } /** - * Set the workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} instance. + * Set the workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} + * instance. * - * @param workflowTemplateCount The workflowTemplateCount of this {@link BckndExecutableResourceQuotaResponseUsage} + * @param workflowTemplateCount The workflowTemplateCount of this {@link + * BckndExecutableResourceQuotaResponseUsage} */ - public void setWorkflowTemplateCount( @Nonnull final Integer workflowTemplateCount) { + public void setWorkflowTemplateCount(@Nonnull final Integer workflowTemplateCount) { this.workflowTemplateCount = workflowTemplateCount; } /** - * Get the names of the unrecognizable properties of the {@link BckndExecutableResourceQuotaResponseUsage}. + * Get the names of the unrecognizable properties of the {@link + * BckndExecutableResourceQuotaResponseUsage}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +127,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndExecutableResourceQuotaResponseUsage} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndExecutableResourceQuotaResponseUsage} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndExecutableResourceQuotaResponseUsage has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndExecutableResourceQuotaResponseUsage has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndExecutableResourceQuotaResponseUsage} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndExecutableResourceQuotaResponseUsage} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +164,17 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndExecutableResourceQuotaResponseUsage bckndExecutableResourceQuotaResponseUsage = (BckndExecutableResourceQuotaResponseUsage) o; - return Objects.equals(this.cloudSdkCustomFields, bckndExecutableResourceQuotaResponseUsage.cloudSdkCustomFields) && - Objects.equals(this.servingTemplateCount, bckndExecutableResourceQuotaResponseUsage.servingTemplateCount) && - Objects.equals(this.workflowTemplateCount, bckndExecutableResourceQuotaResponseUsage.workflowTemplateCount); + final BckndExecutableResourceQuotaResponseUsage bckndExecutableResourceQuotaResponseUsage = + (BckndExecutableResourceQuotaResponseUsage) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndExecutableResourceQuotaResponseUsage.cloudSdkCustomFields) + && Objects.equals( + this.servingTemplateCount, + bckndExecutableResourceQuotaResponseUsage.servingTemplateCount) + && Objects.equals( + this.workflowTemplateCount, + bckndExecutableResourceQuotaResponseUsage.workflowTemplateCount); } @Override @@ -166,19 +183,25 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndExecutableResourceQuotaResponseUsage {\n"); - sb.append(" servingTemplateCount: ").append(toIndentedString(servingTemplateCount)).append("\n"); - sb.append(" workflowTemplateCount: ").append(toIndentedString(workflowTemplateCount)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" servingTemplateCount: ") + .append(toIndentedString(servingTemplateCount)) + .append("\n"); + sb.append(" workflowTemplateCount: ") + .append(toIndentedString(workflowTemplateCount)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +210,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndExecutableResourceQuotaResponseUsage} instance. No arguments are required. - */ - public static BckndExecutableResourceQuotaResponseUsage create() { - return new BckndExecutableResourceQuotaResponseUsage(); - } - + /** + * Create a new {@link BckndExecutableResourceQuotaResponseUsage} instance. No arguments are + * required. + */ + public static BckndExecutableResourceQuotaResponseUsage create() { + return new BckndExecutableResourceQuotaResponseUsage(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java index e4b42952..94a94db9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndExtendedService.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,25 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceBrokerSecret; -import com.sap.ai.sdk.core.client.model.BckndServiceCapabilities; -import com.sap.ai.sdk.core.client.model.BckndServiceServiceCatalogItem; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndExtendedService - */ +/** BckndExtendedService */ // CHECKSTYLE:OFF -public class BckndExtendedService +public class BckndExtendedService // CHECKSTYLE:ON { @JsonProperty("name") @@ -66,28 +51,18 @@ public class BckndExtendedService @JsonProperty("serviceCatalog") private List serviceCatalog = new ArrayList<>(); - /** - * aggregated status of the service - */ + /** aggregated status of the service */ public enum StatusEnum { - /** - * The PROVISIONED option of this BckndExtendedService - */ + /** The PROVISIONED option of this BckndExtendedService */ PROVISIONED("PROVISIONED"), - - /** - * The ERROR option of this BckndExtendedService - */ + + /** The ERROR option of this BckndExtendedService */ ERROR("ERROR"), - - /** - * The PROVISIONING option of this BckndExtendedService - */ + + /** The PROVISIONING option of this BckndExtendedService */ PROVISIONING("PROVISIONING"), - - /** - * The DEPROVISIONING option of this BckndExtendedService - */ + + /** The DEPROVISIONING option of this BckndExtendedService */ DEPROVISIONING("DEPROVISIONING"); private String value; @@ -97,30 +72,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndExtendedService - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndExtendedService + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -136,167 +117,191 @@ public enum StatusEnum { @JsonProperty("statusMessage") private String statusMessage; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndExtendedService() { } - - /** - * Set the name of this {@link BckndExtendedService} instance and return the same instance. - * - * @param name service name - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService name(@Nonnull final String name) { + + protected BckndExtendedService() {} + + /** + * Set the name of this {@link BckndExtendedService} instance and return the same instance. + * + * @param name service name + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService name(@Nonnull final String name) { this.name = name; return this; } - /** - * service name - * @return name The name of this {@link BckndExtendedService} instance. - */ - @Nonnull public String getName() { + /** + * service name + * + * @return name The name of this {@link BckndExtendedService} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndExtendedService} instance. * - * @param name service name + * @param name service name */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link BckndExtendedService} instance and return the same instance. - * - * @param description service description - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService description(@Nonnull final String description) { + /** + * Set the description of this {@link BckndExtendedService} instance and return the same instance. + * + * @param description service description + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService description(@Nonnull final String description) { this.description = description; return this; } - /** - * service description - * @return description The description of this {@link BckndExtendedService} instance. - */ - @Nonnull public String getDescription() { + /** + * service description + * + * @return description The description of this {@link BckndExtendedService} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link BckndExtendedService} instance. * - * @param description service description + * @param description service description */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the url of this {@link BckndExtendedService} instance and return the same instance. - * - * @param url service broker url - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService url(@Nonnull final String url) { + /** + * Set the url of this {@link BckndExtendedService} instance and return the same instance. + * + * @param url service broker url + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService url(@Nonnull final String url) { this.url = url; return this; } - /** - * service broker url - * @return url The url of this {@link BckndExtendedService} instance. - */ - @Nonnull public String getUrl() { + /** + * service broker url + * + * @return url The url of this {@link BckndExtendedService} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link BckndExtendedService} instance. * - * @param url service broker url + * @param url service broker url */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the brokerSecret of this {@link BckndExtendedService} instance and return the same instance. - * - * @param brokerSecret The brokerSecret of this {@link BckndExtendedService} - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService brokerSecret(@Nonnull final BckndServiceBrokerSecret brokerSecret) { + /** + * Set the brokerSecret of this {@link BckndExtendedService} instance and return the same + * instance. + * + * @param brokerSecret The brokerSecret of this {@link BckndExtendedService} + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService brokerSecret(@Nonnull final BckndServiceBrokerSecret brokerSecret) { this.brokerSecret = brokerSecret; return this; } - /** - * Get brokerSecret - * @return brokerSecret The brokerSecret of this {@link BckndExtendedService} instance. - */ - @Nonnull public BckndServiceBrokerSecret getBrokerSecret() { + /** + * Get brokerSecret + * + * @return brokerSecret The brokerSecret of this {@link BckndExtendedService} instance. + */ + @Nonnull + public BckndServiceBrokerSecret getBrokerSecret() { return brokerSecret; } /** * Set the brokerSecret of this {@link BckndExtendedService} instance. * - * @param brokerSecret The brokerSecret of this {@link BckndExtendedService} + * @param brokerSecret The brokerSecret of this {@link BckndExtendedService} */ - public void setBrokerSecret( @Nonnull final BckndServiceBrokerSecret brokerSecret) { + public void setBrokerSecret(@Nonnull final BckndServiceBrokerSecret brokerSecret) { this.brokerSecret = brokerSecret; } - /** - * Set the capabilities of this {@link BckndExtendedService} instance and return the same instance. - * - * @param capabilities The capabilities of this {@link BckndExtendedService} - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService capabilities(@Nonnull final BckndServiceCapabilities capabilities) { + /** + * Set the capabilities of this {@link BckndExtendedService} instance and return the same + * instance. + * + * @param capabilities The capabilities of this {@link BckndExtendedService} + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService capabilities(@Nonnull final BckndServiceCapabilities capabilities) { this.capabilities = capabilities; return this; } - /** - * Get capabilities - * @return capabilities The capabilities of this {@link BckndExtendedService} instance. - */ - @Nonnull public BckndServiceCapabilities getCapabilities() { + /** + * Get capabilities + * + * @return capabilities The capabilities of this {@link BckndExtendedService} instance. + */ + @Nonnull + public BckndServiceCapabilities getCapabilities() { return capabilities; } /** * Set the capabilities of this {@link BckndExtendedService} instance. * - * @param capabilities The capabilities of this {@link BckndExtendedService} + * @param capabilities The capabilities of this {@link BckndExtendedService} */ - public void setCapabilities( @Nonnull final BckndServiceCapabilities capabilities) { + public void setCapabilities(@Nonnull final BckndServiceCapabilities capabilities) { this.capabilities = capabilities; } - /** - * Set the serviceCatalog of this {@link BckndExtendedService} instance and return the same instance. - * - * @param serviceCatalog The serviceCatalog of this {@link BckndExtendedService} - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService serviceCatalog(@Nonnull final List serviceCatalog) { + /** + * Set the serviceCatalog of this {@link BckndExtendedService} instance and return the same + * instance. + * + * @param serviceCatalog The serviceCatalog of this {@link BckndExtendedService} + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService serviceCatalog( + @Nonnull final List serviceCatalog) { this.serviceCatalog = serviceCatalog; return this; } + /** * Add one serviceCatalog instance to this {@link BckndExtendedService}. + * * @param serviceCatalogItem The serviceCatalog that should be added * @return The same instance of type {@link BckndExtendedService} */ - @Nonnull public BckndExtendedService addServiceCatalogItem( @Nonnull final BckndServiceServiceCatalogItem serviceCatalogItem) { + @Nonnull + public BckndExtendedService addServiceCatalogItem( + @Nonnull final BckndServiceServiceCatalogItem serviceCatalogItem) { if (this.serviceCatalog == null) { this.serviceCatalog = new ArrayList<>(); } @@ -304,81 +309,92 @@ public void setCapabilities( @Nonnull final BckndServiceCapabilities capabilitie return this; } - /** - * Get serviceCatalog - * @return serviceCatalog The serviceCatalog of this {@link BckndExtendedService} instance. - */ - @Nonnull public List getServiceCatalog() { + /** + * Get serviceCatalog + * + * @return serviceCatalog The serviceCatalog of this {@link BckndExtendedService} instance. + */ + @Nonnull + public List getServiceCatalog() { return serviceCatalog; } /** * Set the serviceCatalog of this {@link BckndExtendedService} instance. * - * @param serviceCatalog The serviceCatalog of this {@link BckndExtendedService} + * @param serviceCatalog The serviceCatalog of this {@link BckndExtendedService} */ - public void setServiceCatalog( @Nonnull final List serviceCatalog) { + public void setServiceCatalog( + @Nonnull final List serviceCatalog) { this.serviceCatalog = serviceCatalog; } - /** - * Set the status of this {@link BckndExtendedService} instance and return the same instance. - * - * @param status aggregated status of the service - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link BckndExtendedService} instance and return the same instance. + * + * @param status aggregated status of the service + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * aggregated status of the service - * @return status The status of this {@link BckndExtendedService} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * aggregated status of the service + * + * @return status The status of this {@link BckndExtendedService} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link BckndExtendedService} instance. * - * @param status aggregated status of the service + * @param status aggregated status of the service */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } - /** - * Set the statusMessage of this {@link BckndExtendedService} instance and return the same instance. - * - * @param statusMessage status message - * @return The same instance of this {@link BckndExtendedService} class - */ - @Nonnull public BckndExtendedService statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link BckndExtendedService} instance and return the same + * instance. + * + * @param statusMessage status message + * @return The same instance of this {@link BckndExtendedService} class + */ + @Nonnull + public BckndExtendedService statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * status message - * @return statusMessage The statusMessage of this {@link BckndExtendedService} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * status message + * + * @return statusMessage The statusMessage of this {@link BckndExtendedService} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link BckndExtendedService} instance. * - * @param statusMessage status message + * @param statusMessage status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } /** * Get the names of the unrecognizable properties of the {@link BckndExtendedService}. + * * @return The set of properties names */ @JsonIgnore @@ -389,31 +405,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndExtendedService} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndExtendedService has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndExtendedService has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndExtendedService} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndExtendedService} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -423,24 +440,34 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndExtendedService bckndExtendedService = (BckndExtendedService) o; - return Objects.equals(this.cloudSdkCustomFields, bckndExtendedService.cloudSdkCustomFields) && - Objects.equals(this.name, bckndExtendedService.name) && - Objects.equals(this.description, bckndExtendedService.description) && - Objects.equals(this.url, bckndExtendedService.url) && - Objects.equals(this.brokerSecret, bckndExtendedService.brokerSecret) && - Objects.equals(this.capabilities, bckndExtendedService.capabilities) && - Objects.equals(this.serviceCatalog, bckndExtendedService.serviceCatalog) && - Objects.equals(this.status, bckndExtendedService.status) && - Objects.equals(this.statusMessage, bckndExtendedService.statusMessage); + return Objects.equals(this.cloudSdkCustomFields, bckndExtendedService.cloudSdkCustomFields) + && Objects.equals(this.name, bckndExtendedService.name) + && Objects.equals(this.description, bckndExtendedService.description) + && Objects.equals(this.url, bckndExtendedService.url) + && Objects.equals(this.brokerSecret, bckndExtendedService.brokerSecret) + && Objects.equals(this.capabilities, bckndExtendedService.capabilities) + && Objects.equals(this.serviceCatalog, bckndExtendedService.serviceCatalog) + && Objects.equals(this.status, bckndExtendedService.status) + && Objects.equals(this.statusMessage, bckndExtendedService.statusMessage); } @Override public int hashCode() { - return Objects.hash(name, description, url, brokerSecret, capabilities, serviceCatalog, status, statusMessage, cloudSdkCustomFields); + return Objects.hash( + name, + description, + url, + brokerSecret, + capabilities, + serviceCatalog, + status, + statusMessage, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndExtendedService {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -451,14 +478,15 @@ public int hashCode() { sb.append(" serviceCatalog: ").append(toIndentedString(serviceCatalog)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -467,12 +495,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndExtendedService} instance. No arguments are required. - */ - public static BckndExtendedService create() { - return new BckndExtendedService(); - } - + /** Create a new {@link BckndExtendedService} instance. No arguments are required. */ + public static BckndExtendedService create() { + return new BckndExtendedService(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java index 2307c961..4aa4f03d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDataResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndGenericSecretDataResponse - */ +/** BckndGenericSecretDataResponse */ // CHECKSTYLE:OFF -public class BckndGenericSecretDataResponse +public class BckndGenericSecretDataResponse // CHECKSTYLE:ON { @JsonProperty("message") @@ -48,69 +35,78 @@ public class BckndGenericSecretDataResponse @JsonProperty("name") private String name; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndGenericSecretDataResponse() { } - - /** - * Set the message of this {@link BckndGenericSecretDataResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndGenericSecretDataResponse} class - */ - @Nonnull public BckndGenericSecretDataResponse message(@Nonnull final String message) { + + protected BckndGenericSecretDataResponse() {} + + /** + * Set the message of this {@link BckndGenericSecretDataResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link BckndGenericSecretDataResponse} class + */ + @Nonnull + public BckndGenericSecretDataResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndGenericSecretDataResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndGenericSecretDataResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndGenericSecretDataResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the name of this {@link BckndGenericSecretDataResponse} instance and return the same instance. - * - * @param name Name - * @return The same instance of this {@link BckndGenericSecretDataResponse} class - */ - @Nonnull public BckndGenericSecretDataResponse name(@Nonnull final String name) { + /** + * Set the name of this {@link BckndGenericSecretDataResponse} instance and return the same + * instance. + * + * @param name Name + * @return The same instance of this {@link BckndGenericSecretDataResponse} class + */ + @Nonnull + public BckndGenericSecretDataResponse name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name - * @return name The name of this {@link BckndGenericSecretDataResponse} instance. - */ - @Nonnull public String getName() { + /** + * Name + * + * @return name The name of this {@link BckndGenericSecretDataResponse} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndGenericSecretDataResponse} instance. * - * @param name Name + * @param name Name */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } /** * Get the names of the unrecognizable properties of the {@link BckndGenericSecretDataResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndGenericSecretDataResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndGenericSecretDataResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndGenericSecretDataResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndGenericSecretDataResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndGenericSecretDataResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndGenericSecretDataResponse} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndGenericSecretDataResponse bckndGenericSecretDataResponse = (BckndGenericSecretDataResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndGenericSecretDataResponse.cloudSdkCustomFields) && - Objects.equals(this.message, bckndGenericSecretDataResponse.message) && - Objects.equals(this.name, bckndGenericSecretDataResponse.name); + final BckndGenericSecretDataResponse bckndGenericSecretDataResponse = + (BckndGenericSecretDataResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndGenericSecretDataResponse.cloudSdkCustomFields) + && Objects.equals(this.message, bckndGenericSecretDataResponse.message) + && Objects.equals(this.name, bckndGenericSecretDataResponse.name); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndGenericSecretDataResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +190,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndGenericSecretDataResponse} instance. No arguments are required. - */ - public static BckndGenericSecretDataResponse create() { - return new BckndGenericSecretDataResponse(); - } - + /** Create a new {@link BckndGenericSecretDataResponse} instance. No arguments are required. */ + public static BckndGenericSecretDataResponse create() { + return new BckndGenericSecretDataResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java index 70d20d04..1abfaa3f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndGenericSecretDetails - */ +/** BckndGenericSecretDetails */ // CHECKSTYLE:OFF -public class BckndGenericSecretDetails +public class BckndGenericSecretDetails // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,69 +35,77 @@ public class BckndGenericSecretDetails @JsonProperty("createdAt") private String createdAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndGenericSecretDetails() { } - - /** - * Set the name of this {@link BckndGenericSecretDetails} instance and return the same instance. - * - * @param name Name of the secret - * @return The same instance of this {@link BckndGenericSecretDetails} class - */ - @Nonnull public BckndGenericSecretDetails name(@Nonnull final String name) { + + protected BckndGenericSecretDetails() {} + + /** + * Set the name of this {@link BckndGenericSecretDetails} instance and return the same instance. + * + * @param name Name of the secret + * @return The same instance of this {@link BckndGenericSecretDetails} class + */ + @Nonnull + public BckndGenericSecretDetails name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the secret - * @return name The name of this {@link BckndGenericSecretDetails} instance. - */ - @Nonnull public String getName() { + /** + * Name of the secret + * + * @return name The name of this {@link BckndGenericSecretDetails} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndGenericSecretDetails} instance. * - * @param name Name of the secret + * @param name Name of the secret */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the createdAt of this {@link BckndGenericSecretDetails} instance and return the same instance. - * - * @param createdAt Timestamp at which secret was created - * @return The same instance of this {@link BckndGenericSecretDetails} class - */ - @Nonnull public BckndGenericSecretDetails createdAt(@Nonnull final String createdAt) { + /** + * Set the createdAt of this {@link BckndGenericSecretDetails} instance and return the same + * instance. + * + * @param createdAt Timestamp at which secret was created + * @return The same instance of this {@link BckndGenericSecretDetails} class + */ + @Nonnull + public BckndGenericSecretDetails createdAt(@Nonnull final String createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp at which secret was created - * @return createdAt The createdAt of this {@link BckndGenericSecretDetails} instance. - */ - @Nonnull public String getCreatedAt() { + /** + * Timestamp at which secret was created + * + * @return createdAt The createdAt of this {@link BckndGenericSecretDetails} instance. + */ + @Nonnull + public String getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link BckndGenericSecretDetails} instance. * - * @param createdAt Timestamp at which secret was created + * @param createdAt Timestamp at which secret was created */ - public void setCreatedAt( @Nonnull final String createdAt) { + public void setCreatedAt(@Nonnull final String createdAt) { this.createdAt = createdAt; } /** * Get the names of the unrecognizable properties of the {@link BckndGenericSecretDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +116,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndGenericSecretDetails} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndGenericSecretDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndGenericSecretDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndGenericSecretDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndGenericSecretDetails} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +151,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndGenericSecretDetails bckndGenericSecretDetails = (BckndGenericSecretDetails) o; - return Objects.equals(this.cloudSdkCustomFields, bckndGenericSecretDetails.cloudSdkCustomFields) && - Objects.equals(this.name, bckndGenericSecretDetails.name) && - Objects.equals(this.createdAt, bckndGenericSecretDetails.createdAt); + return Objects.equals(this.cloudSdkCustomFields, bckndGenericSecretDetails.cloudSdkCustomFields) + && Objects.equals(this.name, bckndGenericSecretDetails.name) + && Objects.equals(this.createdAt, bckndGenericSecretDetails.createdAt); } @Override @@ -166,19 +162,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndGenericSecretDetails {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +185,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndGenericSecretDetails} instance. No arguments are required. - */ - public static BckndGenericSecretDetails create() { - return new BckndGenericSecretDetails(); - } - + /** Create a new {@link BckndGenericSecretDetails} instance. No arguments are required. */ + public static BckndGenericSecretDetails create() { + return new BckndGenericSecretDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java index d2d412a2..2ffa540c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPatchBody.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,86 +12,81 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndGenericSecretPatchBody - */ +/** BckndGenericSecretPatchBody */ // CHECKSTYLE:OFF -public class BckndGenericSecretPatchBody +public class BckndGenericSecretPatchBody // CHECKSTYLE:ON { @JsonProperty("data") private Map data = new HashMap<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndGenericSecretPatchBody() { } - - /** - * Set the data of this {@link BckndGenericSecretPatchBody} instance and return the same instance. - * - * @param data Base64 encoded secret data - * @return The same instance of this {@link BckndGenericSecretPatchBody} class - */ - @Nonnull public BckndGenericSecretPatchBody data(@Nonnull final Map data) { + + protected BckndGenericSecretPatchBody() {} + + /** + * Set the data of this {@link BckndGenericSecretPatchBody} instance and return the same instance. + * + * @param data Base64 encoded secret data + * @return The same instance of this {@link BckndGenericSecretPatchBody} class + */ + @Nonnull + public BckndGenericSecretPatchBody data(@Nonnull final Map data) { this.data = data; return this; } - /** - * Put one data instance to this {@link BckndGenericSecretPatchBody} instance. - * @param key The String key of this data instance - * @param dataItem The data that should be added under the given key - * @return The same instance of type {@link BckndGenericSecretPatchBody} - */ - @Nonnull public BckndGenericSecretPatchBody putdataItem(@Nonnull final String key, @Nonnull final String dataItem) { - this.data = new HashMap<>(); + /** + * Put one data instance to this {@link BckndGenericSecretPatchBody} instance. + * + * @param key The String key of this data instance + * @param dataItem The data that should be added under the given key + * @return The same instance of type {@link BckndGenericSecretPatchBody} + */ + @Nonnull + public BckndGenericSecretPatchBody putdataItem( + @Nonnull final String key, @Nonnull final String dataItem) { + this.data = new HashMap<>(); this.data.put(key, dataItem); return this; } - /** - * Base64 encoded secret data - * @return data The data of this {@link BckndGenericSecretPatchBody} instance. - */ - @Nonnull public Map getData() { + /** + * Base64 encoded secret data + * + * @return data The data of this {@link BckndGenericSecretPatchBody} instance. + */ + @Nonnull + public Map getData() { return data; } /** * Set the data of this {@link BckndGenericSecretPatchBody} instance. * - * @param data Base64 encoded secret data + * @param data Base64 encoded secret data */ - public void setData( @Nonnull final Map data) { + public void setData(@Nonnull final Map data) { this.data = data; } /** * Get the names of the unrecognizable properties of the {@link BckndGenericSecretPatchBody}. + * * @return The set of properties names */ @JsonIgnore @@ -103,32 +96,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndGenericSecretPatchBody} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndGenericSecretPatchBody} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndGenericSecretPatchBody has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndGenericSecretPatchBody has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndGenericSecretPatchBody} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndGenericSecretPatchBody} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -138,8 +133,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndGenericSecretPatchBody bckndGenericSecretPatchBody = (BckndGenericSecretPatchBody) o; - return Objects.equals(this.cloudSdkCustomFields, bckndGenericSecretPatchBody.cloudSdkCustomFields) && - Objects.equals(this.data, bckndGenericSecretPatchBody.data); + return Objects.equals( + this.cloudSdkCustomFields, bckndGenericSecretPatchBody.cloudSdkCustomFields) + && Objects.equals(this.data, bckndGenericSecretPatchBody.data); } @Override @@ -148,18 +144,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndGenericSecretPatchBody {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -168,24 +166,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndGenericSecretPatchBody} instance with all required arguments. - */ - public static Builder create() { - return (data) -> new BckndGenericSecretPatchBody().data(data); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the data of this {@link BckndGenericSecretPatchBody} instance. - * - * @param data Base64 encoded secret data - * @return The BckndGenericSecretPatchBody instance. - */ - BckndGenericSecretPatchBody data( @Nonnull final Map data); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndGenericSecretPatchBody} instance with all required arguments. + */ + public static Builder create() { + return (data) -> new BckndGenericSecretPatchBody().data(data); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the data of this {@link BckndGenericSecretPatchBody} instance. + * + * @param data Base64 encoded secret data + * @return The BckndGenericSecretPatchBody instance. + */ + BckndGenericSecretPatchBody data(@Nonnull final Map data); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java index ba5cccdd..3c850012 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndGenericSecretPostBody.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.HashMap; -import java.util.Map; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndGenericSecretPostBody - */ +/** BckndGenericSecretPostBody */ // CHECKSTYLE:OFF -public class BckndGenericSecretPostBody +public class BckndGenericSecretPostBody // CHECKSTYLE:ON { @JsonProperty("name") @@ -50,81 +36,91 @@ public class BckndGenericSecretPostBody @JsonProperty("data") private Map data = new HashMap<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndGenericSecretPostBody() { } - - /** - * Set the name of this {@link BckndGenericSecretPostBody} instance and return the same instance. - * - * @param name The name of the secret - * @return The same instance of this {@link BckndGenericSecretPostBody} class - */ - @Nonnull public BckndGenericSecretPostBody name(@Nonnull final String name) { + + protected BckndGenericSecretPostBody() {} + + /** + * Set the name of this {@link BckndGenericSecretPostBody} instance and return the same instance. + * + * @param name The name of the secret + * @return The same instance of this {@link BckndGenericSecretPostBody} class + */ + @Nonnull + public BckndGenericSecretPostBody name(@Nonnull final String name) { this.name = name; return this; } - /** - * The name of the secret - * @return name The name of this {@link BckndGenericSecretPostBody} instance. - */ - @Nonnull public String getName() { + /** + * The name of the secret + * + * @return name The name of this {@link BckndGenericSecretPostBody} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndGenericSecretPostBody} instance. * - * @param name The name of the secret + * @param name The name of the secret */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the data of this {@link BckndGenericSecretPostBody} instance and return the same instance. - * - * @param data Base64 encoded secret data - * @return The same instance of this {@link BckndGenericSecretPostBody} class - */ - @Nonnull public BckndGenericSecretPostBody data(@Nonnull final Map data) { + /** + * Set the data of this {@link BckndGenericSecretPostBody} instance and return the same instance. + * + * @param data Base64 encoded secret data + * @return The same instance of this {@link BckndGenericSecretPostBody} class + */ + @Nonnull + public BckndGenericSecretPostBody data(@Nonnull final Map data) { this.data = data; return this; } - /** - * Put one data instance to this {@link BckndGenericSecretPostBody} instance. - * @param key The String key of this data instance - * @param dataItem The data that should be added under the given key - * @return The same instance of type {@link BckndGenericSecretPostBody} - */ - @Nonnull public BckndGenericSecretPostBody putdataItem(@Nonnull final String key, @Nonnull final String dataItem) { - this.data = new HashMap<>(); + /** + * Put one data instance to this {@link BckndGenericSecretPostBody} instance. + * + * @param key The String key of this data instance + * @param dataItem The data that should be added under the given key + * @return The same instance of type {@link BckndGenericSecretPostBody} + */ + @Nonnull + public BckndGenericSecretPostBody putdataItem( + @Nonnull final String key, @Nonnull final String dataItem) { + this.data = new HashMap<>(); this.data.put(key, dataItem); return this; } - /** - * Base64 encoded secret data - * @return data The data of this {@link BckndGenericSecretPostBody} instance. - */ - @Nonnull public Map getData() { + /** + * Base64 encoded secret data + * + * @return data The data of this {@link BckndGenericSecretPostBody} instance. + */ + @Nonnull + public Map getData() { return data; } /** * Set the data of this {@link BckndGenericSecretPostBody} instance. * - * @param data Base64 encoded secret data + * @param data Base64 encoded secret data */ - public void setData( @Nonnull final Map data) { + public void setData(@Nonnull final Map data) { this.data = data; } /** * Get the names of the unrecognizable properties of the {@link BckndGenericSecretPostBody}. + * * @return The set of properties names */ @JsonIgnore @@ -134,32 +130,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndGenericSecretPostBody} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndGenericSecretPostBody} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndGenericSecretPostBody has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndGenericSecretPostBody has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndGenericSecretPostBody} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndGenericSecretPostBody} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -169,9 +167,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndGenericSecretPostBody bckndGenericSecretPostBody = (BckndGenericSecretPostBody) o; - return Objects.equals(this.cloudSdkCustomFields, bckndGenericSecretPostBody.cloudSdkCustomFields) && - Objects.equals(this.name, bckndGenericSecretPostBody.name) && - Objects.equals(this.data, bckndGenericSecretPostBody.data); + return Objects.equals( + this.cloudSdkCustomFields, bckndGenericSecretPostBody.cloudSdkCustomFields) + && Objects.equals(this.name, bckndGenericSecretPostBody.name) + && Objects.equals(this.data, bckndGenericSecretPostBody.data); } @Override @@ -180,19 +179,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndGenericSecretPostBody {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -201,36 +202,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndGenericSecretPostBody} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (data) -> new BckndGenericSecretPostBody().name(name).data(data); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndGenericSecretPostBody} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (data) -> new BckndGenericSecretPostBody().name(name).data(data); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link BckndGenericSecretPostBody} instance. - * - * @param name The name of the secret - * @return The BckndGenericSecretPostBody builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the data of this {@link BckndGenericSecretPostBody} instance. - * - * @param data Base64 encoded secret data - * @return The BckndGenericSecretPostBody instance. - */ - BckndGenericSecretPostBody data( @Nonnull final Map data); - } + * Set the name of this {@link BckndGenericSecretPostBody} instance. + * + * @param name The name of the secret + * @return The BckndGenericSecretPostBody builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the data of this {@link BckndGenericSecretPostBody} instance. + * + * @param data Base64 encoded secret data + * @return The BckndGenericSecretPostBody instance. + */ + BckndGenericSecretPostBody data(@Nonnull final Map data); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java index 9552803a..6d98550f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroup.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,26 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndInternalResourceGroupAnnotation; -import com.sap.ai.sdk.core.client.model.BckndInternalResourceGroupLabel; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndInternalResourceGroup - */ +/** BckndInternalResourceGroup */ // CHECKSTYLE:OFF -public class BckndInternalResourceGroup +public class BckndInternalResourceGroup // CHECKSTYLE:ON { @JsonProperty("resourceGroupId") @@ -63,23 +49,15 @@ public class BckndInternalResourceGroup @JsonProperty("labels") private List labels = new ArrayList<>(); - /** - * aggregated status of the onboarding process - */ + /** aggregated status of the onboarding process */ public enum StatusEnum { - /** - * The PROVISIONED option of this BckndInternalResourceGroup - */ + /** The PROVISIONED option of this BckndInternalResourceGroup */ PROVISIONED("PROVISIONED"), - - /** - * The ERROR option of this BckndInternalResourceGroup - */ + + /** The ERROR option of this BckndInternalResourceGroup */ ERROR("ERROR"), - - /** - * The PROVISIONING option of this BckndInternalResourceGroup - */ + + /** The PROVISIONING option of this BckndInternalResourceGroup */ PROVISIONING("PROVISIONING"); private String value; @@ -89,30 +67,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndInternalResourceGroup - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndInternalResourceGroup + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -131,139 +115,163 @@ public enum StatusEnum { @JsonProperty("annotations") private List annotations = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndInternalResourceGroup() { } - - /** - * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param resourceGroupId resource group id - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup resourceGroupId(@Nonnull final String resourceGroupId) { + + protected BckndInternalResourceGroup() {} + + /** + * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param resourceGroupId resource group id + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup resourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } - /** - * resource group id - * @return resourceGroupId The resourceGroupId of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public String getResourceGroupId() { + /** + * resource group id + * + * @return resourceGroupId The resourceGroupId of this {@link BckndInternalResourceGroup} + * instance. + */ + @Nonnull + public String getResourceGroupId() { return resourceGroupId; } /** * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance. * - * @param resourceGroupId resource group id + * @param resourceGroupId resource group id */ - public void setResourceGroupId( @Nonnull final String resourceGroupId) { + public void setResourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; } - /** - * Set the tenantId of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param tenantId tenant id - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup tenantId(@Nonnull final String tenantId) { + /** + * Set the tenantId of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param tenantId tenant id + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup tenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; return this; } - /** - * tenant id - * @return tenantId The tenantId of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public String getTenantId() { + /** + * tenant id + * + * @return tenantId The tenantId of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public String getTenantId() { return tenantId; } /** * Set the tenantId of this {@link BckndInternalResourceGroup} instance. * - * @param tenantId tenant id + * @param tenantId tenant id */ - public void setTenantId( @Nonnull final String tenantId) { + public void setTenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; } - /** - * Set the zoneId of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param zoneId zone id - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup zoneId(@Nonnull final String zoneId) { + /** + * Set the zoneId of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param zoneId zone id + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup zoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; return this; } - /** - * zone id - * @return zoneId The zoneId of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public String getZoneId() { + /** + * zone id + * + * @return zoneId The zoneId of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public String getZoneId() { return zoneId; } /** * Set the zoneId of this {@link BckndInternalResourceGroup} instance. * - * @param zoneId zone id + * @param zoneId zone id */ - public void setZoneId( @Nonnull final String zoneId) { + public void setZoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; } - /** - * Set the createdAt of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param createdAt Timestamp of resource group creation - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param createdAt Timestamp of resource group creation + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource group creation - * @return createdAt The createdAt of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource group creation + * + * @return createdAt The createdAt of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link BckndInternalResourceGroup} instance. * - * @param createdAt Timestamp of resource group creation + * @param createdAt Timestamp of resource group creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the labels of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup labels( + @Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link BckndInternalResourceGroup}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link BckndInternalResourceGroup} */ - @Nonnull public BckndInternalResourceGroup addLabelsItem( @Nonnull final BckndInternalResourceGroupLabel labelsItem) { + @Nonnull + public BckndInternalResourceGroup addLabelsItem( + @Nonnull final BckndInternalResourceGroupLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -271,95 +279,112 @@ public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link BckndInternalResourceGroup} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the status of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param status aggregated status of the onboarding process - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param status aggregated status of the onboarding process + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * aggregated status of the onboarding process - * @return status The status of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * aggregated status of the onboarding process + * + * @return status The status of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link BckndInternalResourceGroup} instance. * - * @param status aggregated status of the onboarding process + * @param status aggregated status of the onboarding process */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } - /** - * Set the statusMessage of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param statusMessage status message - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param statusMessage status message + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * status message - * @return statusMessage The statusMessage of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * status message + * + * @return statusMessage The statusMessage of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link BckndInternalResourceGroup} instance. * - * @param statusMessage status message + * @param statusMessage status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the annotations of this {@link BckndInternalResourceGroup} instance and return the same instance. - * - * @param annotations Arbitrary annotations as meta information - * @return The same instance of this {@link BckndInternalResourceGroup} class - */ - @Nonnull public BckndInternalResourceGroup annotations(@Nonnull final List annotations) { + /** + * Set the annotations of this {@link BckndInternalResourceGroup} instance and return the same + * instance. + * + * @param annotations Arbitrary annotations as meta information + * @return The same instance of this {@link BckndInternalResourceGroup} class + */ + @Nonnull + public BckndInternalResourceGroup annotations( + @Nonnull final List annotations) { this.annotations = annotations; return this; } + /** * Add one annotations instance to this {@link BckndInternalResourceGroup}. + * * @param annotationsItem The annotations that should be added * @return The same instance of type {@link BckndInternalResourceGroup} */ - @Nonnull public BckndInternalResourceGroup addAnnotationsItem( @Nonnull final BckndInternalResourceGroupAnnotation annotationsItem) { + @Nonnull + public BckndInternalResourceGroup addAnnotationsItem( + @Nonnull final BckndInternalResourceGroupAnnotation annotationsItem) { if (this.annotations == null) { this.annotations = new ArrayList<>(); } @@ -367,25 +392,29 @@ public void setStatusMessage( @Nonnull final String statusMessage) { return this; } - /** - * Arbitrary annotations as meta information - * @return annotations The annotations of this {@link BckndInternalResourceGroup} instance. - */ - @Nonnull public List getAnnotations() { + /** + * Arbitrary annotations as meta information + * + * @return annotations The annotations of this {@link BckndInternalResourceGroup} instance. + */ + @Nonnull + public List getAnnotations() { return annotations; } /** * Set the annotations of this {@link BckndInternalResourceGroup} instance. * - * @param annotations Arbitrary annotations as meta information + * @param annotations Arbitrary annotations as meta information */ - public void setAnnotations( @Nonnull final List annotations) { + public void setAnnotations( + @Nonnull final List annotations) { this.annotations = annotations; } /** * Get the names of the unrecognizable properties of the {@link BckndInternalResourceGroup}. + * * @return The set of properties names */ @JsonIgnore @@ -395,32 +424,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndInternalResourceGroup} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndInternalResourceGroup} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndInternalResourceGroup has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndInternalResourceGroup has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndInternalResourceGroup} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndInternalResourceGroup} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -430,24 +461,35 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndInternalResourceGroup bckndInternalResourceGroup = (BckndInternalResourceGroup) o; - return Objects.equals(this.cloudSdkCustomFields, bckndInternalResourceGroup.cloudSdkCustomFields) && - Objects.equals(this.resourceGroupId, bckndInternalResourceGroup.resourceGroupId) && - Objects.equals(this.tenantId, bckndInternalResourceGroup.tenantId) && - Objects.equals(this.zoneId, bckndInternalResourceGroup.zoneId) && - Objects.equals(this.createdAt, bckndInternalResourceGroup.createdAt) && - Objects.equals(this.labels, bckndInternalResourceGroup.labels) && - Objects.equals(this.status, bckndInternalResourceGroup.status) && - Objects.equals(this.statusMessage, bckndInternalResourceGroup.statusMessage) && - Objects.equals(this.annotations, bckndInternalResourceGroup.annotations); + return Objects.equals( + this.cloudSdkCustomFields, bckndInternalResourceGroup.cloudSdkCustomFields) + && Objects.equals(this.resourceGroupId, bckndInternalResourceGroup.resourceGroupId) + && Objects.equals(this.tenantId, bckndInternalResourceGroup.tenantId) + && Objects.equals(this.zoneId, bckndInternalResourceGroup.zoneId) + && Objects.equals(this.createdAt, bckndInternalResourceGroup.createdAt) + && Objects.equals(this.labels, bckndInternalResourceGroup.labels) + && Objects.equals(this.status, bckndInternalResourceGroup.status) + && Objects.equals(this.statusMessage, bckndInternalResourceGroup.statusMessage) + && Objects.equals(this.annotations, bckndInternalResourceGroup.annotations); } @Override public int hashCode() { - return Objects.hash(resourceGroupId, tenantId, zoneId, createdAt, labels, status, statusMessage, annotations, cloudSdkCustomFields); + return Objects.hash( + resourceGroupId, + tenantId, + zoneId, + createdAt, + labels, + status, + statusMessage, + annotations, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndInternalResourceGroup {\n"); sb.append(" resourceGroupId: ").append(toIndentedString(resourceGroupId)).append("\n"); @@ -458,14 +500,15 @@ public int hashCode() { sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -474,48 +517,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndInternalResourceGroup} instance with all required arguments. + */ + public static Builder create() { + return (resourceGroupId) -> + (createdAt) -> + (status) -> + new BckndInternalResourceGroup() + .resourceGroupId(resourceGroupId) + .createdAt(createdAt) + .status(status); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndInternalResourceGroup} instance with all required arguments. - */ - public static Builder create() { - return (resourceGroupId) -> (createdAt) -> (status) -> new BckndInternalResourceGroup().resourceGroupId(resourceGroupId).createdAt(createdAt).status(status); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance. - * - * @param resourceGroupId resource group id - * @return The BckndInternalResourceGroup builder. - */ - Builder1 resourceGroupId( @Nonnull final String resourceGroupId); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the createdAt of this {@link BckndInternalResourceGroup} instance. - * - * @param createdAt Timestamp of resource group creation - * @return The BckndInternalResourceGroup builder. - */ - Builder2 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the resourceGroupId of this {@link BckndInternalResourceGroup} instance. + * + * @param resourceGroupId resource group id + * @return The BckndInternalResourceGroup builder. + */ + Builder1 resourceGroupId(@Nonnull final String resourceGroupId); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the status of this {@link BckndInternalResourceGroup} instance. - * - * @param status aggregated status of the onboarding process - * @return The BckndInternalResourceGroup instance. - */ - BckndInternalResourceGroup status( @Nonnull final StatusEnum status); - } + * Set the createdAt of this {@link BckndInternalResourceGroup} instance. + * + * @param createdAt Timestamp of resource group creation + * @return The BckndInternalResourceGroup builder. + */ + Builder2 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the status of this {@link BckndInternalResourceGroup} instance. + * + * @param status aggregated status of the onboarding process + * @return The BckndInternalResourceGroup instance. + */ + BckndInternalResourceGroup status(@Nonnull final StatusEnum status); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java index 6f0050d7..3a7dae25 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupAnnotation.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndInternalResourceGroupAnnotation - */ +/** BckndInternalResourceGroupAnnotation */ // CHECKSTYLE:OFF -public class BckndInternalResourceGroupAnnotation +public class BckndInternalResourceGroupAnnotation // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,79 @@ public class BckndInternalResourceGroupAnnotation @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndInternalResourceGroupAnnotation() { } - - /** - * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance and return the same instance. - * - * @param key The key of this {@link BckndInternalResourceGroupAnnotation} - * @return The same instance of this {@link BckndInternalResourceGroupAnnotation} class - */ - @Nonnull public BckndInternalResourceGroupAnnotation key(@Nonnull final String key) { + + protected BckndInternalResourceGroupAnnotation() {} + + /** + * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance and return the same + * instance. + * + * @param key The key of this {@link BckndInternalResourceGroupAnnotation} + * @return The same instance of this {@link BckndInternalResourceGroupAnnotation} class + */ + @Nonnull + public BckndInternalResourceGroupAnnotation key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link BckndInternalResourceGroupAnnotation} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link BckndInternalResourceGroupAnnotation} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance. * - * @param key The key of this {@link BckndInternalResourceGroupAnnotation} + * @param key The key of this {@link BckndInternalResourceGroupAnnotation} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link BckndInternalResourceGroupAnnotation} instance and return the same instance. - * - * @param value The value of this {@link BckndInternalResourceGroupAnnotation} - * @return The same instance of this {@link BckndInternalResourceGroupAnnotation} class - */ - @Nonnull public BckndInternalResourceGroupAnnotation value(@Nonnull final String value) { + /** + * Set the value of this {@link BckndInternalResourceGroupAnnotation} instance and return the same + * instance. + * + * @param value The value of this {@link BckndInternalResourceGroupAnnotation} + * @return The same instance of this {@link BckndInternalResourceGroupAnnotation} class + */ + @Nonnull + public BckndInternalResourceGroupAnnotation value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link BckndInternalResourceGroupAnnotation} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link BckndInternalResourceGroupAnnotation} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link BckndInternalResourceGroupAnnotation} instance. * - * @param value The value of this {@link BckndInternalResourceGroupAnnotation} + * @param value The value of this {@link BckndInternalResourceGroupAnnotation} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** - * Get the names of the unrecognizable properties of the {@link BckndInternalResourceGroupAnnotation}. + * Get the names of the unrecognizable properties of the {@link + * BckndInternalResourceGroupAnnotation}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndInternalResourceGroupAnnotation} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndInternalResourceGroupAnnotation} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndInternalResourceGroupAnnotation has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndInternalResourceGroupAnnotation has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndInternalResourceGroupAnnotation} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndInternalResourceGroupAnnotation} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndInternalResourceGroupAnnotation bckndInternalResourceGroupAnnotation = (BckndInternalResourceGroupAnnotation) o; - return Objects.equals(this.cloudSdkCustomFields, bckndInternalResourceGroupAnnotation.cloudSdkCustomFields) && - Objects.equals(this.key, bckndInternalResourceGroupAnnotation.key) && - Objects.equals(this.value, bckndInternalResourceGroupAnnotation.value); + final BckndInternalResourceGroupAnnotation bckndInternalResourceGroupAnnotation = + (BckndInternalResourceGroupAnnotation) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndInternalResourceGroupAnnotation.cloudSdkCustomFields) + && Objects.equals(this.key, bckndInternalResourceGroupAnnotation.key) + && Objects.equals(this.value, bckndInternalResourceGroupAnnotation.value); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndInternalResourceGroupAnnotation {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndInternalResourceGroupAnnotation} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new BckndInternalResourceGroupAnnotation().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndInternalResourceGroupAnnotation} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new BckndInternalResourceGroupAnnotation().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance. - * - * @param key The key of this {@link BckndInternalResourceGroupAnnotation} - * @return The BckndInternalResourceGroupAnnotation builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link BckndInternalResourceGroupAnnotation} instance. - * - * @param value The value of this {@link BckndInternalResourceGroupAnnotation} - * @return The BckndInternalResourceGroupAnnotation instance. - */ - BckndInternalResourceGroupAnnotation value( @Nonnull final String value); - } + * Set the key of this {@link BckndInternalResourceGroupAnnotation} instance. + * + * @param key The key of this {@link BckndInternalResourceGroupAnnotation} + * @return The BckndInternalResourceGroupAnnotation builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link BckndInternalResourceGroupAnnotation} instance. + * + * @param value The value of this {@link BckndInternalResourceGroupAnnotation} + * @return The BckndInternalResourceGroupAnnotation instance. + */ + BckndInternalResourceGroupAnnotation value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java index 8bef7ad6..ae96ee72 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndInternalResourceGroupLabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndInternalResourceGroupLabel - */ +/** BckndInternalResourceGroupLabel */ // CHECKSTYLE:OFF -public class BckndInternalResourceGroupLabel +public class BckndInternalResourceGroupLabel // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,78 @@ public class BckndInternalResourceGroupLabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndInternalResourceGroupLabel() { } - - /** - * Set the key of this {@link BckndInternalResourceGroupLabel} instance and return the same instance. - * - * @param key The key of this {@link BckndInternalResourceGroupLabel} - * @return The same instance of this {@link BckndInternalResourceGroupLabel} class - */ - @Nonnull public BckndInternalResourceGroupLabel key(@Nonnull final String key) { + + protected BckndInternalResourceGroupLabel() {} + + /** + * Set the key of this {@link BckndInternalResourceGroupLabel} instance and return the same + * instance. + * + * @param key The key of this {@link BckndInternalResourceGroupLabel} + * @return The same instance of this {@link BckndInternalResourceGroupLabel} class + */ + @Nonnull + public BckndInternalResourceGroupLabel key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link BckndInternalResourceGroupLabel} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link BckndInternalResourceGroupLabel} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link BckndInternalResourceGroupLabel} instance. * - * @param key The key of this {@link BckndInternalResourceGroupLabel} + * @param key The key of this {@link BckndInternalResourceGroupLabel} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link BckndInternalResourceGroupLabel} instance and return the same instance. - * - * @param value The value of this {@link BckndInternalResourceGroupLabel} - * @return The same instance of this {@link BckndInternalResourceGroupLabel} class - */ - @Nonnull public BckndInternalResourceGroupLabel value(@Nonnull final String value) { + /** + * Set the value of this {@link BckndInternalResourceGroupLabel} instance and return the same + * instance. + * + * @param value The value of this {@link BckndInternalResourceGroupLabel} + * @return The same instance of this {@link BckndInternalResourceGroupLabel} class + */ + @Nonnull + public BckndInternalResourceGroupLabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link BckndInternalResourceGroupLabel} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link BckndInternalResourceGroupLabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link BckndInternalResourceGroupLabel} instance. * - * @param value The value of this {@link BckndInternalResourceGroupLabel} + * @param value The value of this {@link BckndInternalResourceGroupLabel} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link BckndInternalResourceGroupLabel}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndInternalResourceGroupLabel} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndInternalResourceGroupLabel} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndInternalResourceGroupLabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndInternalResourceGroupLabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndInternalResourceGroupLabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndInternalResourceGroupLabel} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndInternalResourceGroupLabel bckndInternalResourceGroupLabel = (BckndInternalResourceGroupLabel) o; - return Objects.equals(this.cloudSdkCustomFields, bckndInternalResourceGroupLabel.cloudSdkCustomFields) && - Objects.equals(this.key, bckndInternalResourceGroupLabel.key) && - Objects.equals(this.value, bckndInternalResourceGroupLabel.value); + final BckndInternalResourceGroupLabel bckndInternalResourceGroupLabel = + (BckndInternalResourceGroupLabel) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndInternalResourceGroupLabel.cloudSdkCustomFields) + && Objects.equals(this.key, bckndInternalResourceGroupLabel.key) + && Objects.equals(this.value, bckndInternalResourceGroupLabel.value); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndInternalResourceGroupLabel {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +190,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndInternalResourceGroupLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new BckndInternalResourceGroupLabel().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndInternalResourceGroupLabel} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new BckndInternalResourceGroupLabel().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link BckndInternalResourceGroupLabel} instance. - * - * @param key The key of this {@link BckndInternalResourceGroupLabel} - * @return The BckndInternalResourceGroupLabel builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link BckndInternalResourceGroupLabel} instance. - * - * @param value The value of this {@link BckndInternalResourceGroupLabel} - * @return The BckndInternalResourceGroupLabel instance. - */ - BckndInternalResourceGroupLabel value( @Nonnull final String value); - } + * Set the key of this {@link BckndInternalResourceGroupLabel} instance. + * + * @param key The key of this {@link BckndInternalResourceGroupLabel} + * @return The BckndInternalResourceGroupLabel builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link BckndInternalResourceGroupLabel} instance. + * + * @param value The value of this {@link BckndInternalResourceGroupLabel} + * @return The BckndInternalResourceGroupLabel instance. + */ + BckndInternalResourceGroupLabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java index 13a1ea29..fc609b72 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndListGenericSecretsResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,27 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndGenericSecretDetails; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * This represents a list of meta-data of the secret. The 'data' field of the secret is never retrieved. + * This represents a list of meta-data of the secret. The 'data' field of the secret is + * never retrieved. */ // CHECKSTYLE:OFF -public class BckndListGenericSecretsResponse +public class BckndListGenericSecretsResponse // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +41,66 @@ public class BckndListGenericSecretsResponse @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndListGenericSecretsResponse() { } - - /** - * Set the count of this {@link BckndListGenericSecretsResponse} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BckndListGenericSecretsResponse} class - */ - @Nonnull public BckndListGenericSecretsResponse count(@Nonnull final Integer count) { + + protected BckndListGenericSecretsResponse() {} + + /** + * Set the count of this {@link BckndListGenericSecretsResponse} instance and return the same + * instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BckndListGenericSecretsResponse} class + */ + @Nonnull + public BckndListGenericSecretsResponse count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BckndListGenericSecretsResponse} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BckndListGenericSecretsResponse} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndListGenericSecretsResponse} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BckndListGenericSecretsResponse} instance and return the same instance. - * - * @param resources The resources of this {@link BckndListGenericSecretsResponse} - * @return The same instance of this {@link BckndListGenericSecretsResponse} class - */ - @Nonnull public BckndListGenericSecretsResponse resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BckndListGenericSecretsResponse} instance and return the same + * instance. + * + * @param resources The resources of this {@link BckndListGenericSecretsResponse} + * @return The same instance of this {@link BckndListGenericSecretsResponse} class + */ + @Nonnull + public BckndListGenericSecretsResponse resources( + @Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BckndListGenericSecretsResponse}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BckndListGenericSecretsResponse} */ - @Nonnull public BckndListGenericSecretsResponse addResourcesItem( @Nonnull final BckndGenericSecretDetails resourcesItem) { + @Nonnull + public BckndListGenericSecretsResponse addResourcesItem( + @Nonnull final BckndGenericSecretDetails resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +108,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BckndListGenericSecretsResponse} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BckndListGenericSecretsResponse} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BckndListGenericSecretsResponse} instance. * - * @param resources The resources of this {@link BckndListGenericSecretsResponse} + * @param resources The resources of this {@link BckndListGenericSecretsResponse} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link BckndListGenericSecretsResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -136,32 +139,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndListGenericSecretsResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndListGenericSecretsResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndListGenericSecretsResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndListGenericSecretsResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndListGenericSecretsResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndListGenericSecretsResponse} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -170,10 +176,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndListGenericSecretsResponse bckndListGenericSecretsResponse = (BckndListGenericSecretsResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndListGenericSecretsResponse.cloudSdkCustomFields) && - Objects.equals(this.count, bckndListGenericSecretsResponse.count) && - Objects.equals(this.resources, bckndListGenericSecretsResponse.resources); + final BckndListGenericSecretsResponse bckndListGenericSecretsResponse = + (BckndListGenericSecretsResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndListGenericSecretsResponse.cloudSdkCustomFields) + && Objects.equals(this.count, bckndListGenericSecretsResponse.count) + && Objects.equals(this.resources, bckndListGenericSecretsResponse.resources); } @Override @@ -182,19 +190,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndListGenericSecretsResponse {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +213,46 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndListGenericSecretsResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> + (resources) -> new BckndListGenericSecretsResponse().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndListGenericSecretsResponse} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BckndListGenericSecretsResponse().count(count).resources(resources); - } + * Set the count of this {@link BckndListGenericSecretsResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndListGenericSecretsResponse builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndListGenericSecretsResponse} instance. - * - * @param count Number of the resource instances in the list - * @return The BckndListGenericSecretsResponse builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BckndListGenericSecretsResponse} instance. + * + * @param resources The resources of this {@link BckndListGenericSecretsResponse} + * @return The BckndListGenericSecretsResponse instance. + */ + BckndListGenericSecretsResponse resources( + @Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BckndListGenericSecretsResponse} instance. - * - * @param resources The resources of this {@link BckndListGenericSecretsResponse} - * @return The BckndListGenericSecretsResponse instance. - */ - BckndListGenericSecretsResponse resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BckndListGenericSecretsResponse} instance. - * - * @param resources The resources of this {@link BckndListGenericSecretsResponse} - * @return The BckndListGenericSecretsResponse instance. - */ - default BckndListGenericSecretsResponse resources( @Nonnull final BckndGenericSecretDetails... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BckndListGenericSecretsResponse} instance. + * + * @param resources The resources of this {@link BckndListGenericSecretsResponse} + * @return The BckndListGenericSecretsResponse instance. + */ + default BckndListGenericSecretsResponse resources( + @Nonnull final BckndGenericSecretDetails... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java index 3d29e134..0e9e777b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResourcePlansValue.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGetResourcePlansValue - */ +/** BckndResourceGetResourcePlansValue */ // CHECKSTYLE:OFF -public class BckndResourceGetResourcePlansValue +public class BckndResourceGetResourcePlansValue // CHECKSTYLE:ON { @JsonProperty("provisioned") @@ -48,69 +35,80 @@ public class BckndResourceGetResourcePlansValue @JsonProperty("requested") private Integer requested; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGetResourcePlansValue() { } - - /** - * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance and return the same instance. - * - * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} - * @return The same instance of this {@link BckndResourceGetResourcePlansValue} class - */ - @Nonnull public BckndResourceGetResourcePlansValue provisioned(@Nonnull final Integer provisioned) { + + protected BckndResourceGetResourcePlansValue() {} + + /** + * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance and return the + * same instance. + * + * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} + * @return The same instance of this {@link BckndResourceGetResourcePlansValue} class + */ + @Nonnull + public BckndResourceGetResourcePlansValue provisioned(@Nonnull final Integer provisioned) { this.provisioned = provisioned; return this; } - /** - * Get provisioned - * @return provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} instance. - */ - @Nonnull public Integer getProvisioned() { + /** + * Get provisioned + * + * @return provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} + * instance. + */ + @Nonnull + public Integer getProvisioned() { return provisioned; } /** * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance. * - * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} + * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} */ - public void setProvisioned( @Nonnull final Integer provisioned) { + public void setProvisioned(@Nonnull final Integer provisioned) { this.provisioned = provisioned; } - /** - * Set the requested of this {@link BckndResourceGetResourcePlansValue} instance and return the same instance. - * - * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} - * @return The same instance of this {@link BckndResourceGetResourcePlansValue} class - */ - @Nonnull public BckndResourceGetResourcePlansValue requested(@Nonnull final Integer requested) { + /** + * Set the requested of this {@link BckndResourceGetResourcePlansValue} instance and return the + * same instance. + * + * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} + * @return The same instance of this {@link BckndResourceGetResourcePlansValue} class + */ + @Nonnull + public BckndResourceGetResourcePlansValue requested(@Nonnull final Integer requested) { this.requested = requested; return this; } - /** - * Get requested - * @return requested The requested of this {@link BckndResourceGetResourcePlansValue} instance. - */ - @Nonnull public Integer getRequested() { + /** + * Get requested + * + * @return requested The requested of this {@link BckndResourceGetResourcePlansValue} instance. + */ + @Nonnull + public Integer getRequested() { return requested; } /** * Set the requested of this {@link BckndResourceGetResourcePlansValue} instance. * - * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} + * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} */ - public void setRequested( @Nonnull final Integer requested) { + public void setRequested(@Nonnull final Integer requested) { this.requested = requested; } /** - * Get the names of the unrecognizable properties of the {@link BckndResourceGetResourcePlansValue}. + * Get the names of the unrecognizable properties of the {@link + * BckndResourceGetResourcePlansValue}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +118,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndResourceGetResourcePlansValue} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndResourceGetResourcePlansValue} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGetResourcePlansValue has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGetResourcePlansValue has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGetResourcePlansValue} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGetResourcePlansValue} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +155,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndResourceGetResourcePlansValue bckndResourceGetResourcePlansValue = (BckndResourceGetResourcePlansValue) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGetResourcePlansValue.cloudSdkCustomFields) && - Objects.equals(this.provisioned, bckndResourceGetResourcePlansValue.provisioned) && - Objects.equals(this.requested, bckndResourceGetResourcePlansValue.requested); + final BckndResourceGetResourcePlansValue bckndResourceGetResourcePlansValue = + (BckndResourceGetResourcePlansValue) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndResourceGetResourcePlansValue.cloudSdkCustomFields) + && Objects.equals(this.provisioned, bckndResourceGetResourcePlansValue.provisioned) + && Objects.equals(this.requested, bckndResourceGetResourcePlansValue.requested); } @Override @@ -166,19 +169,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGetResourcePlansValue {\n"); sb.append(" provisioned: ").append(toIndentedString(provisioned)).append("\n"); sb.append(" requested: ").append(toIndentedString(requested)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +192,35 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndResourceGetResourcePlansValue} instance with all required arguments. + */ + public static Builder create() { + return (provisioned) -> + (requested) -> + new BckndResourceGetResourcePlansValue().provisioned(provisioned).requested(requested); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGetResourcePlansValue} instance with all required arguments. - */ - public static Builder create() { - return (provisioned) -> (requested) -> new BckndResourceGetResourcePlansValue().provisioned(provisioned).requested(requested); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance. - * - * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} - * @return The BckndResourceGetResourcePlansValue builder. - */ - Builder1 provisioned( @Nonnull final Integer provisioned); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the requested of this {@link BckndResourceGetResourcePlansValue} instance. - * - * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} - * @return The BckndResourceGetResourcePlansValue instance. - */ - BckndResourceGetResourcePlansValue requested( @Nonnull final Integer requested); - } + * Set the provisioned of this {@link BckndResourceGetResourcePlansValue} instance. + * + * @param provisioned The provisioned of this {@link BckndResourceGetResourcePlansValue} + * @return The BckndResourceGetResourcePlansValue builder. + */ + Builder1 provisioned(@Nonnull final Integer provisioned); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the requested of this {@link BckndResourceGetResourcePlansValue} instance. + * + * @param requested The requested of this {@link BckndResourceGetResourcePlansValue} + * @return The BckndResourceGetResourcePlansValue instance. + */ + BckndResourceGetResourcePlansValue requested(@Nonnull final Integer requested); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java index 267b5d1b..4c6e4ce2 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGetResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,87 +12,85 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.HashMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndResourceGetResourcePlansValue; -import java.util.HashMap; -import java.util.Map; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGetResponse - */ +/** BckndResourceGetResponse */ // CHECKSTYLE:OFF -public class BckndResourceGetResponse +public class BckndResourceGetResponse // CHECKSTYLE:ON { @JsonProperty("resourcePlans") private Map resourcePlans = new HashMap<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGetResponse() { } - - /** - * Set the resourcePlans of this {@link BckndResourceGetResponse} instance and return the same instance. - * - * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} - * @return The same instance of this {@link BckndResourceGetResponse} class - */ - @Nonnull public BckndResourceGetResponse resourcePlans(@Nonnull final Map resourcePlans) { + + protected BckndResourceGetResponse() {} + + /** + * Set the resourcePlans of this {@link BckndResourceGetResponse} instance and return the same + * instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} + * @return The same instance of this {@link BckndResourceGetResponse} class + */ + @Nonnull + public BckndResourceGetResponse resourcePlans( + @Nonnull final Map resourcePlans) { this.resourcePlans = resourcePlans; return this; } - /** - * Put one resourcePlans instance to this {@link BckndResourceGetResponse} instance. - * @param key The String key of this resourcePlans instance - * @param resourcePlansItem The resourcePlans that should be added under the given key - * @return The same instance of type {@link BckndResourceGetResponse} - */ - @Nonnull public BckndResourceGetResponse putresourcePlansItem(@Nonnull final String key, @Nonnull final BckndResourceGetResourcePlansValue resourcePlansItem) { - this.resourcePlans = new HashMap<>(); + /** + * Put one resourcePlans instance to this {@link BckndResourceGetResponse} instance. + * + * @param key The String key of this resourcePlans instance + * @param resourcePlansItem The resourcePlans that should be added under the given key + * @return The same instance of type {@link BckndResourceGetResponse} + */ + @Nonnull + public BckndResourceGetResponse putresourcePlansItem( + @Nonnull final String key, + @Nonnull final BckndResourceGetResourcePlansValue resourcePlansItem) { + this.resourcePlans = new HashMap<>(); this.resourcePlans.put(key, resourcePlansItem); return this; } - /** - * Get resourcePlans - * @return resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} instance. - */ - @Nonnull public Map getResourcePlans() { + /** + * Get resourcePlans + * + * @return resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} instance. + */ + @Nonnull + public Map getResourcePlans() { return resourcePlans; } /** * Set the resourcePlans of this {@link BckndResourceGetResponse} instance. * - * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} + * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} */ - public void setResourcePlans( @Nonnull final Map resourcePlans) { + public void setResourcePlans( + @Nonnull final Map resourcePlans) { this.resourcePlans = resourcePlans; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGetResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -105,31 +101,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourceGetResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGetResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGetResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGetResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGetResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -139,8 +136,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourceGetResponse bckndResourceGetResponse = (BckndResourceGetResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGetResponse.cloudSdkCustomFields) && - Objects.equals(this.resourcePlans, bckndResourceGetResponse.resourcePlans); + return Objects.equals(this.cloudSdkCustomFields, bckndResourceGetResponse.cloudSdkCustomFields) + && Objects.equals(this.resourcePlans, bckndResourceGetResponse.resourcePlans); } @Override @@ -149,18 +146,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGetResponse {\n"); sb.append(" resourcePlans: ").append(toIndentedString(resourcePlans)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -169,24 +168,23 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGetResponse} instance with all required arguments. - */ - public static Builder create() { - return (resourcePlans) -> new BckndResourceGetResponse().resourcePlans(resourcePlans); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the resourcePlans of this {@link BckndResourceGetResponse} instance. - * - * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} - * @return The BckndResourceGetResponse instance. - */ - BckndResourceGetResponse resourcePlans( @Nonnull final Map resourcePlans); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndResourceGetResponse} instance with all required arguments. + */ + public static Builder create() { + return (resourcePlans) -> new BckndResourceGetResponse().resourcePlans(resourcePlans); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the resourcePlans of this {@link BckndResourceGetResponse} instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourceGetResponse} + * @return The BckndResourceGetResponse instance. + */ + BckndResourceGetResponse resourcePlans( + @Nonnull final Map resourcePlans); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java index 7630279f..a1b89447 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroup.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,26 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndResourceGroupLabel; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroup - */ +/** BckndResourceGroup */ // CHECKSTYLE:OFF -public class BckndResourceGroup +public class BckndResourceGroup // CHECKSTYLE:ON { @JsonProperty("resourceGroupId") @@ -62,23 +49,15 @@ public class BckndResourceGroup @JsonProperty("labels") private List labels = new ArrayList<>(); - /** - * aggregated status of the onboarding process - */ + /** aggregated status of the onboarding process */ public enum StatusEnum { - /** - * The PROVISIONED option of this BckndResourceGroup - */ + /** The PROVISIONED option of this BckndResourceGroup */ PROVISIONED("PROVISIONED"), - - /** - * The ERROR option of this BckndResourceGroup - */ + + /** The ERROR option of this BckndResourceGroup */ ERROR("ERROR"), - - /** - * The PROVISIONING option of this BckndResourceGroup - */ + + /** The PROVISIONING option of this BckndResourceGroup */ PROVISIONING("PROVISIONING"); private String value; @@ -88,30 +67,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndResourceGroup - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndResourceGroup + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -127,139 +112,156 @@ public enum StatusEnum { @JsonProperty("statusMessage") private String statusMessage; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroup() { } - - /** - * Set the resourceGroupId of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param resourceGroupId resource group id - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup resourceGroupId(@Nonnull final String resourceGroupId) { + + protected BckndResourceGroup() {} + + /** + * Set the resourceGroupId of this {@link BckndResourceGroup} instance and return the same + * instance. + * + * @param resourceGroupId resource group id + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup resourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } - /** - * resource group id - * @return resourceGroupId The resourceGroupId of this {@link BckndResourceGroup} instance. - */ - @Nonnull public String getResourceGroupId() { + /** + * resource group id + * + * @return resourceGroupId The resourceGroupId of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public String getResourceGroupId() { return resourceGroupId; } /** * Set the resourceGroupId of this {@link BckndResourceGroup} instance. * - * @param resourceGroupId resource group id + * @param resourceGroupId resource group id */ - public void setResourceGroupId( @Nonnull final String resourceGroupId) { + public void setResourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; } - /** - * Set the tenantId of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param tenantId tenant id - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup tenantId(@Nonnull final String tenantId) { + /** + * Set the tenantId of this {@link BckndResourceGroup} instance and return the same instance. + * + * @param tenantId tenant id + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup tenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; return this; } - /** - * tenant id - * @return tenantId The tenantId of this {@link BckndResourceGroup} instance. - */ - @Nonnull public String getTenantId() { + /** + * tenant id + * + * @return tenantId The tenantId of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public String getTenantId() { return tenantId; } /** * Set the tenantId of this {@link BckndResourceGroup} instance. * - * @param tenantId tenant id + * @param tenantId tenant id */ - public void setTenantId( @Nonnull final String tenantId) { + public void setTenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; } - /** - * Set the zoneId of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param zoneId zone id - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup zoneId(@Nonnull final String zoneId) { + /** + * Set the zoneId of this {@link BckndResourceGroup} instance and return the same instance. + * + * @param zoneId zone id + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup zoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; return this; } - /** - * zone id - * @return zoneId The zoneId of this {@link BckndResourceGroup} instance. - */ - @Nonnull public String getZoneId() { + /** + * zone id + * + * @return zoneId The zoneId of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public String getZoneId() { return zoneId; } /** * Set the zoneId of this {@link BckndResourceGroup} instance. * - * @param zoneId zone id + * @param zoneId zone id */ - public void setZoneId( @Nonnull final String zoneId) { + public void setZoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; } - /** - * Set the createdAt of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param createdAt Timestamp of resource group creation - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link BckndResourceGroup} instance and return the same instance. + * + * @param createdAt Timestamp of resource group creation + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource group creation - * @return createdAt The createdAt of this {@link BckndResourceGroup} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource group creation + * + * @return createdAt The createdAt of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link BckndResourceGroup} instance. * - * @param createdAt Timestamp of resource group creation + * @param createdAt Timestamp of resource group creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the labels of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link BckndResourceGroup} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link BckndResourceGroup}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link BckndResourceGroup} */ - @Nonnull public BckndResourceGroup addLabelsItem( @Nonnull final BckndResourceGroupLabel labelsItem) { + @Nonnull + public BckndResourceGroup addLabelsItem(@Nonnull final BckndResourceGroupLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -267,81 +269,90 @@ public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link BckndResourceGroup} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link BckndResourceGroup} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the status of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param status aggregated status of the onboarding process - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link BckndResourceGroup} instance and return the same instance. + * + * @param status aggregated status of the onboarding process + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * aggregated status of the onboarding process - * @return status The status of this {@link BckndResourceGroup} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * aggregated status of the onboarding process + * + * @return status The status of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link BckndResourceGroup} instance. * - * @param status aggregated status of the onboarding process + * @param status aggregated status of the onboarding process */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } - /** - * Set the statusMessage of this {@link BckndResourceGroup} instance and return the same instance. - * - * @param statusMessage status message - * @return The same instance of this {@link BckndResourceGroup} class - */ - @Nonnull public BckndResourceGroup statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link BckndResourceGroup} instance and return the same instance. + * + * @param statusMessage status message + * @return The same instance of this {@link BckndResourceGroup} class + */ + @Nonnull + public BckndResourceGroup statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * status message - * @return statusMessage The statusMessage of this {@link BckndResourceGroup} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * status message + * + * @return statusMessage The statusMessage of this {@link BckndResourceGroup} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link BckndResourceGroup} instance. * - * @param statusMessage status message + * @param statusMessage status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGroup}. + * * @return The set of properties names */ @JsonIgnore @@ -352,31 +363,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourceGroup} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroup has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndResourceGroup has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroup} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroup} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -386,23 +397,32 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourceGroup bckndResourceGroup = (BckndResourceGroup) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroup.cloudSdkCustomFields) && - Objects.equals(this.resourceGroupId, bckndResourceGroup.resourceGroupId) && - Objects.equals(this.tenantId, bckndResourceGroup.tenantId) && - Objects.equals(this.zoneId, bckndResourceGroup.zoneId) && - Objects.equals(this.createdAt, bckndResourceGroup.createdAt) && - Objects.equals(this.labels, bckndResourceGroup.labels) && - Objects.equals(this.status, bckndResourceGroup.status) && - Objects.equals(this.statusMessage, bckndResourceGroup.statusMessage); + return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroup.cloudSdkCustomFields) + && Objects.equals(this.resourceGroupId, bckndResourceGroup.resourceGroupId) + && Objects.equals(this.tenantId, bckndResourceGroup.tenantId) + && Objects.equals(this.zoneId, bckndResourceGroup.zoneId) + && Objects.equals(this.createdAt, bckndResourceGroup.createdAt) + && Objects.equals(this.labels, bckndResourceGroup.labels) + && Objects.equals(this.status, bckndResourceGroup.status) + && Objects.equals(this.statusMessage, bckndResourceGroup.statusMessage); } @Override public int hashCode() { - return Objects.hash(resourceGroupId, tenantId, zoneId, createdAt, labels, status, statusMessage, cloudSdkCustomFields); + return Objects.hash( + resourceGroupId, + tenantId, + zoneId, + createdAt, + labels, + status, + statusMessage, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroup {\n"); sb.append(" resourceGroupId: ").append(toIndentedString(resourceGroupId)).append("\n"); @@ -412,14 +432,15 @@ public int hashCode() { sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -428,48 +449,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroup} + * instance with all required arguments. + */ + public static Builder create() { + return (resourceGroupId) -> + (createdAt) -> + (status) -> + new BckndResourceGroup() + .resourceGroupId(resourceGroupId) + .createdAt(createdAt) + .status(status); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroup} instance with all required arguments. - */ - public static Builder create() { - return (resourceGroupId) -> (createdAt) -> (status) -> new BckndResourceGroup().resourceGroupId(resourceGroupId).createdAt(createdAt).status(status); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the resourceGroupId of this {@link BckndResourceGroup} instance. - * - * @param resourceGroupId resource group id - * @return The BckndResourceGroup builder. - */ - Builder1 resourceGroupId( @Nonnull final String resourceGroupId); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the createdAt of this {@link BckndResourceGroup} instance. - * - * @param createdAt Timestamp of resource group creation - * @return The BckndResourceGroup builder. - */ - Builder2 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the resourceGroupId of this {@link BckndResourceGroup} instance. + * + * @param resourceGroupId resource group id + * @return The BckndResourceGroup builder. + */ + Builder1 resourceGroupId(@Nonnull final String resourceGroupId); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the status of this {@link BckndResourceGroup} instance. - * - * @param status aggregated status of the onboarding process - * @return The BckndResourceGroup instance. - */ - BckndResourceGroup status( @Nonnull final StatusEnum status); - } + * Set the createdAt of this {@link BckndResourceGroup} instance. + * + * @param createdAt Timestamp of resource group creation + * @return The BckndResourceGroup builder. + */ + Builder2 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the status of this {@link BckndResourceGroup} instance. + * + * @param status aggregated status of the onboarding process + * @return The BckndResourceGroup instance. + */ + BckndResourceGroup status(@Nonnull final StatusEnum status); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java index 5625ec8a..a8ac07d1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupBase.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroupBase - */ +/** BckndResourceGroupBase */ // CHECKSTYLE:OFF -public class BckndResourceGroupBase +public class BckndResourceGroupBase // CHECKSTYLE:ON { @JsonProperty("resourceGroupId") @@ -51,97 +38,108 @@ public class BckndResourceGroupBase @JsonProperty("zoneId") private String zoneId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroupBase() { } - - /** - * Set the resourceGroupId of this {@link BckndResourceGroupBase} instance and return the same instance. - * - * @param resourceGroupId resource group id - * @return The same instance of this {@link BckndResourceGroupBase} class - */ - @Nonnull public BckndResourceGroupBase resourceGroupId(@Nonnull final String resourceGroupId) { + + protected BckndResourceGroupBase() {} + + /** + * Set the resourceGroupId of this {@link BckndResourceGroupBase} instance and return the same + * instance. + * + * @param resourceGroupId resource group id + * @return The same instance of this {@link BckndResourceGroupBase} class + */ + @Nonnull + public BckndResourceGroupBase resourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } - /** - * resource group id - * @return resourceGroupId The resourceGroupId of this {@link BckndResourceGroupBase} instance. - */ - @Nonnull public String getResourceGroupId() { + /** + * resource group id + * + * @return resourceGroupId The resourceGroupId of this {@link BckndResourceGroupBase} instance. + */ + @Nonnull + public String getResourceGroupId() { return resourceGroupId; } /** * Set the resourceGroupId of this {@link BckndResourceGroupBase} instance. * - * @param resourceGroupId resource group id + * @param resourceGroupId resource group id */ - public void setResourceGroupId( @Nonnull final String resourceGroupId) { + public void setResourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; } - /** - * Set the tenantId of this {@link BckndResourceGroupBase} instance and return the same instance. - * - * @param tenantId tenant id - * @return The same instance of this {@link BckndResourceGroupBase} class - */ - @Nonnull public BckndResourceGroupBase tenantId(@Nonnull final String tenantId) { + /** + * Set the tenantId of this {@link BckndResourceGroupBase} instance and return the same instance. + * + * @param tenantId tenant id + * @return The same instance of this {@link BckndResourceGroupBase} class + */ + @Nonnull + public BckndResourceGroupBase tenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; return this; } - /** - * tenant id - * @return tenantId The tenantId of this {@link BckndResourceGroupBase} instance. - */ - @Nonnull public String getTenantId() { + /** + * tenant id + * + * @return tenantId The tenantId of this {@link BckndResourceGroupBase} instance. + */ + @Nonnull + public String getTenantId() { return tenantId; } /** * Set the tenantId of this {@link BckndResourceGroupBase} instance. * - * @param tenantId tenant id + * @param tenantId tenant id */ - public void setTenantId( @Nonnull final String tenantId) { + public void setTenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; } - /** - * Set the zoneId of this {@link BckndResourceGroupBase} instance and return the same instance. - * - * @param zoneId zone id - * @return The same instance of this {@link BckndResourceGroupBase} class - */ - @Nonnull public BckndResourceGroupBase zoneId(@Nonnull final String zoneId) { + /** + * Set the zoneId of this {@link BckndResourceGroupBase} instance and return the same instance. + * + * @param zoneId zone id + * @return The same instance of this {@link BckndResourceGroupBase} class + */ + @Nonnull + public BckndResourceGroupBase zoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; return this; } - /** - * zone id - * @return zoneId The zoneId of this {@link BckndResourceGroupBase} instance. - */ - @Nonnull public String getZoneId() { + /** + * zone id + * + * @return zoneId The zoneId of this {@link BckndResourceGroupBase} instance. + */ + @Nonnull + public String getZoneId() { return zoneId; } /** * Set the zoneId of this {@link BckndResourceGroupBase} instance. * - * @param zoneId zone id + * @param zoneId zone id */ - public void setZoneId( @Nonnull final String zoneId) { + public void setZoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGroupBase}. + * * @return The set of properties names */ @JsonIgnore @@ -152,31 +150,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourceGroupBase} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroupBase has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGroupBase has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroupBase} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroupBase} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +185,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourceGroupBase bckndResourceGroupBase = (BckndResourceGroupBase) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupBase.cloudSdkCustomFields) && - Objects.equals(this.resourceGroupId, bckndResourceGroupBase.resourceGroupId) && - Objects.equals(this.tenantId, bckndResourceGroupBase.tenantId) && - Objects.equals(this.zoneId, bckndResourceGroupBase.zoneId); + return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupBase.cloudSdkCustomFields) + && Objects.equals(this.resourceGroupId, bckndResourceGroupBase.resourceGroupId) + && Objects.equals(this.tenantId, bckndResourceGroupBase.tenantId) + && Objects.equals(this.zoneId, bckndResourceGroupBase.zoneId); } @Override @@ -198,20 +197,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroupBase {\n"); sb.append(" resourceGroupId: ").append(toIndentedString(resourceGroupId)).append("\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" zoneId: ").append(toIndentedString(zoneId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,12 +221,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndResourceGroupBase} instance. No arguments are required. - */ - public static BckndResourceGroupBase create() { - return new BckndResourceGroupBase(); - } - + /** Create a new {@link BckndResourceGroupBase} instance. No arguments are required. */ + public static BckndResourceGroupBase create() { + return new BckndResourceGroupBase(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java index 80f636b1..99d585f9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroupDeletionResponse - */ +/** BckndResourceGroupDeletionResponse */ // CHECKSTYLE:OFF -public class BckndResourceGroupDeletionResponse +public class BckndResourceGroupDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndResourceGroupDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroupDeletionResponse() { } - - /** - * Set the id of this {@link BckndResourceGroupDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndResourceGroupDeletionResponse} class - */ - @Nonnull public BckndResourceGroupDeletionResponse id(@Nonnull final String id) { + + protected BckndResourceGroupDeletionResponse() {} + + /** + * Set the id of this {@link BckndResourceGroupDeletionResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndResourceGroupDeletionResponse} class + */ + @Nonnull + public BckndResourceGroupDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndResourceGroupDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndResourceGroupDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndResourceGroupDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndResourceGroupDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndResourceGroupDeletionResponse} class - */ - @Nonnull public BckndResourceGroupDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndResourceGroupDeletionResponse} instance and return the same + * instance. + * + * @param message Message + * @return The same instance of this {@link BckndResourceGroupDeletionResponse} class + */ + @Nonnull + public BckndResourceGroupDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndResourceGroupDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndResourceGroupDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndResourceGroupDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndResourceGroupDeletionResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndResourceGroupDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndResourceGroupDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndResourceGroupDeletionResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroupDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGroupDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroupDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroupDeletionResponse} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndResourceGroupDeletionResponse bckndResourceGroupDeletionResponse = (BckndResourceGroupDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndResourceGroupDeletionResponse.id) && - Objects.equals(this.message, bckndResourceGroupDeletionResponse.message); + final BckndResourceGroupDeletionResponse bckndResourceGroupDeletionResponse = + (BckndResourceGroupDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndResourceGroupDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndResourceGroupDeletionResponse.id) + && Objects.equals(this.message, bckndResourceGroupDeletionResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroupDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndResourceGroupDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> (message) -> new BckndResourceGroupDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndResourceGroupDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndResourceGroupDeletionResponse} instance. - * - * @param id Generic ID - * @return The BckndResourceGroupDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndResourceGroupDeletionResponse} instance. - * - * @param message Message - * @return The BckndResourceGroupDeletionResponse instance. - */ - BckndResourceGroupDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndResourceGroupDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndResourceGroupDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndResourceGroupDeletionResponse} instance. + * + * @param message Message + * @return The BckndResourceGroupDeletionResponse instance. + */ + BckndResourceGroupDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java index 477d002c..f2bea686 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupLabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroupLabel - */ +/** BckndResourceGroupLabel */ // CHECKSTYLE:OFF -public class BckndResourceGroupLabel +public class BckndResourceGroupLabel // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,76 @@ public class BckndResourceGroupLabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroupLabel() { } - - /** - * Set the key of this {@link BckndResourceGroupLabel} instance and return the same instance. - * - * @param key The key of this {@link BckndResourceGroupLabel} - * @return The same instance of this {@link BckndResourceGroupLabel} class - */ - @Nonnull public BckndResourceGroupLabel key(@Nonnull final String key) { + + protected BckndResourceGroupLabel() {} + + /** + * Set the key of this {@link BckndResourceGroupLabel} instance and return the same instance. + * + * @param key The key of this {@link BckndResourceGroupLabel} + * @return The same instance of this {@link BckndResourceGroupLabel} class + */ + @Nonnull + public BckndResourceGroupLabel key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link BckndResourceGroupLabel} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link BckndResourceGroupLabel} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link BckndResourceGroupLabel} instance. * - * @param key The key of this {@link BckndResourceGroupLabel} + * @param key The key of this {@link BckndResourceGroupLabel} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link BckndResourceGroupLabel} instance and return the same instance. - * - * @param value The value of this {@link BckndResourceGroupLabel} - * @return The same instance of this {@link BckndResourceGroupLabel} class - */ - @Nonnull public BckndResourceGroupLabel value(@Nonnull final String value) { + /** + * Set the value of this {@link BckndResourceGroupLabel} instance and return the same instance. + * + * @param value The value of this {@link BckndResourceGroupLabel} + * @return The same instance of this {@link BckndResourceGroupLabel} class + */ + @Nonnull + public BckndResourceGroupLabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link BckndResourceGroupLabel} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link BckndResourceGroupLabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link BckndResourceGroupLabel} instance. * - * @param value The value of this {@link BckndResourceGroupLabel} + * @param value The value of this {@link BckndResourceGroupLabel} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGroupLabel}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourceGroupLabel} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroupLabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGroupLabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroupLabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroupLabel} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourceGroupLabel bckndResourceGroupLabel = (BckndResourceGroupLabel) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupLabel.cloudSdkCustomFields) && - Objects.equals(this.key, bckndResourceGroupLabel.key) && - Objects.equals(this.value, bckndResourceGroupLabel.value); + return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupLabel.cloudSdkCustomFields) + && Objects.equals(this.key, bckndResourceGroupLabel.key) + && Objects.equals(this.value, bckndResourceGroupLabel.value); } @Override @@ -166,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroupLabel {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +184,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndResourceGroupLabel} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new BckndResourceGroupLabel().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupLabel} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new BckndResourceGroupLabel().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link BckndResourceGroupLabel} instance. - * - * @param key The key of this {@link BckndResourceGroupLabel} - * @return The BckndResourceGroupLabel builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link BckndResourceGroupLabel} instance. - * - * @param value The value of this {@link BckndResourceGroupLabel} - * @return The BckndResourceGroupLabel instance. - */ - BckndResourceGroupLabel value( @Nonnull final String value); - } + * Set the key of this {@link BckndResourceGroupLabel} instance. + * + * @param key The key of this {@link BckndResourceGroupLabel} + * @return The BckndResourceGroupLabel builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link BckndResourceGroupLabel} instance. + * + * @param value The value of this {@link BckndResourceGroupLabel} + * @return The BckndResourceGroupLabel instance. + */ + BckndResourceGroupLabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java index b2b26cf1..24fe0c49 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndResourceGroup; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroupList - */ +/** BckndResourceGroupList */ // CHECKSTYLE:OFF -public class BckndResourceGroupList +public class BckndResourceGroupList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class BckndResourceGroupList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroupList() { } - - /** - * Set the count of this {@link BckndResourceGroupList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BckndResourceGroupList} class - */ - @Nonnull public BckndResourceGroupList count(@Nonnull final Integer count) { + + protected BckndResourceGroupList() {} + + /** + * Set the count of this {@link BckndResourceGroupList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BckndResourceGroupList} class + */ + @Nonnull + public BckndResourceGroupList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BckndResourceGroupList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BckndResourceGroupList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndResourceGroupList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BckndResourceGroupList} instance and return the same instance. - * - * @param resources The resources of this {@link BckndResourceGroupList} - * @return The same instance of this {@link BckndResourceGroupList} class - */ - @Nonnull public BckndResourceGroupList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BckndResourceGroupList} instance and return the same instance. + * + * @param resources The resources of this {@link BckndResourceGroupList} + * @return The same instance of this {@link BckndResourceGroupList} class + */ + @Nonnull + public BckndResourceGroupList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BckndResourceGroupList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BckndResourceGroupList} */ - @Nonnull public BckndResourceGroupList addResourcesItem( @Nonnull final BckndResourceGroup resourcesItem) { + @Nonnull + public BckndResourceGroupList addResourcesItem(@Nonnull final BckndResourceGroup resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BckndResourceGroupList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BckndResourceGroupList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BckndResourceGroupList} instance. * - * @param resources The resources of this {@link BckndResourceGroupList} + * @param resources The resources of this {@link BckndResourceGroupList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGroupList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourceGroupList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroupList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGroupList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroupList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroupList} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +168,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourceGroupList bckndResourceGroupList = (BckndResourceGroupList) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupList.cloudSdkCustomFields) && - Objects.equals(this.count, bckndResourceGroupList.count) && - Objects.equals(this.resources, bckndResourceGroupList.resources); + return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupList.cloudSdkCustomFields) + && Objects.equals(this.count, bckndResourceGroupList.count) + && Objects.equals(this.resources, bckndResourceGroupList.resources); } @Override @@ -182,19 +179,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroupList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +202,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndResourceGroupList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourceGroupList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BckndResourceGroupList().count(count).resources(resources); - } + * Set the count of this {@link BckndResourceGroupList} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndResourceGroupList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndResourceGroupList} instance. - * - * @param count Number of the resource instances in the list - * @return The BckndResourceGroupList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BckndResourceGroupList} instance. + * + * @param resources The resources of this {@link BckndResourceGroupList} + * @return The BckndResourceGroupList instance. + */ + BckndResourceGroupList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BckndResourceGroupList} instance. - * - * @param resources The resources of this {@link BckndResourceGroupList} - * @return The BckndResourceGroupList instance. - */ - BckndResourceGroupList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BckndResourceGroupList} instance. - * - * @param resources The resources of this {@link BckndResourceGroupList} - * @return The BckndResourceGroupList instance. - */ - default BckndResourceGroupList resources( @Nonnull final BckndResourceGroup... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BckndResourceGroupList} instance. + * + * @param resources The resources of this {@link BckndResourceGroupList} + * @return The BckndResourceGroupList instance. + */ + default BckndResourceGroupList resources(@Nonnull final BckndResourceGroup... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java index 6223031d..b430c7bd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupPatchRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,56 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndResourceGroupLabel; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroupPatchRequest - */ +/** BckndResourceGroupPatchRequest */ // CHECKSTYLE:OFF -public class BckndResourceGroupPatchRequest +public class BckndResourceGroupPatchRequest // CHECKSTYLE:ON { @JsonProperty("labels") private List labels = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroupPatchRequest() { } - - /** - * Set the labels of this {@link BckndResourceGroupPatchRequest} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link BckndResourceGroupPatchRequest} class - */ - @Nonnull public BckndResourceGroupPatchRequest labels(@Nonnull final List labels) { + + protected BckndResourceGroupPatchRequest() {} + + /** + * Set the labels of this {@link BckndResourceGroupPatchRequest} instance and return the same + * instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link BckndResourceGroupPatchRequest} class + */ + @Nonnull + public BckndResourceGroupPatchRequest labels( + @Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link BckndResourceGroupPatchRequest}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link BckndResourceGroupPatchRequest} */ - @Nonnull public BckndResourceGroupPatchRequest addLabelsItem( @Nonnull final BckndResourceGroupLabel labelsItem) { + @Nonnull + public BckndResourceGroupPatchRequest addLabelsItem( + @Nonnull final BckndResourceGroupLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -77,25 +69,28 @@ protected BckndResourceGroupPatchRequest() { } return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link BckndResourceGroupPatchRequest} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link BckndResourceGroupPatchRequest} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link BckndResourceGroupPatchRequest} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGroupPatchRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -105,32 +100,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndResourceGroupPatchRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndResourceGroupPatchRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroupPatchRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGroupPatchRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroupPatchRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroupPatchRequest} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -139,9 +137,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest = (BckndResourceGroupPatchRequest) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupPatchRequest.cloudSdkCustomFields) && - Objects.equals(this.labels, bckndResourceGroupPatchRequest.labels); + final BckndResourceGroupPatchRequest bckndResourceGroupPatchRequest = + (BckndResourceGroupPatchRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndResourceGroupPatchRequest.cloudSdkCustomFields) + && Objects.equals(this.labels, bckndResourceGroupPatchRequest.labels); } @Override @@ -150,18 +150,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroupPatchRequest {\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +172,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndResourceGroupPatchRequest} instance. No arguments are required. - */ - public static BckndResourceGroupPatchRequest create() { - return new BckndResourceGroupPatchRequest(); - } - + /** Create a new {@link BckndResourceGroupPatchRequest} instance. No arguments are required. */ + public static BckndResourceGroupPatchRequest create() { + return new BckndResourceGroupPatchRequest(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java index 1a6f5e39..fea46963 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourceGroupsPostRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndResourceGroupLabel; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourceGroupsPostRequest - */ +/** BckndResourceGroupsPostRequest */ // CHECKSTYLE:OFF -public class BckndResourceGroupsPostRequest +public class BckndResourceGroupsPostRequest // CHECKSTYLE:ON { @JsonProperty("resourceGroupId") @@ -52,55 +37,67 @@ public class BckndResourceGroupsPostRequest @JsonProperty("labels") private List labels = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourceGroupsPostRequest() { } - - /** - * Set the resourceGroupId of this {@link BckndResourceGroupsPostRequest} instance and return the same instance. - * - * @param resourceGroupId resource group id - * @return The same instance of this {@link BckndResourceGroupsPostRequest} class - */ - @Nonnull public BckndResourceGroupsPostRequest resourceGroupId(@Nonnull final String resourceGroupId) { + + protected BckndResourceGroupsPostRequest() {} + + /** + * Set the resourceGroupId of this {@link BckndResourceGroupsPostRequest} instance and return the + * same instance. + * + * @param resourceGroupId resource group id + * @return The same instance of this {@link BckndResourceGroupsPostRequest} class + */ + @Nonnull + public BckndResourceGroupsPostRequest resourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } - /** - * resource group id - * @return resourceGroupId The resourceGroupId of this {@link BckndResourceGroupsPostRequest} instance. - */ - @Nonnull public String getResourceGroupId() { + /** + * resource group id + * + * @return resourceGroupId The resourceGroupId of this {@link BckndResourceGroupsPostRequest} + * instance. + */ + @Nonnull + public String getResourceGroupId() { return resourceGroupId; } /** * Set the resourceGroupId of this {@link BckndResourceGroupsPostRequest} instance. * - * @param resourceGroupId resource group id + * @param resourceGroupId resource group id */ - public void setResourceGroupId( @Nonnull final String resourceGroupId) { + public void setResourceGroupId(@Nonnull final String resourceGroupId) { this.resourceGroupId = resourceGroupId; } - /** - * Set the labels of this {@link BckndResourceGroupsPostRequest} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link BckndResourceGroupsPostRequest} class - */ - @Nonnull public BckndResourceGroupsPostRequest labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link BckndResourceGroupsPostRequest} instance and return the same + * instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link BckndResourceGroupsPostRequest} class + */ + @Nonnull + public BckndResourceGroupsPostRequest labels( + @Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link BckndResourceGroupsPostRequest}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link BckndResourceGroupsPostRequest} */ - @Nonnull public BckndResourceGroupsPostRequest addLabelsItem( @Nonnull final BckndResourceGroupLabel labelsItem) { + @Nonnull + public BckndResourceGroupsPostRequest addLabelsItem( + @Nonnull final BckndResourceGroupLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -108,25 +105,28 @@ public void setResourceGroupId( @Nonnull final String resourceGroupId) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link BckndResourceGroupsPostRequest} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link BckndResourceGroupsPostRequest} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link BckndResourceGroupsPostRequest} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } /** * Get the names of the unrecognizable properties of the {@link BckndResourceGroupsPostRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -136,32 +136,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndResourceGroupsPostRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndResourceGroupsPostRequest} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourceGroupsPostRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourceGroupsPostRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourceGroupsPostRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourceGroupsPostRequest} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -170,10 +173,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest = (BckndResourceGroupsPostRequest) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourceGroupsPostRequest.cloudSdkCustomFields) && - Objects.equals(this.resourceGroupId, bckndResourceGroupsPostRequest.resourceGroupId) && - Objects.equals(this.labels, bckndResourceGroupsPostRequest.labels); + final BckndResourceGroupsPostRequest bckndResourceGroupsPostRequest = + (BckndResourceGroupsPostRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndResourceGroupsPostRequest.cloudSdkCustomFields) + && Objects.equals(this.resourceGroupId, bckndResourceGroupsPostRequest.resourceGroupId) + && Objects.equals(this.labels, bckndResourceGroupsPostRequest.labels); } @Override @@ -182,19 +187,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourceGroupsPostRequest {\n"); sb.append(" resourceGroupId: ").append(toIndentedString(resourceGroupId)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,12 +210,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndResourceGroupsPostRequest} instance. No arguments are required. - */ - public static BckndResourceGroupsPostRequest create() { - return new BckndResourceGroupsPostRequest(); - } - + /** Create a new {@link BckndResourceGroupsPostRequest} instance. No arguments are required. */ + public static BckndResourceGroupsPostRequest create() { + return new BckndResourceGroupsPostRequest(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java index 64f255f5..5add408e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchBody.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,57 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndResourcePatchNodes; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourcePatchBody - */ +/** BckndResourcePatchBody */ // CHECKSTYLE:OFF -public class BckndResourcePatchBody +public class BckndResourcePatchBody // CHECKSTYLE:ON { @JsonProperty("resourcePlans") private List resourcePlans = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourcePatchBody() { } - - /** - * Set the resourcePlans of this {@link BckndResourcePatchBody} instance and return the same instance. - * - * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} - * @return The same instance of this {@link BckndResourcePatchBody} class - */ - @Nonnull public BckndResourcePatchBody resourcePlans(@Nonnull final List resourcePlans) { + + protected BckndResourcePatchBody() {} + + /** + * Set the resourcePlans of this {@link BckndResourcePatchBody} instance and return the same + * instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} + * @return The same instance of this {@link BckndResourcePatchBody} class + */ + @Nonnull + public BckndResourcePatchBody resourcePlans( + @Nonnull final List resourcePlans) { this.resourcePlans = resourcePlans; return this; } + /** * Add one resourcePlans instance to this {@link BckndResourcePatchBody}. + * * @param resourcePlansItem The resourcePlans that should be added * @return The same instance of type {@link BckndResourcePatchBody} */ - @Nonnull public BckndResourcePatchBody addResourcePlansItem( @Nonnull final BckndResourcePatchNodes resourcePlansItem) { + @Nonnull + public BckndResourcePatchBody addResourcePlansItem( + @Nonnull final BckndResourcePatchNodes resourcePlansItem) { if (this.resourcePlans == null) { this.resourcePlans = new ArrayList<>(); } @@ -77,25 +70,28 @@ protected BckndResourcePatchBody() { } return this; } - /** - * Get resourcePlans - * @return resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} instance. - */ - @Nonnull public List getResourcePlans() { + /** + * Get resourcePlans + * + * @return resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} instance. + */ + @Nonnull + public List getResourcePlans() { return resourcePlans; } /** * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. * - * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} + * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} */ - public void setResourcePlans( @Nonnull final List resourcePlans) { + public void setResourcePlans(@Nonnull final List resourcePlans) { this.resourcePlans = resourcePlans; } /** * Get the names of the unrecognizable properties of the {@link BckndResourcePatchBody}. + * * @return The set of properties names */ @JsonIgnore @@ -106,31 +102,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourcePatchBody} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourcePatchBody has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourcePatchBody has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourcePatchBody} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourcePatchBody} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -140,8 +137,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourcePatchBody bckndResourcePatchBody = (BckndResourcePatchBody) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourcePatchBody.cloudSdkCustomFields) && - Objects.equals(this.resourcePlans, bckndResourcePatchBody.resourcePlans); + return Objects.equals(this.cloudSdkCustomFields, bckndResourcePatchBody.cloudSdkCustomFields) + && Objects.equals(this.resourcePlans, bckndResourcePatchBody.resourcePlans); } @Override @@ -150,18 +147,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourcePatchBody {\n"); sb.append(" resourcePlans: ").append(toIndentedString(resourcePlans)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,33 +169,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchBody} + * instance with all required arguments. + */ + public static Builder create() { + return (resourcePlans) -> new BckndResourcePatchBody().resourcePlans(resourcePlans); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchBody} instance with all required arguments. - */ - public static Builder create() { - return (resourcePlans) -> new BckndResourcePatchBody().resourcePlans(resourcePlans); - } + * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} + * @return The BckndResourcePatchBody instance. + */ + BckndResourcePatchBody resourcePlans( + @Nonnull final List resourcePlans); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. - * - * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} - * @return The BckndResourcePatchBody instance. - */ - BckndResourcePatchBody resourcePlans( @Nonnull final List resourcePlans); - /** - * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. - * - * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} - * @return The BckndResourcePatchBody instance. - */ - default BckndResourcePatchBody resourcePlans( @Nonnull final BckndResourcePatchNodes... resourcePlans) { - return resourcePlans(Arrays.asList(resourcePlans)); - } + * Set the resourcePlans of this {@link BckndResourcePatchBody} instance. + * + * @param resourcePlans The resourcePlans of this {@link BckndResourcePatchBody} + * @return The BckndResourcePatchBody instance. + */ + default BckndResourcePatchBody resourcePlans( + @Nonnull final BckndResourcePatchNodes... resourcePlans) { + return resourcePlans(Arrays.asList(resourcePlans)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java index feed6a3c..29eb90f3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchNodes.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourcePatchNodes - */ +/** BckndResourcePatchNodes */ // CHECKSTYLE:OFF -public class BckndResourcePatchNodes +public class BckndResourcePatchNodes // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,69 +35,76 @@ public class BckndResourcePatchNodes @JsonProperty("request") private Integer request; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourcePatchNodes() { } - - /** - * Set the name of this {@link BckndResourcePatchNodes} instance and return the same instance. - * - * @param name The name of this {@link BckndResourcePatchNodes} - * @return The same instance of this {@link BckndResourcePatchNodes} class - */ - @Nonnull public BckndResourcePatchNodes name(@Nonnull final String name) { + + protected BckndResourcePatchNodes() {} + + /** + * Set the name of this {@link BckndResourcePatchNodes} instance and return the same instance. + * + * @param name The name of this {@link BckndResourcePatchNodes} + * @return The same instance of this {@link BckndResourcePatchNodes} class + */ + @Nonnull + public BckndResourcePatchNodes name(@Nonnull final String name) { this.name = name; return this; } - /** - * Get name - * @return name The name of this {@link BckndResourcePatchNodes} instance. - */ - @Nonnull public String getName() { + /** + * Get name + * + * @return name The name of this {@link BckndResourcePatchNodes} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndResourcePatchNodes} instance. * - * @param name The name of this {@link BckndResourcePatchNodes} + * @param name The name of this {@link BckndResourcePatchNodes} */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the request of this {@link BckndResourcePatchNodes} instance and return the same instance. - * - * @param request The request of this {@link BckndResourcePatchNodes} - * @return The same instance of this {@link BckndResourcePatchNodes} class - */ - @Nonnull public BckndResourcePatchNodes request(@Nonnull final Integer request) { + /** + * Set the request of this {@link BckndResourcePatchNodes} instance and return the same instance. + * + * @param request The request of this {@link BckndResourcePatchNodes} + * @return The same instance of this {@link BckndResourcePatchNodes} class + */ + @Nonnull + public BckndResourcePatchNodes request(@Nonnull final Integer request) { this.request = request; return this; } - /** - * Get request - * @return request The request of this {@link BckndResourcePatchNodes} instance. - */ - @Nonnull public Integer getRequest() { + /** + * Get request + * + * @return request The request of this {@link BckndResourcePatchNodes} instance. + */ + @Nonnull + public Integer getRequest() { return request; } /** * Set the request of this {@link BckndResourcePatchNodes} instance. * - * @param request The request of this {@link BckndResourcePatchNodes} + * @param request The request of this {@link BckndResourcePatchNodes} */ - public void setRequest( @Nonnull final Integer request) { + public void setRequest(@Nonnull final Integer request) { this.request = request; } /** * Get the names of the unrecognizable properties of the {@link BckndResourcePatchNodes}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndResourcePatchNodes} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourcePatchNodes has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourcePatchNodes has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourcePatchNodes} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourcePatchNodes} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourcePatchNodes bckndResourcePatchNodes = (BckndResourcePatchNodes) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourcePatchNodes.cloudSdkCustomFields) && - Objects.equals(this.name, bckndResourcePatchNodes.name) && - Objects.equals(this.request, bckndResourcePatchNodes.request); + return Objects.equals(this.cloudSdkCustomFields, bckndResourcePatchNodes.cloudSdkCustomFields) + && Objects.equals(this.name, bckndResourcePatchNodes.name) + && Objects.equals(this.request, bckndResourcePatchNodes.request); } @Override @@ -166,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourcePatchNodes {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +184,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndResourcePatchNodes} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (request) -> new BckndResourcePatchNodes().name(name).request(request); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchNodes} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (request) -> new BckndResourcePatchNodes().name(name).request(request); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link BckndResourcePatchNodes} instance. - * - * @param name The name of this {@link BckndResourcePatchNodes} - * @return The BckndResourcePatchNodes builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the request of this {@link BckndResourcePatchNodes} instance. - * - * @param request The request of this {@link BckndResourcePatchNodes} - * @return The BckndResourcePatchNodes instance. - */ - BckndResourcePatchNodes request( @Nonnull final Integer request); - } + * Set the name of this {@link BckndResourcePatchNodes} instance. + * + * @param name The name of this {@link BckndResourcePatchNodes} + * @return The BckndResourcePatchNodes builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the request of this {@link BckndResourcePatchNodes} instance. + * + * @param request The request of this {@link BckndResourcePatchNodes} + * @return The BckndResourcePatchNodes instance. + */ + BckndResourcePatchNodes request(@Nonnull final Integer request); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java index 12170f2e..02e89932 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndResourcePatchResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,66 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndResourcePatchResponse - */ +/** BckndResourcePatchResponse */ // CHECKSTYLE:OFF -public class BckndResourcePatchResponse +public class BckndResourcePatchResponse // CHECKSTYLE:ON { @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndResourcePatchResponse() { } - - /** - * Set the message of this {@link BckndResourcePatchResponse} instance and return the same instance. - * - * @param message The message of this {@link BckndResourcePatchResponse} - * @return The same instance of this {@link BckndResourcePatchResponse} class - */ - @Nonnull public BckndResourcePatchResponse message(@Nonnull final String message) { + + protected BckndResourcePatchResponse() {} + + /** + * Set the message of this {@link BckndResourcePatchResponse} instance and return the same + * instance. + * + * @param message The message of this {@link BckndResourcePatchResponse} + * @return The same instance of this {@link BckndResourcePatchResponse} class + */ + @Nonnull + public BckndResourcePatchResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Get message - * @return message The message of this {@link BckndResourcePatchResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Get message + * + * @return message The message of this {@link BckndResourcePatchResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndResourcePatchResponse} instance. * - * @param message The message of this {@link BckndResourcePatchResponse} + * @param message The message of this {@link BckndResourcePatchResponse} */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link BckndResourcePatchResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +81,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndResourcePatchResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndResourcePatchResponse} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndResourcePatchResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndResourcePatchResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndResourcePatchResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndResourcePatchResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +118,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndResourcePatchResponse bckndResourcePatchResponse = (BckndResourcePatchResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndResourcePatchResponse.cloudSdkCustomFields) && - Objects.equals(this.message, bckndResourcePatchResponse.message); + return Objects.equals( + this.cloudSdkCustomFields, bckndResourcePatchResponse.cloudSdkCustomFields) + && Objects.equals(this.message, bckndResourcePatchResponse.message); } @Override @@ -134,18 +129,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndResourcePatchResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,24 +151,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndResourcePatchResponse} instance with all required arguments. - */ - public static Builder create() { - return (message) -> new BckndResourcePatchResponse().message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the message of this {@link BckndResourcePatchResponse} instance. - * - * @param message The message of this {@link BckndResourcePatchResponse} - * @return The BckndResourcePatchResponse instance. - */ - BckndResourcePatchResponse message( @Nonnull final String message); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndResourcePatchResponse} instance with all required arguments. + */ + public static Builder create() { + return (message) -> new BckndResourcePatchResponse().message(message); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the message of this {@link BckndResourcePatchResponse} instance. + * + * @param message The message of this {@link BckndResourcePatchResponse} + * @return The BckndResourcePatchResponse instance. + */ + BckndResourcePatchResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java index 5e06aad3..95d6bd2d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndService.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndService - */ +/** BckndService */ // CHECKSTYLE:OFF -public class BckndService +public class BckndService // CHECKSTYLE:ON { @JsonProperty("name") @@ -51,28 +40,18 @@ public class BckndService @JsonProperty("url") private String url; - /** - * aggregated status of the service - */ + /** aggregated status of the service */ public enum StatusEnum { - /** - * The PROVISIONED option of this BckndService - */ + /** The PROVISIONED option of this BckndService */ PROVISIONED("PROVISIONED"), - - /** - * The ERROR option of this BckndService - */ + + /** The ERROR option of this BckndService */ ERROR("ERROR"), - - /** - * The PROVISIONING option of this BckndService - */ + + /** The PROVISIONING option of this BckndService */ PROVISIONING("PROVISIONING"), - - /** - * The DEPROVISIONING option of this BckndService - */ + + /** The DEPROVISIONING option of this BckndService */ DEPROVISIONING("DEPROVISIONING"); private String value; @@ -82,30 +61,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndService - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndService + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -121,153 +106,169 @@ public enum StatusEnum { @JsonProperty("statusMessage") private String statusMessage; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndService() { } - - /** - * Set the name of this {@link BckndService} instance and return the same instance. - * - * @param name service name - * @return The same instance of this {@link BckndService} class - */ - @Nonnull public BckndService name(@Nonnull final String name) { + + protected BckndService() {} + + /** + * Set the name of this {@link BckndService} instance and return the same instance. + * + * @param name service name + * @return The same instance of this {@link BckndService} class + */ + @Nonnull + public BckndService name(@Nonnull final String name) { this.name = name; return this; } - /** - * service name - * @return name The name of this {@link BckndService} instance. - */ - @Nonnull public String getName() { + /** + * service name + * + * @return name The name of this {@link BckndService} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndService} instance. * - * @param name service name + * @param name service name */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link BckndService} instance and return the same instance. - * - * @param description service description - * @return The same instance of this {@link BckndService} class - */ - @Nonnull public BckndService description(@Nonnull final String description) { + /** + * Set the description of this {@link BckndService} instance and return the same instance. + * + * @param description service description + * @return The same instance of this {@link BckndService} class + */ + @Nonnull + public BckndService description(@Nonnull final String description) { this.description = description; return this; } - /** - * service description - * @return description The description of this {@link BckndService} instance. - */ - @Nonnull public String getDescription() { + /** + * service description + * + * @return description The description of this {@link BckndService} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link BckndService} instance. * - * @param description service description + * @param description service description */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the url of this {@link BckndService} instance and return the same instance. - * - * @param url service broker url - * @return The same instance of this {@link BckndService} class - */ - @Nonnull public BckndService url(@Nonnull final String url) { + /** + * Set the url of this {@link BckndService} instance and return the same instance. + * + * @param url service broker url + * @return The same instance of this {@link BckndService} class + */ + @Nonnull + public BckndService url(@Nonnull final String url) { this.url = url; return this; } - /** - * service broker url - * @return url The url of this {@link BckndService} instance. - */ - @Nonnull public String getUrl() { + /** + * service broker url + * + * @return url The url of this {@link BckndService} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link BckndService} instance. * - * @param url service broker url + * @param url service broker url */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the status of this {@link BckndService} instance and return the same instance. - * - * @param status aggregated status of the service - * @return The same instance of this {@link BckndService} class - */ - @Nonnull public BckndService status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link BckndService} instance and return the same instance. + * + * @param status aggregated status of the service + * @return The same instance of this {@link BckndService} class + */ + @Nonnull + public BckndService status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * aggregated status of the service - * @return status The status of this {@link BckndService} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * aggregated status of the service + * + * @return status The status of this {@link BckndService} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link BckndService} instance. * - * @param status aggregated status of the service + * @param status aggregated status of the service */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } - /** - * Set the statusMessage of this {@link BckndService} instance and return the same instance. - * - * @param statusMessage status message - * @return The same instance of this {@link BckndService} class - */ - @Nonnull public BckndService statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link BckndService} instance and return the same instance. + * + * @param statusMessage status message + * @return The same instance of this {@link BckndService} class + */ + @Nonnull + public BckndService statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * status message - * @return statusMessage The statusMessage of this {@link BckndService} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * status message + * + * @return statusMessage The statusMessage of this {@link BckndService} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link BckndService} instance. * - * @param statusMessage status message + * @param statusMessage status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } /** * Get the names of the unrecognizable properties of the {@link BckndService}. + * * @return The set of properties names */ @JsonIgnore @@ -278,31 +279,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndService} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndService has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndService has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndService} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndService} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -312,12 +313,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndService bckndService = (BckndService) o; - return Objects.equals(this.cloudSdkCustomFields, bckndService.cloudSdkCustomFields) && - Objects.equals(this.name, bckndService.name) && - Objects.equals(this.description, bckndService.description) && - Objects.equals(this.url, bckndService.url) && - Objects.equals(this.status, bckndService.status) && - Objects.equals(this.statusMessage, bckndService.statusMessage); + return Objects.equals(this.cloudSdkCustomFields, bckndService.cloudSdkCustomFields) + && Objects.equals(this.name, bckndService.name) + && Objects.equals(this.description, bckndService.description) + && Objects.equals(this.url, bckndService.url) + && Objects.equals(this.status, bckndService.status) + && Objects.equals(this.statusMessage, bckndService.statusMessage); } @Override @@ -326,7 +327,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndService {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -334,14 +336,15 @@ public int hashCode() { sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -350,12 +353,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndService} instance. No arguments are required. - */ - public static BckndService create() { - return new BckndService(); - } - + /** Create a new {@link BckndService} instance. No arguments are required. */ + public static BckndService create() { + return new BckndService(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java index f836cc29..4e0527cd 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceBrokerSecret.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceBrokerSecret - */ +/** BckndServiceBrokerSecret */ // CHECKSTYLE:OFF -public class BckndServiceBrokerSecret +public class BckndServiceBrokerSecret // CHECKSTYLE:ON { @JsonProperty("name") @@ -51,97 +38,109 @@ public class BckndServiceBrokerSecret @JsonProperty("usernameKeyRef") private String usernameKeyRef; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceBrokerSecret() { } - - /** - * Set the name of this {@link BckndServiceBrokerSecret} instance and return the same instance. - * - * @param name broker secret name - * @return The same instance of this {@link BckndServiceBrokerSecret} class - */ - @Nonnull public BckndServiceBrokerSecret name(@Nonnull final String name) { + + protected BckndServiceBrokerSecret() {} + + /** + * Set the name of this {@link BckndServiceBrokerSecret} instance and return the same instance. + * + * @param name broker secret name + * @return The same instance of this {@link BckndServiceBrokerSecret} class + */ + @Nonnull + public BckndServiceBrokerSecret name(@Nonnull final String name) { this.name = name; return this; } - /** - * broker secret name - * @return name The name of this {@link BckndServiceBrokerSecret} instance. - */ - @Nonnull public String getName() { + /** + * broker secret name + * + * @return name The name of this {@link BckndServiceBrokerSecret} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndServiceBrokerSecret} instance. * - * @param name broker secret name + * @param name broker secret name */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the passwordKeyRef of this {@link BckndServiceBrokerSecret} instance and return the same instance. - * - * @param passwordKeyRef username key reference in broker secret - * @return The same instance of this {@link BckndServiceBrokerSecret} class - */ - @Nonnull public BckndServiceBrokerSecret passwordKeyRef(@Nonnull final String passwordKeyRef) { + /** + * Set the passwordKeyRef of this {@link BckndServiceBrokerSecret} instance and return the same + * instance. + * + * @param passwordKeyRef username key reference in broker secret + * @return The same instance of this {@link BckndServiceBrokerSecret} class + */ + @Nonnull + public BckndServiceBrokerSecret passwordKeyRef(@Nonnull final String passwordKeyRef) { this.passwordKeyRef = passwordKeyRef; return this; } - /** - * username key reference in broker secret - * @return passwordKeyRef The passwordKeyRef of this {@link BckndServiceBrokerSecret} instance. - */ - @Nonnull public String getPasswordKeyRef() { + /** + * username key reference in broker secret + * + * @return passwordKeyRef The passwordKeyRef of this {@link BckndServiceBrokerSecret} instance. + */ + @Nonnull + public String getPasswordKeyRef() { return passwordKeyRef; } /** * Set the passwordKeyRef of this {@link BckndServiceBrokerSecret} instance. * - * @param passwordKeyRef username key reference in broker secret + * @param passwordKeyRef username key reference in broker secret */ - public void setPasswordKeyRef( @Nonnull final String passwordKeyRef) { + public void setPasswordKeyRef(@Nonnull final String passwordKeyRef) { this.passwordKeyRef = passwordKeyRef; } - /** - * Set the usernameKeyRef of this {@link BckndServiceBrokerSecret} instance and return the same instance. - * - * @param usernameKeyRef password key reference in broker secret - * @return The same instance of this {@link BckndServiceBrokerSecret} class - */ - @Nonnull public BckndServiceBrokerSecret usernameKeyRef(@Nonnull final String usernameKeyRef) { + /** + * Set the usernameKeyRef of this {@link BckndServiceBrokerSecret} instance and return the same + * instance. + * + * @param usernameKeyRef password key reference in broker secret + * @return The same instance of this {@link BckndServiceBrokerSecret} class + */ + @Nonnull + public BckndServiceBrokerSecret usernameKeyRef(@Nonnull final String usernameKeyRef) { this.usernameKeyRef = usernameKeyRef; return this; } - /** - * password key reference in broker secret - * @return usernameKeyRef The usernameKeyRef of this {@link BckndServiceBrokerSecret} instance. - */ - @Nonnull public String getUsernameKeyRef() { + /** + * password key reference in broker secret + * + * @return usernameKeyRef The usernameKeyRef of this {@link BckndServiceBrokerSecret} instance. + */ + @Nonnull + public String getUsernameKeyRef() { return usernameKeyRef; } /** * Set the usernameKeyRef of this {@link BckndServiceBrokerSecret} instance. * - * @param usernameKeyRef password key reference in broker secret + * @param usernameKeyRef password key reference in broker secret */ - public void setUsernameKeyRef( @Nonnull final String usernameKeyRef) { + public void setUsernameKeyRef(@Nonnull final String usernameKeyRef) { this.usernameKeyRef = usernameKeyRef; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceBrokerSecret}. + * * @return The set of properties names */ @JsonIgnore @@ -152,31 +151,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndServiceBrokerSecret} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceBrokerSecret has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceBrokerSecret has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceBrokerSecret} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceBrokerSecret} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +186,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndServiceBrokerSecret bckndServiceBrokerSecret = (BckndServiceBrokerSecret) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceBrokerSecret.cloudSdkCustomFields) && - Objects.equals(this.name, bckndServiceBrokerSecret.name) && - Objects.equals(this.passwordKeyRef, bckndServiceBrokerSecret.passwordKeyRef) && - Objects.equals(this.usernameKeyRef, bckndServiceBrokerSecret.usernameKeyRef); + return Objects.equals(this.cloudSdkCustomFields, bckndServiceBrokerSecret.cloudSdkCustomFields) + && Objects.equals(this.name, bckndServiceBrokerSecret.name) + && Objects.equals(this.passwordKeyRef, bckndServiceBrokerSecret.passwordKeyRef) + && Objects.equals(this.usernameKeyRef, bckndServiceBrokerSecret.usernameKeyRef); } @Override @@ -198,20 +198,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceBrokerSecret {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" passwordKeyRef: ").append(toIndentedString(passwordKeyRef)).append("\n"); sb.append(" usernameKeyRef: ").append(toIndentedString(usernameKeyRef)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,12 +222,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceBrokerSecret} instance. No arguments are required. - */ - public static BckndServiceBrokerSecret create() { - return new BckndServiceBrokerSecret(); - } - + /** Create a new {@link BckndServiceBrokerSecret} instance. No arguments are required. */ + public static BckndServiceBrokerSecret create() { + return new BckndServiceBrokerSecret(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java index 99a6f107..849f13bf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilities.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceCapabilitiesBasic; -import com.sap.ai.sdk.core.client.model.BckndServiceCapabilitiesLogs; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceCapabilities - */ +/** BckndServiceCapabilities */ // CHECKSTYLE:OFF -public class BckndServiceCapabilities +public class BckndServiceCapabilities // CHECKSTYLE:ON { @JsonProperty("logs") @@ -50,69 +35,76 @@ public class BckndServiceCapabilities @JsonProperty("basic") private BckndServiceCapabilitiesBasic basic; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceCapabilities() { } - - /** - * Set the logs of this {@link BckndServiceCapabilities} instance and return the same instance. - * - * @param logs The logs of this {@link BckndServiceCapabilities} - * @return The same instance of this {@link BckndServiceCapabilities} class - */ - @Nonnull public BckndServiceCapabilities logs(@Nonnull final BckndServiceCapabilitiesLogs logs) { + + protected BckndServiceCapabilities() {} + + /** + * Set the logs of this {@link BckndServiceCapabilities} instance and return the same instance. + * + * @param logs The logs of this {@link BckndServiceCapabilities} + * @return The same instance of this {@link BckndServiceCapabilities} class + */ + @Nonnull + public BckndServiceCapabilities logs(@Nonnull final BckndServiceCapabilitiesLogs logs) { this.logs = logs; return this; } - /** - * Get logs - * @return logs The logs of this {@link BckndServiceCapabilities} instance. - */ - @Nonnull public BckndServiceCapabilitiesLogs getLogs() { + /** + * Get logs + * + * @return logs The logs of this {@link BckndServiceCapabilities} instance. + */ + @Nonnull + public BckndServiceCapabilitiesLogs getLogs() { return logs; } /** * Set the logs of this {@link BckndServiceCapabilities} instance. * - * @param logs The logs of this {@link BckndServiceCapabilities} + * @param logs The logs of this {@link BckndServiceCapabilities} */ - public void setLogs( @Nonnull final BckndServiceCapabilitiesLogs logs) { + public void setLogs(@Nonnull final BckndServiceCapabilitiesLogs logs) { this.logs = logs; } - /** - * Set the basic of this {@link BckndServiceCapabilities} instance and return the same instance. - * - * @param basic The basic of this {@link BckndServiceCapabilities} - * @return The same instance of this {@link BckndServiceCapabilities} class - */ - @Nonnull public BckndServiceCapabilities basic(@Nonnull final BckndServiceCapabilitiesBasic basic) { + /** + * Set the basic of this {@link BckndServiceCapabilities} instance and return the same instance. + * + * @param basic The basic of this {@link BckndServiceCapabilities} + * @return The same instance of this {@link BckndServiceCapabilities} class + */ + @Nonnull + public BckndServiceCapabilities basic(@Nonnull final BckndServiceCapabilitiesBasic basic) { this.basic = basic; return this; } - /** - * Get basic - * @return basic The basic of this {@link BckndServiceCapabilities} instance. - */ - @Nonnull public BckndServiceCapabilitiesBasic getBasic() { + /** + * Get basic + * + * @return basic The basic of this {@link BckndServiceCapabilities} instance. + */ + @Nonnull + public BckndServiceCapabilitiesBasic getBasic() { return basic; } /** * Set the basic of this {@link BckndServiceCapabilities} instance. * - * @param basic The basic of this {@link BckndServiceCapabilities} + * @param basic The basic of this {@link BckndServiceCapabilities} */ - public void setBasic( @Nonnull final BckndServiceCapabilitiesBasic basic) { + public void setBasic(@Nonnull final BckndServiceCapabilitiesBasic basic) { this.basic = basic; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceCapabilities}. + * * @return The set of properties names */ @JsonIgnore @@ -123,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndServiceCapabilities} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceCapabilities has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceCapabilities has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceCapabilities} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceCapabilities} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -157,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndServiceCapabilities bckndServiceCapabilities = (BckndServiceCapabilities) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceCapabilities.cloudSdkCustomFields) && - Objects.equals(this.logs, bckndServiceCapabilities.logs) && - Objects.equals(this.basic, bckndServiceCapabilities.basic); + return Objects.equals(this.cloudSdkCustomFields, bckndServiceCapabilities.cloudSdkCustomFields) + && Objects.equals(this.logs, bckndServiceCapabilities.logs) + && Objects.equals(this.basic, bckndServiceCapabilities.basic); } @Override @@ -168,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceCapabilities {\n"); sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -189,12 +184,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceCapabilities} instance. No arguments are required. - */ - public static BckndServiceCapabilities create() { - return new BckndServiceCapabilities(); - } - + /** Create a new {@link BckndServiceCapabilities} instance. No arguments are required. */ + public static BckndServiceCapabilities create() { + return new BckndServiceCapabilities(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java index e8637e23..8becf517 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesBasic.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Basic capabilities like creating deployments and executions. - */ +/** Basic capabilities like creating deployments and executions. */ // CHECKSTYLE:OFF -public class BckndServiceCapabilitiesBasic +public class BckndServiceCapabilitiesBasic // CHECKSTYLE:ON { @JsonProperty("staticDeployments") @@ -54,125 +41,159 @@ public class BckndServiceCapabilitiesBasic @JsonProperty("multitenant") private Boolean multitenant; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceCapabilitiesBasic() { } - /** - * Set the staticDeployments of this {@link BckndServiceCapabilitiesBasic} instance and return the same instance. - * - * @param staticDeployments There are static always running endpoints that can be used for inference without the need to do user deployments. - * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class - */ - @Nonnull public BckndServiceCapabilitiesBasic staticDeployments(@Nonnull final Boolean staticDeployments) { + protected BckndServiceCapabilitiesBasic() {} + + /** + * Set the staticDeployments of this {@link BckndServiceCapabilitiesBasic} instance and return the + * same instance. + * + * @param staticDeployments There are static always running endpoints that can be used for + * inference without the need to do user deployments. + * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class + */ + @Nonnull + public BckndServiceCapabilitiesBasic staticDeployments(@Nonnull final Boolean staticDeployments) { this.staticDeployments = staticDeployments; return this; } - /** - * There are static always running endpoints that can be used for inference without the need to do user deployments. - * @return staticDeployments The staticDeployments of this {@link BckndServiceCapabilitiesBasic} instance. - */ - @Nonnull public Boolean isStaticDeployments() { + /** + * There are static always running endpoints that can be used for inference without the need to do + * user deployments. + * + * @return staticDeployments The staticDeployments of this {@link BckndServiceCapabilitiesBasic} + * instance. + */ + @Nonnull + public Boolean isStaticDeployments() { return staticDeployments; } /** * Set the staticDeployments of this {@link BckndServiceCapabilitiesBasic} instance. * - * @param staticDeployments There are static always running endpoints that can be used for inference without the need to do user deployments. + * @param staticDeployments There are static always running endpoints that can be used for + * inference without the need to do user deployments. */ - public void setStaticDeployments( @Nonnull final Boolean staticDeployments) { + public void setStaticDeployments(@Nonnull final Boolean staticDeployments) { this.staticDeployments = staticDeployments; } - /** - * Set the userDeployments of this {@link BckndServiceCapabilitiesBasic} instance and return the same instance. - * - * @param userDeployments Services that only support batch inference typically neither allow listing nor creation of deployments. For these, userDeployments == false - * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class - */ - @Nonnull public BckndServiceCapabilitiesBasic userDeployments(@Nonnull final Boolean userDeployments) { + /** + * Set the userDeployments of this {@link BckndServiceCapabilitiesBasic} instance and return the + * same instance. + * + * @param userDeployments Services that only support batch inference typically neither allow + * listing nor creation of deployments. For these, userDeployments == false + * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class + */ + @Nonnull + public BckndServiceCapabilitiesBasic userDeployments(@Nonnull final Boolean userDeployments) { this.userDeployments = userDeployments; return this; } - /** - * Services that only support batch inference typically neither allow listing nor creation of deployments. For these, userDeployments == false - * @return userDeployments The userDeployments of this {@link BckndServiceCapabilitiesBasic} instance. - */ - @Nonnull public Boolean isUserDeployments() { + /** + * Services that only support batch inference typically neither allow listing nor creation of + * deployments. For these, userDeployments == false + * + * @return userDeployments The userDeployments of this {@link BckndServiceCapabilitiesBasic} + * instance. + */ + @Nonnull + public Boolean isUserDeployments() { return userDeployments; } /** * Set the userDeployments of this {@link BckndServiceCapabilitiesBasic} instance. * - * @param userDeployments Services that only support batch inference typically neither allow listing nor creation of deployments. For these, userDeployments == false + * @param userDeployments Services that only support batch inference typically neither allow + * listing nor creation of deployments. For these, userDeployments == false */ - public void setUserDeployments( @Nonnull final Boolean userDeployments) { + public void setUserDeployments(@Nonnull final Boolean userDeployments) { this.userDeployments = userDeployments; } - /** - * Set the createExecutions of this {@link BckndServiceCapabilitiesBasic} instance and return the same instance. - * - * @param createExecutions Services that only support deployment typically neither allow create executions. For these, createExecutions == false - * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class - */ - @Nonnull public BckndServiceCapabilitiesBasic createExecutions(@Nonnull final Boolean createExecutions) { + /** + * Set the createExecutions of this {@link BckndServiceCapabilitiesBasic} instance and return the + * same instance. + * + * @param createExecutions Services that only support deployment typically neither allow create + * executions. For these, createExecutions == false + * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class + */ + @Nonnull + public BckndServiceCapabilitiesBasic createExecutions(@Nonnull final Boolean createExecutions) { this.createExecutions = createExecutions; return this; } - /** - * Services that only support deployment typically neither allow create executions. For these, createExecutions == false - * @return createExecutions The createExecutions of this {@link BckndServiceCapabilitiesBasic} instance. - */ - @Nonnull public Boolean isCreateExecutions() { + /** + * Services that only support deployment typically neither allow create executions. For these, + * createExecutions == false + * + * @return createExecutions The createExecutions of this {@link BckndServiceCapabilitiesBasic} + * instance. + */ + @Nonnull + public Boolean isCreateExecutions() { return createExecutions; } /** * Set the createExecutions of this {@link BckndServiceCapabilitiesBasic} instance. * - * @param createExecutions Services that only support deployment typically neither allow create executions. For these, createExecutions == false + * @param createExecutions Services that only support deployment typically neither allow create + * executions. For these, createExecutions == false */ - public void setCreateExecutions( @Nonnull final Boolean createExecutions) { + public void setCreateExecutions(@Nonnull final Boolean createExecutions) { this.createExecutions = createExecutions; } - /** - * Set the multitenant of this {@link BckndServiceCapabilitiesBasic} instance and return the same instance. - * - * @param multitenant true-> AI API implementation supports resource groups (Main Tenant scenario), false-> implementation does not support resource groups (Service Tenant scenario) - * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class - */ - @Nonnull public BckndServiceCapabilitiesBasic multitenant(@Nonnull final Boolean multitenant) { + /** + * Set the multitenant of this {@link BckndServiceCapabilitiesBasic} instance and return the same + * instance. + * + * @param multitenant true-> AI API implementation supports resource groups (Main Tenant + * scenario), false-> implementation does not support resource groups (Service Tenant + * scenario) + * @return The same instance of this {@link BckndServiceCapabilitiesBasic} class + */ + @Nonnull + public BckndServiceCapabilitiesBasic multitenant(@Nonnull final Boolean multitenant) { this.multitenant = multitenant; return this; } - /** - * true-> AI API implementation supports resource groups (Main Tenant scenario), false-> implementation does not support resource groups (Service Tenant scenario) - * @return multitenant The multitenant of this {@link BckndServiceCapabilitiesBasic} instance. - */ - @Nonnull public Boolean isMultitenant() { + /** + * true-> AI API implementation supports resource groups (Main Tenant scenario), false-> + * implementation does not support resource groups (Service Tenant scenario) + * + * @return multitenant The multitenant of this {@link BckndServiceCapabilitiesBasic} instance. + */ + @Nonnull + public Boolean isMultitenant() { return multitenant; } /** * Set the multitenant of this {@link BckndServiceCapabilitiesBasic} instance. * - * @param multitenant true-> AI API implementation supports resource groups (Main Tenant scenario), false-> implementation does not support resource groups (Service Tenant scenario) + * @param multitenant true-> AI API implementation supports resource groups (Main Tenant + * scenario), false-> implementation does not support resource groups (Service Tenant + * scenario) */ - public void setMultitenant( @Nonnull final Boolean multitenant) { + public void setMultitenant(@Nonnull final Boolean multitenant) { this.multitenant = multitenant; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceCapabilitiesBasic}. + * * @return The set of properties names */ @JsonIgnore @@ -182,32 +203,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceCapabilitiesBasic} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndServiceCapabilitiesBasic} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceCapabilitiesBasic has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceCapabilitiesBasic has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceCapabilitiesBasic} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceCapabilitiesBasic} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -216,35 +240,40 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceCapabilitiesBasic bckndServiceCapabilitiesBasic = (BckndServiceCapabilitiesBasic) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceCapabilitiesBasic.cloudSdkCustomFields) && - Objects.equals(this.staticDeployments, bckndServiceCapabilitiesBasic.staticDeployments) && - Objects.equals(this.userDeployments, bckndServiceCapabilitiesBasic.userDeployments) && - Objects.equals(this.createExecutions, bckndServiceCapabilitiesBasic.createExecutions) && - Objects.equals(this.multitenant, bckndServiceCapabilitiesBasic.multitenant); + final BckndServiceCapabilitiesBasic bckndServiceCapabilitiesBasic = + (BckndServiceCapabilitiesBasic) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndServiceCapabilitiesBasic.cloudSdkCustomFields) + && Objects.equals(this.staticDeployments, bckndServiceCapabilitiesBasic.staticDeployments) + && Objects.equals(this.userDeployments, bckndServiceCapabilitiesBasic.userDeployments) + && Objects.equals(this.createExecutions, bckndServiceCapabilitiesBasic.createExecutions) + && Objects.equals(this.multitenant, bckndServiceCapabilitiesBasic.multitenant); } @Override public int hashCode() { - return Objects.hash(staticDeployments, userDeployments, createExecutions, multitenant, cloudSdkCustomFields); + return Objects.hash( + staticDeployments, userDeployments, createExecutions, multitenant, cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceCapabilitiesBasic {\n"); sb.append(" staticDeployments: ").append(toIndentedString(staticDeployments)).append("\n"); sb.append(" userDeployments: ").append(toIndentedString(userDeployments)).append("\n"); sb.append(" createExecutions: ").append(toIndentedString(createExecutions)).append("\n"); sb.append(" multitenant: ").append(toIndentedString(multitenant)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -253,12 +282,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceCapabilitiesBasic} instance. No arguments are required. - */ - public static BckndServiceCapabilitiesBasic create() { - return new BckndServiceCapabilitiesBasic(); - } - + /** Create a new {@link BckndServiceCapabilitiesBasic} instance. No arguments are required. */ + public static BckndServiceCapabilitiesBasic create() { + return new BckndServiceCapabilitiesBasic(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java index e4d3f369..37114709 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceCapabilitiesLogs.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Capabilities to read logs from deployments and executions. - */ +/** Capabilities to read logs from deployments and executions. */ // CHECKSTYLE:OFF -public class BckndServiceCapabilitiesLogs +public class BckndServiceCapabilitiesLogs // CHECKSTYLE:ON { @JsonProperty("deployments") @@ -48,69 +35,78 @@ public class BckndServiceCapabilitiesLogs @JsonProperty("executions") private Boolean executions; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceCapabilitiesLogs() { } - - /** - * Set the deployments of this {@link BckndServiceCapabilitiesLogs} instance and return the same instance. - * - * @param deployments The deployments of this {@link BckndServiceCapabilitiesLogs} - * @return The same instance of this {@link BckndServiceCapabilitiesLogs} class - */ - @Nonnull public BckndServiceCapabilitiesLogs deployments(@Nonnull final Boolean deployments) { + + protected BckndServiceCapabilitiesLogs() {} + + /** + * Set the deployments of this {@link BckndServiceCapabilitiesLogs} instance and return the same + * instance. + * + * @param deployments The deployments of this {@link BckndServiceCapabilitiesLogs} + * @return The same instance of this {@link BckndServiceCapabilitiesLogs} class + */ + @Nonnull + public BckndServiceCapabilitiesLogs deployments(@Nonnull final Boolean deployments) { this.deployments = deployments; return this; } - /** - * Get deployments - * @return deployments The deployments of this {@link BckndServiceCapabilitiesLogs} instance. - */ - @Nonnull public Boolean isDeployments() { + /** + * Get deployments + * + * @return deployments The deployments of this {@link BckndServiceCapabilitiesLogs} instance. + */ + @Nonnull + public Boolean isDeployments() { return deployments; } /** * Set the deployments of this {@link BckndServiceCapabilitiesLogs} instance. * - * @param deployments The deployments of this {@link BckndServiceCapabilitiesLogs} + * @param deployments The deployments of this {@link BckndServiceCapabilitiesLogs} */ - public void setDeployments( @Nonnull final Boolean deployments) { + public void setDeployments(@Nonnull final Boolean deployments) { this.deployments = deployments; } - /** - * Set the executions of this {@link BckndServiceCapabilitiesLogs} instance and return the same instance. - * - * @param executions The executions of this {@link BckndServiceCapabilitiesLogs} - * @return The same instance of this {@link BckndServiceCapabilitiesLogs} class - */ - @Nonnull public BckndServiceCapabilitiesLogs executions(@Nonnull final Boolean executions) { + /** + * Set the executions of this {@link BckndServiceCapabilitiesLogs} instance and return the same + * instance. + * + * @param executions The executions of this {@link BckndServiceCapabilitiesLogs} + * @return The same instance of this {@link BckndServiceCapabilitiesLogs} class + */ + @Nonnull + public BckndServiceCapabilitiesLogs executions(@Nonnull final Boolean executions) { this.executions = executions; return this; } - /** - * Get executions - * @return executions The executions of this {@link BckndServiceCapabilitiesLogs} instance. - */ - @Nonnull public Boolean isExecutions() { + /** + * Get executions + * + * @return executions The executions of this {@link BckndServiceCapabilitiesLogs} instance. + */ + @Nonnull + public Boolean isExecutions() { return executions; } /** * Set the executions of this {@link BckndServiceCapabilitiesLogs} instance. * - * @param executions The executions of this {@link BckndServiceCapabilitiesLogs} + * @param executions The executions of this {@link BckndServiceCapabilitiesLogs} */ - public void setExecutions( @Nonnull final Boolean executions) { + public void setExecutions(@Nonnull final Boolean executions) { this.executions = executions; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceCapabilitiesLogs}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +116,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceCapabilitiesLogs} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndServiceCapabilitiesLogs} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceCapabilitiesLogs has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceCapabilitiesLogs has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceCapabilitiesLogs} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceCapabilitiesLogs} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +153,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceCapabilitiesLogs bckndServiceCapabilitiesLogs = (BckndServiceCapabilitiesLogs) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceCapabilitiesLogs.cloudSdkCustomFields) && - Objects.equals(this.deployments, bckndServiceCapabilitiesLogs.deployments) && - Objects.equals(this.executions, bckndServiceCapabilitiesLogs.executions); + final BckndServiceCapabilitiesLogs bckndServiceCapabilitiesLogs = + (BckndServiceCapabilitiesLogs) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndServiceCapabilitiesLogs.cloudSdkCustomFields) + && Objects.equals(this.deployments, bckndServiceCapabilitiesLogs.deployments) + && Objects.equals(this.executions, bckndServiceCapabilitiesLogs.executions); } @Override @@ -166,19 +167,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceCapabilitiesLogs {\n"); sb.append(" deployments: ").append(toIndentedString(deployments)).append("\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +190,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceCapabilitiesLogs} instance. No arguments are required. - */ - public static BckndServiceCapabilitiesLogs create() { - return new BckndServiceCapabilitiesLogs(); - } - + /** Create a new {@link BckndServiceCapabilitiesLogs} instance. No arguments are required. */ + public static BckndServiceCapabilitiesLogs create() { + return new BckndServiceCapabilitiesLogs(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java index d0db336a..c171a648 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndService; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceList - */ +/** BckndServiceList */ // CHECKSTYLE:OFF -public class BckndServiceList +public class BckndServiceList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,62 @@ public class BckndServiceList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceList() { } - - /** - * Set the count of this {@link BckndServiceList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BckndServiceList} class - */ - @Nonnull public BckndServiceList count(@Nonnull final Integer count) { + + protected BckndServiceList() {} + + /** + * Set the count of this {@link BckndServiceList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BckndServiceList} class + */ + @Nonnull + public BckndServiceList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BckndServiceList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BckndServiceList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndServiceList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BckndServiceList} instance and return the same instance. - * - * @param resources The resources of this {@link BckndServiceList} - * @return The same instance of this {@link BckndServiceList} class - */ - @Nonnull public BckndServiceList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BckndServiceList} instance and return the same instance. + * + * @param resources The resources of this {@link BckndServiceList} + * @return The same instance of this {@link BckndServiceList} class + */ + @Nonnull + public BckndServiceList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BckndServiceList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BckndServiceList} */ - @Nonnull public BckndServiceList addResourcesItem( @Nonnull final BckndService resourcesItem) { + @Nonnull + public BckndServiceList addResourcesItem(@Nonnull final BckndService resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +101,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BckndServiceList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BckndServiceList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BckndServiceList} instance. * - * @param resources The resources of this {@link BckndServiceList} + * @param resources The resources of this {@link BckndServiceList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndServiceList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndServiceList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceList} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndServiceList bckndServiceList = (BckndServiceList) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceList.cloudSdkCustomFields) && - Objects.equals(this.count, bckndServiceList.count) && - Objects.equals(this.resources, bckndServiceList.resources); + return Objects.equals(this.cloudSdkCustomFields, bckndServiceList.cloudSdkCustomFields) + && Objects.equals(this.count, bckndServiceList.count) + && Objects.equals(this.resources, bckndServiceList.resources); } @Override @@ -182,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link BckndServiceList} + * instance with all required arguments. + */ + public static Builder create() { + return (count) -> (resources) -> new BckndServiceList().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndServiceList} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BckndServiceList().count(count).resources(resources); - } + * Set the count of this {@link BckndServiceList} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndServiceList builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndServiceList} instance. - * - * @param count Number of the resource instances in the list - * @return The BckndServiceList builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BckndServiceList} instance. + * + * @param resources The resources of this {@link BckndServiceList} + * @return The BckndServiceList instance. + */ + BckndServiceList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BckndServiceList} instance. - * - * @param resources The resources of this {@link BckndServiceList} - * @return The BckndServiceList instance. - */ - BckndServiceList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BckndServiceList} instance. - * - * @param resources The resources of this {@link BckndServiceList} - * @return The BckndServiceList instance. - */ - default BckndServiceList resources( @Nonnull final BckndService... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BckndServiceList} instance. + * + * @param resources The resources of this {@link BckndServiceList} + * @return The BckndServiceList instance. + */ + default BckndServiceList resources(@Nonnull final BckndService... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java index 363c14b3..a7f689d8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceServiceCatalogItemExtendCatalog; -import com.sap.ai.sdk.core.client.model.BckndServiceServiceCatalogItemExtendCredentials; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServiceCatalogItem - */ +/** BckndServiceServiceCatalogItem */ // CHECKSTYLE:OFF -public class BckndServiceServiceCatalogItem +public class BckndServiceServiceCatalogItem // CHECKSTYLE:ON { @JsonProperty("extendCatalog") @@ -50,69 +35,84 @@ public class BckndServiceServiceCatalogItem @JsonProperty("extendCredentials") private BckndServiceServiceCatalogItemExtendCredentials extendCredentials; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServiceCatalogItem() { } - - /** - * Set the extendCatalog of this {@link BckndServiceServiceCatalogItem} instance and return the same instance. - * - * @param extendCatalog The extendCatalog of this {@link BckndServiceServiceCatalogItem} - * @return The same instance of this {@link BckndServiceServiceCatalogItem} class - */ - @Nonnull public BckndServiceServiceCatalogItem extendCatalog(@Nonnull final BckndServiceServiceCatalogItemExtendCatalog extendCatalog) { + + protected BckndServiceServiceCatalogItem() {} + + /** + * Set the extendCatalog of this {@link BckndServiceServiceCatalogItem} instance and return the + * same instance. + * + * @param extendCatalog The extendCatalog of this {@link BckndServiceServiceCatalogItem} + * @return The same instance of this {@link BckndServiceServiceCatalogItem} class + */ + @Nonnull + public BckndServiceServiceCatalogItem extendCatalog( + @Nonnull final BckndServiceServiceCatalogItemExtendCatalog extendCatalog) { this.extendCatalog = extendCatalog; return this; } - /** - * Get extendCatalog - * @return extendCatalog The extendCatalog of this {@link BckndServiceServiceCatalogItem} instance. - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog getExtendCatalog() { + /** + * Get extendCatalog + * + * @return extendCatalog The extendCatalog of this {@link BckndServiceServiceCatalogItem} + * instance. + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog getExtendCatalog() { return extendCatalog; } /** * Set the extendCatalog of this {@link BckndServiceServiceCatalogItem} instance. * - * @param extendCatalog The extendCatalog of this {@link BckndServiceServiceCatalogItem} + * @param extendCatalog The extendCatalog of this {@link BckndServiceServiceCatalogItem} */ - public void setExtendCatalog( @Nonnull final BckndServiceServiceCatalogItemExtendCatalog extendCatalog) { + public void setExtendCatalog( + @Nonnull final BckndServiceServiceCatalogItemExtendCatalog extendCatalog) { this.extendCatalog = extendCatalog; } - /** - * Set the extendCredentials of this {@link BckndServiceServiceCatalogItem} instance and return the same instance. - * - * @param extendCredentials The extendCredentials of this {@link BckndServiceServiceCatalogItem} - * @return The same instance of this {@link BckndServiceServiceCatalogItem} class - */ - @Nonnull public BckndServiceServiceCatalogItem extendCredentials(@Nonnull final BckndServiceServiceCatalogItemExtendCredentials extendCredentials) { + /** + * Set the extendCredentials of this {@link BckndServiceServiceCatalogItem} instance and return + * the same instance. + * + * @param extendCredentials The extendCredentials of this {@link BckndServiceServiceCatalogItem} + * @return The same instance of this {@link BckndServiceServiceCatalogItem} class + */ + @Nonnull + public BckndServiceServiceCatalogItem extendCredentials( + @Nonnull final BckndServiceServiceCatalogItemExtendCredentials extendCredentials) { this.extendCredentials = extendCredentials; return this; } - /** - * Get extendCredentials - * @return extendCredentials The extendCredentials of this {@link BckndServiceServiceCatalogItem} instance. - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCredentials getExtendCredentials() { + /** + * Get extendCredentials + * + * @return extendCredentials The extendCredentials of this {@link BckndServiceServiceCatalogItem} + * instance. + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCredentials getExtendCredentials() { return extendCredentials; } /** * Set the extendCredentials of this {@link BckndServiceServiceCatalogItem} instance. * - * @param extendCredentials The extendCredentials of this {@link BckndServiceServiceCatalogItem} + * @param extendCredentials The extendCredentials of this {@link BckndServiceServiceCatalogItem} */ - public void setExtendCredentials( @Nonnull final BckndServiceServiceCatalogItemExtendCredentials extendCredentials) { + public void setExtendCredentials( + @Nonnull final BckndServiceServiceCatalogItemExtendCredentials extendCredentials) { this.extendCredentials = extendCredentials; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceServiceCatalogItem}. + * * @return The set of properties names */ @JsonIgnore @@ -122,32 +122,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServiceCatalogItem} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndServiceServiceCatalogItem} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServiceCatalogItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServiceCatalogItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItem} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,10 +159,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceServiceCatalogItem bckndServiceServiceCatalogItem = (BckndServiceServiceCatalogItem) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServiceCatalogItem.cloudSdkCustomFields) && - Objects.equals(this.extendCatalog, bckndServiceServiceCatalogItem.extendCatalog) && - Objects.equals(this.extendCredentials, bckndServiceServiceCatalogItem.extendCredentials); + final BckndServiceServiceCatalogItem bckndServiceServiceCatalogItem = + (BckndServiceServiceCatalogItem) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndServiceServiceCatalogItem.cloudSdkCustomFields) + && Objects.equals(this.extendCatalog, bckndServiceServiceCatalogItem.extendCatalog) + && Objects.equals(this.extendCredentials, bckndServiceServiceCatalogItem.extendCredentials); } @Override @@ -168,19 +173,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServiceCatalogItem {\n"); sb.append(" extendCatalog: ").append(toIndentedString(extendCatalog)).append("\n"); sb.append(" extendCredentials: ").append(toIndentedString(extendCredentials)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -189,12 +196,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServiceCatalogItem} instance. No arguments are required. - */ - public static BckndServiceServiceCatalogItem create() { - return new BckndServiceServiceCatalogItem(); - } - + /** Create a new {@link BckndServiceServiceCatalogItem} instance. No arguments are required. */ + public static BckndServiceServiceCatalogItem create() { + return new BckndServiceServiceCatalogItem(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java index 15041a68..94aa8d42 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCatalog.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceServicePlanItem; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServiceCatalogItemExtendCatalog - */ +/** BckndServiceServiceCatalogItemExtendCatalog */ // CHECKSTYLE:OFF -public class BckndServiceServiceCatalogItemExtendCatalog +public class BckndServiceServiceCatalogItemExtendCatalog // CHECKSTYLE:ON { @JsonProperty("bindable") @@ -61,139 +46,165 @@ public class BckndServiceServiceCatalogItemExtendCatalog @JsonProperty("plans") private List plans = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServiceCatalogItemExtendCatalog() { } - - /** - * Set the bindable of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the same instance. - * - * @param bindable if the service is bindable - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog bindable(@Nonnull final Boolean bindable) { + + protected BckndServiceServiceCatalogItemExtendCatalog() {} + + /** + * Set the bindable of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and + * return the same instance. + * + * @param bindable if the service is bindable + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog bindable(@Nonnull final Boolean bindable) { this.bindable = bindable; return this; } - /** - * if the service is bindable - * @return bindable The bindable of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. - */ - @Nonnull public Boolean isBindable() { + /** + * if the service is bindable + * + * @return bindable The bindable of this {@link BckndServiceServiceCatalogItemExtendCatalog} + * instance. + */ + @Nonnull + public Boolean isBindable() { return bindable; } /** * Set the bindable of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. * - * @param bindable if the service is bindable + * @param bindable if the service is bindable */ - public void setBindable( @Nonnull final Boolean bindable) { + public void setBindable(@Nonnull final Boolean bindable) { this.bindable = bindable; } - /** - * Set the description of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the same instance. - * - * @param description description of the service - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog description(@Nonnull final String description) { + /** + * Set the description of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and + * return the same instance. + * + * @param description description of the service + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog description( + @Nonnull final String description) { this.description = description; return this; } - /** - * description of the service - * @return description The description of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. - */ - @Nonnull public String getDescription() { + /** + * description of the service + * + * @return description The description of this {@link BckndServiceServiceCatalogItemExtendCatalog} + * instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. * - * @param description description of the service + * @param description description of the service */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the id of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the same instance. - * - * @param id id of the service - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog id(@Nonnull final String id) { + /** + * Set the id of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the + * same instance. + * + * @param id id of the service + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog id(@Nonnull final String id) { this.id = id; return this; } - /** - * id of the service - * @return id The id of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. - */ - @Nonnull public String getId() { + /** + * id of the service + * + * @return id The id of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. * - * @param id id of the service + * @param id id of the service */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the name of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the same instance. - * - * @param name name of the service - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog name(@Nonnull final String name) { + /** + * Set the name of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return + * the same instance. + * + * @param name name of the service + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog name(@Nonnull final String name) { this.name = name; return this; } - /** - * name of the service - * @return name The name of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. - */ - @Nonnull public String getName() { + /** + * name of the service + * + * @return name The name of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. * - * @param name name of the service + * @param name name of the service */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return the same instance. - * - * @param plans The plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog plans(@Nonnull final List plans) { + /** + * Set the plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance and return + * the same instance. + * + * @param plans The plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCatalog} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog plans( + @Nonnull final List plans) { this.plans = plans; return this; } + /** * Add one plans instance to this {@link BckndServiceServiceCatalogItemExtendCatalog}. + * * @param plansItem The plans that should be added * @return The same instance of type {@link BckndServiceServiceCatalogItemExtendCatalog} */ - @Nonnull public BckndServiceServiceCatalogItemExtendCatalog addPlansItem( @Nonnull final BckndServiceServicePlanItem plansItem) { + @Nonnull + public BckndServiceServiceCatalogItemExtendCatalog addPlansItem( + @Nonnull final BckndServiceServicePlanItem plansItem) { if (this.plans == null) { this.plans = new ArrayList<>(); } @@ -201,25 +212,29 @@ public void setName( @Nonnull final String name) { return this; } - /** - * Get plans - * @return plans The plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. - */ - @Nonnull public List getPlans() { + /** + * Get plans + * + * @return plans The plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. + */ + @Nonnull + public List getPlans() { return plans; } /** * Set the plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. * - * @param plans The plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} + * @param plans The plans of this {@link BckndServiceServiceCatalogItemExtendCatalog} */ - public void setPlans( @Nonnull final List plans) { + public void setPlans(@Nonnull final List plans) { this.plans = plans; } /** - * Get the names of the unrecognizable properties of the {@link BckndServiceServiceCatalogItemExtendCatalog}. + * Get the names of the unrecognizable properties of the {@link + * BckndServiceServiceCatalogItemExtendCatalog}. + * * @return The set of properties names */ @JsonIgnore @@ -229,32 +244,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndServiceServiceCatalogItemExtendCatalog} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServiceCatalogItemExtendCatalog has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServiceCatalogItemExtendCatalog has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCatalog} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCatalog} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -263,13 +281,16 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceServiceCatalogItemExtendCatalog bckndServiceServiceCatalogItemExtendCatalog = (BckndServiceServiceCatalogItemExtendCatalog) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServiceCatalogItemExtendCatalog.cloudSdkCustomFields) && - Objects.equals(this.bindable, bckndServiceServiceCatalogItemExtendCatalog.bindable) && - Objects.equals(this.description, bckndServiceServiceCatalogItemExtendCatalog.description) && - Objects.equals(this.id, bckndServiceServiceCatalogItemExtendCatalog.id) && - Objects.equals(this.name, bckndServiceServiceCatalogItemExtendCatalog.name) && - Objects.equals(this.plans, bckndServiceServiceCatalogItemExtendCatalog.plans); + final BckndServiceServiceCatalogItemExtendCatalog bckndServiceServiceCatalogItemExtendCatalog = + (BckndServiceServiceCatalogItemExtendCatalog) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndServiceServiceCatalogItemExtendCatalog.cloudSdkCustomFields) + && Objects.equals(this.bindable, bckndServiceServiceCatalogItemExtendCatalog.bindable) + && Objects.equals(this.description, bckndServiceServiceCatalogItemExtendCatalog.description) + && Objects.equals(this.id, bckndServiceServiceCatalogItemExtendCatalog.id) + && Objects.equals(this.name, bckndServiceServiceCatalogItemExtendCatalog.name) + && Objects.equals(this.plans, bckndServiceServiceCatalogItemExtendCatalog.plans); } @Override @@ -278,7 +299,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServiceCatalogItemExtendCatalog {\n"); sb.append(" bindable: ").append(toIndentedString(bindable)).append("\n"); @@ -286,14 +308,15 @@ public int hashCode() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" plans: ").append(toIndentedString(plans)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -302,12 +325,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServiceCatalogItemExtendCatalog} instance. No arguments are required. - */ - public static BckndServiceServiceCatalogItemExtendCatalog create() { - return new BckndServiceServiceCatalogItemExtendCatalog(); - } - + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCatalog} instance. No arguments are + * required. + */ + public static BckndServiceServiceCatalogItemExtendCatalog create() { + return new BckndServiceServiceCatalogItemExtendCatalog(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java index 229e8a5d..21346dee 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentials.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,70 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceServiceCatalogItemExtendCredentialsShared; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServiceCatalogItemExtendCredentials - */ +/** BckndServiceServiceCatalogItemExtendCredentials */ // CHECKSTYLE:OFF -public class BckndServiceServiceCatalogItemExtendCredentials +public class BckndServiceServiceCatalogItemExtendCredentials // CHECKSTYLE:ON { @JsonProperty("shared") private BckndServiceServiceCatalogItemExtendCredentialsShared shared; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServiceCatalogItemExtendCredentials() { } - - /** - * Set the shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance and return the same instance. - * - * @param shared The shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCredentials} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCredentials shared(@Nonnull final BckndServiceServiceCatalogItemExtendCredentialsShared shared) { + + protected BckndServiceServiceCatalogItemExtendCredentials() {} + + /** + * Set the shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance and + * return the same instance. + * + * @param shared The shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCredentials} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCredentials shared( + @Nonnull final BckndServiceServiceCatalogItemExtendCredentialsShared shared) { this.shared = shared; return this; } - /** - * Get shared - * @return shared The shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance. - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCredentialsShared getShared() { + /** + * Get shared + * + * @return shared The shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} + * instance. + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCredentialsShared getShared() { return shared; } /** * Set the shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance. * - * @param shared The shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} + * @param shared The shared of this {@link BckndServiceServiceCatalogItemExtendCredentials} */ - public void setShared( @Nonnull final BckndServiceServiceCatalogItemExtendCredentialsShared shared) { + public void setShared( + @Nonnull final BckndServiceServiceCatalogItemExtendCredentialsShared shared) { this.shared = shared; } /** - * Get the names of the unrecognizable properties of the {@link BckndServiceServiceCatalogItemExtendCredentials}. + * Get the names of the unrecognizable properties of the {@link + * BckndServiceServiceCatalogItemExtendCredentials}. + * * @return The set of properties names */ @JsonIgnore @@ -90,32 +85,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndServiceServiceCatalogItemExtendCredentials} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServiceCatalogItemExtendCredentials has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServiceCatalogItemExtendCredentials has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentials} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentials} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,9 +122,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceServiceCatalogItemExtendCredentials bckndServiceServiceCatalogItemExtendCredentials = (BckndServiceServiceCatalogItemExtendCredentials) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServiceCatalogItemExtendCredentials.cloudSdkCustomFields) && - Objects.equals(this.shared, bckndServiceServiceCatalogItemExtendCredentials.shared); + final BckndServiceServiceCatalogItemExtendCredentials + bckndServiceServiceCatalogItemExtendCredentials = + (BckndServiceServiceCatalogItemExtendCredentials) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndServiceServiceCatalogItemExtendCredentials.cloudSdkCustomFields) + && Objects.equals(this.shared, bckndServiceServiceCatalogItemExtendCredentials.shared); } @Override @@ -135,18 +137,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServiceCatalogItemExtendCredentials {\n"); sb.append(" shared: ").append(toIndentedString(shared)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +159,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServiceCatalogItemExtendCredentials} instance. No arguments are required. - */ - public static BckndServiceServiceCatalogItemExtendCredentials create() { - return new BckndServiceServiceCatalogItemExtendCredentials(); - } - + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCredentials} instance. No arguments are + * required. + */ + public static BckndServiceServiceCatalogItemExtendCredentials create() { + return new BckndServiceServiceCatalogItemExtendCredentials(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java index d95130ab..b727e77f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsShared.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,74 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServiceCatalogItemExtendCredentialsShared - */ +/** BckndServiceServiceCatalogItemExtendCredentialsShared */ // CHECKSTYLE:OFF -public class BckndServiceServiceCatalogItemExtendCredentialsShared +public class BckndServiceServiceCatalogItemExtendCredentialsShared // CHECKSTYLE:ON { @JsonProperty("serviceUrls") private BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls serviceUrls; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServiceCatalogItemExtendCredentialsShared() { } - - /** - * Set the serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance and return the same instance. - * - * @param serviceUrls The serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCredentialsShared serviceUrls(@Nonnull final BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls serviceUrls) { + + protected BckndServiceServiceCatalogItemExtendCredentialsShared() {} + + /** + * Set the serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} + * instance and return the same instance. + * + * @param serviceUrls The serviceUrls of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsShared} + * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} + * class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCredentialsShared serviceUrls( + @Nonnull final BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls serviceUrls) { this.serviceUrls = serviceUrls; return this; } - /** - * Get serviceUrls - * @return serviceUrls The serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls getServiceUrls() { + /** + * Get serviceUrls + * + * @return serviceUrls The serviceUrls of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsShared} instance. + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls getServiceUrls() { return serviceUrls; } /** - * Set the serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. + * Set the serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} + * instance. * - * @param serviceUrls The serviceUrls of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} + * @param serviceUrls The serviceUrls of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsShared} */ - public void setServiceUrls( @Nonnull final BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls serviceUrls) { + public void setServiceUrls( + @Nonnull final BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls serviceUrls) { this.serviceUrls = serviceUrls; } /** - * Get the names of the unrecognizable properties of the {@link BckndServiceServiceCatalogItemExtendCredentialsShared}. + * Get the names of the unrecognizable properties of the {@link + * BckndServiceServiceCatalogItemExtendCredentialsShared}. + * * @return The set of properties names */ @JsonIgnore @@ -90,32 +89,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsShared} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServiceCatalogItemExtendCredentialsShared has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServiceCatalogItemExtendCredentialsShared has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsShared} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,9 +128,14 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceServiceCatalogItemExtendCredentialsShared bckndServiceServiceCatalogItemExtendCredentialsShared = (BckndServiceServiceCatalogItemExtendCredentialsShared) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServiceCatalogItemExtendCredentialsShared.cloudSdkCustomFields) && - Objects.equals(this.serviceUrls, bckndServiceServiceCatalogItemExtendCredentialsShared.serviceUrls); + final BckndServiceServiceCatalogItemExtendCredentialsShared + bckndServiceServiceCatalogItemExtendCredentialsShared = + (BckndServiceServiceCatalogItemExtendCredentialsShared) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndServiceServiceCatalogItemExtendCredentialsShared.cloudSdkCustomFields) + && Objects.equals( + this.serviceUrls, bckndServiceServiceCatalogItemExtendCredentialsShared.serviceUrls); } @Override @@ -135,18 +144,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServiceCatalogItemExtendCredentialsShared {\n"); sb.append(" serviceUrls: ").append(toIndentedString(serviceUrls)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +166,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. No arguments are required. - */ - public static BckndServiceServiceCatalogItemExtendCredentialsShared create() { - return new BckndServiceServiceCatalogItemExtendCredentialsShared(); - } - + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCredentialsShared} instance. No + * arguments are required. + */ + public static BckndServiceServiceCatalogItemExtendCredentialsShared create() { + return new BckndServiceServiceCatalogItemExtendCredentialsShared(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java index dccf3b17..1d1bd92a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,74 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls - */ +/** BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls */ // CHECKSTYLE:OFF -public class BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls +public class BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls // CHECKSTYLE:ON { @JsonProperty("AI_API_URL") private String AI_API_URL; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls() { } - - /** - * Set the AI_API_URL of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance and return the same instance. - * - * @param AI_API_URL The AI_API_URL of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} - * @return The same instance of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} class - */ - @Nonnull public BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls AI_API_URL(@Nonnull final String AI_API_URL) { + + protected BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls() {} + + /** + * Set the AI_API_URL of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance and return the same + * instance. + * + * @param AI_API_URL The AI_API_URL of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} + * @return The same instance of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} class + */ + @Nonnull + public BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls AI_API_URL( + @Nonnull final String AI_API_URL) { this.AI_API_URL = AI_API_URL; return this; } - /** - * Get AI_API_URL - * @return AI_API_URL The AI_API_URL of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. - */ - @Nonnull public String getAIAPIURL() { + /** + * Get AI_API_URL + * + * @return AI_API_URL The AI_API_URL of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. + */ + @Nonnull + public String getAIAPIURL() { return AI_API_URL; } /** - * Set the AI_API_URL of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. + * Set the AI_API_URL of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. * - * @param AI_API_URL The AI_API_URL of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} + * @param AI_API_URL The AI_API_URL of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} */ - public void setAIAPIURL( @Nonnull final String AI_API_URL) { + public void setAIAPIURL(@Nonnull final String AI_API_URL) { this.AI_API_URL = AI_API_URL; } /** - * Get the names of the unrecognizable properties of the {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls}. + * Get the names of the unrecognizable properties of the {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +89,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +128,15 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls bckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls = (BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.cloudSdkCustomFields) && - Objects.equals(this.AI_API_URL, bckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.AI_API_URL); + final BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls + bckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls = + (BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.cloudSdkCustomFields) + && Objects.equals( + this.AI_API_URL, + bckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls.AI_API_URL); } @Override @@ -134,18 +145,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls {\n"); sb.append(" AI_API_URL: ").append(toIndentedString(AI_API_URL)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +167,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. No arguments are required. - */ - public static BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls create() { - return new BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls(); - } - + /** + * Create a new {@link BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls} instance. + * No arguments are required. + */ + public static BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls create() { + return new BckndServiceServiceCatalogItemExtendCredentialsSharedServiceUrls(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java index 00fb47a9..b666682e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndServiceServicePlanItemMetadata; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServicePlanItem - */ +/** BckndServiceServicePlanItem */ // CHECKSTYLE:OFF -public class BckndServiceServicePlanItem +public class BckndServiceServicePlanItem // CHECKSTYLE:ON { @JsonProperty("description") @@ -58,153 +44,172 @@ public class BckndServiceServicePlanItem @JsonProperty("metadata") private BckndServiceServicePlanItemMetadata metadata; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServicePlanItem() { } - - /** - * Set the description of this {@link BckndServiceServicePlanItem} instance and return the same instance. - * - * @param description description of the service plan - * @return The same instance of this {@link BckndServiceServicePlanItem} class - */ - @Nonnull public BckndServiceServicePlanItem description(@Nonnull final String description) { + + protected BckndServiceServicePlanItem() {} + + /** + * Set the description of this {@link BckndServiceServicePlanItem} instance and return the same + * instance. + * + * @param description description of the service plan + * @return The same instance of this {@link BckndServiceServicePlanItem} class + */ + @Nonnull + public BckndServiceServicePlanItem description(@Nonnull final String description) { this.description = description; return this; } - /** - * description of the service plan - * @return description The description of this {@link BckndServiceServicePlanItem} instance. - */ - @Nonnull public String getDescription() { + /** + * description of the service plan + * + * @return description The description of this {@link BckndServiceServicePlanItem} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link BckndServiceServicePlanItem} instance. * - * @param description description of the service plan + * @param description description of the service plan */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the free of this {@link BckndServiceServicePlanItem} instance and return the same instance. - * - * @param free if the service plan free - * @return The same instance of this {@link BckndServiceServicePlanItem} class - */ - @Nonnull public BckndServiceServicePlanItem free(@Nonnull final Boolean free) { + /** + * Set the free of this {@link BckndServiceServicePlanItem} instance and return the same instance. + * + * @param free if the service plan free + * @return The same instance of this {@link BckndServiceServicePlanItem} class + */ + @Nonnull + public BckndServiceServicePlanItem free(@Nonnull final Boolean free) { this.free = free; return this; } - /** - * if the service plan free - * @return free The free of this {@link BckndServiceServicePlanItem} instance. - */ - @Nonnull public Boolean isFree() { + /** + * if the service plan free + * + * @return free The free of this {@link BckndServiceServicePlanItem} instance. + */ + @Nonnull + public Boolean isFree() { return free; } /** * Set the free of this {@link BckndServiceServicePlanItem} instance. * - * @param free if the service plan free + * @param free if the service plan free */ - public void setFree( @Nonnull final Boolean free) { + public void setFree(@Nonnull final Boolean free) { this.free = free; } - /** - * Set the id of this {@link BckndServiceServicePlanItem} instance and return the same instance. - * - * @param id id of the service plan - * @return The same instance of this {@link BckndServiceServicePlanItem} class - */ - @Nonnull public BckndServiceServicePlanItem id(@Nonnull final String id) { + /** + * Set the id of this {@link BckndServiceServicePlanItem} instance and return the same instance. + * + * @param id id of the service plan + * @return The same instance of this {@link BckndServiceServicePlanItem} class + */ + @Nonnull + public BckndServiceServicePlanItem id(@Nonnull final String id) { this.id = id; return this; } - /** - * id of the service plan - * @return id The id of this {@link BckndServiceServicePlanItem} instance. - */ - @Nonnull public String getId() { + /** + * id of the service plan + * + * @return id The id of this {@link BckndServiceServicePlanItem} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndServiceServicePlanItem} instance. * - * @param id id of the service plan + * @param id id of the service plan */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the name of this {@link BckndServiceServicePlanItem} instance and return the same instance. - * - * @param name name of the service plan - * @return The same instance of this {@link BckndServiceServicePlanItem} class - */ - @Nonnull public BckndServiceServicePlanItem name(@Nonnull final String name) { + /** + * Set the name of this {@link BckndServiceServicePlanItem} instance and return the same instance. + * + * @param name name of the service plan + * @return The same instance of this {@link BckndServiceServicePlanItem} class + */ + @Nonnull + public BckndServiceServicePlanItem name(@Nonnull final String name) { this.name = name; return this; } - /** - * name of the service plan - * @return name The name of this {@link BckndServiceServicePlanItem} instance. - */ - @Nonnull public String getName() { + /** + * name of the service plan + * + * @return name The name of this {@link BckndServiceServicePlanItem} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndServiceServicePlanItem} instance. * - * @param name name of the service plan + * @param name name of the service plan */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the metadata of this {@link BckndServiceServicePlanItem} instance and return the same instance. - * - * @param metadata The metadata of this {@link BckndServiceServicePlanItem} - * @return The same instance of this {@link BckndServiceServicePlanItem} class - */ - @Nonnull public BckndServiceServicePlanItem metadata(@Nonnull final BckndServiceServicePlanItemMetadata metadata) { + /** + * Set the metadata of this {@link BckndServiceServicePlanItem} instance and return the same + * instance. + * + * @param metadata The metadata of this {@link BckndServiceServicePlanItem} + * @return The same instance of this {@link BckndServiceServicePlanItem} class + */ + @Nonnull + public BckndServiceServicePlanItem metadata( + @Nonnull final BckndServiceServicePlanItemMetadata metadata) { this.metadata = metadata; return this; } - /** - * Get metadata - * @return metadata The metadata of this {@link BckndServiceServicePlanItem} instance. - */ - @Nonnull public BckndServiceServicePlanItemMetadata getMetadata() { + /** + * Get metadata + * + * @return metadata The metadata of this {@link BckndServiceServicePlanItem} instance. + */ + @Nonnull + public BckndServiceServicePlanItemMetadata getMetadata() { return metadata; } /** * Set the metadata of this {@link BckndServiceServicePlanItem} instance. * - * @param metadata The metadata of this {@link BckndServiceServicePlanItem} + * @param metadata The metadata of this {@link BckndServiceServicePlanItem} */ - public void setMetadata( @Nonnull final BckndServiceServicePlanItemMetadata metadata) { + public void setMetadata(@Nonnull final BckndServiceServicePlanItemMetadata metadata) { this.metadata = metadata; } /** * Get the names of the unrecognizable properties of the {@link BckndServiceServicePlanItem}. + * * @return The set of properties names */ @JsonIgnore @@ -214,32 +219,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServicePlanItem} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndServiceServicePlanItem} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServicePlanItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServicePlanItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServicePlanItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceServicePlanItem} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -249,12 +256,13 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndServiceServicePlanItem bckndServiceServicePlanItem = (BckndServiceServicePlanItem) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServicePlanItem.cloudSdkCustomFields) && - Objects.equals(this.description, bckndServiceServicePlanItem.description) && - Objects.equals(this.free, bckndServiceServicePlanItem.free) && - Objects.equals(this.id, bckndServiceServicePlanItem.id) && - Objects.equals(this.name, bckndServiceServicePlanItem.name) && - Objects.equals(this.metadata, bckndServiceServicePlanItem.metadata); + return Objects.equals( + this.cloudSdkCustomFields, bckndServiceServicePlanItem.cloudSdkCustomFields) + && Objects.equals(this.description, bckndServiceServicePlanItem.description) + && Objects.equals(this.free, bckndServiceServicePlanItem.free) + && Objects.equals(this.id, bckndServiceServicePlanItem.id) + && Objects.equals(this.name, bckndServiceServicePlanItem.name) + && Objects.equals(this.metadata, bckndServiceServicePlanItem.metadata); } @Override @@ -263,7 +271,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServicePlanItem {\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); @@ -271,14 +280,15 @@ public int hashCode() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -287,12 +297,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServicePlanItem} instance. No arguments are required. - */ - public static BckndServiceServicePlanItem create() { - return new BckndServiceServicePlanItem(); - } - + /** Create a new {@link BckndServiceServicePlanItem} instance. No arguments are required. */ + public static BckndServiceServicePlanItem create() { + return new BckndServiceServicePlanItem(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java index d45b5d21..c4e5e486 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndServiceServicePlanItemMetadata.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,54 +12,36 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndServiceServicePlanItemMetadata - */ +/** BckndServiceServicePlanItemMetadata */ // CHECKSTYLE:OFF -public class BckndServiceServicePlanItemMetadata +public class BckndServiceServicePlanItemMetadata // CHECKSTYLE:ON { - /** - * Gets or Sets supportedPlatforms - */ + /** Gets or Sets supportedPlatforms */ public enum SupportedPlatformsEnum { - /** - * The CLOUDFOUNDRY option of this BckndServiceServicePlanItemMetadata - */ + /** The CLOUDFOUNDRY option of this BckndServiceServicePlanItemMetadata */ CLOUDFOUNDRY("cloudfoundry"), - - /** - * The KUBERNETES option of this BckndServiceServicePlanItemMetadata - */ + + /** The KUBERNETES option of this BckndServiceServicePlanItemMetadata */ KUBERNETES("kubernetes"), - - /** - * The SAPBTP option of this BckndServiceServicePlanItemMetadata - */ + + /** The SAPBTP option of this BckndServiceServicePlanItemMetadata */ SAPBTP("sapbtp"); private String value; @@ -71,30 +51,36 @@ public enum SupportedPlatformsEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type BckndServiceServicePlanItemMetadata - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type BckndServiceServicePlanItemMetadata + */ @JsonCreator - @Nonnull public static SupportedPlatformsEnum fromValue(@Nonnull final String value) { + @Nonnull + public static SupportedPlatformsEnum fromValue(@Nonnull final String value) { for (SupportedPlatformsEnum b : SupportedPlatformsEnum.values()) { if (b.value.equals(value)) { return b; @@ -107,27 +93,34 @@ public enum SupportedPlatformsEnum { @JsonProperty("supportedPlatforms") private List supportedPlatforms = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndServiceServicePlanItemMetadata() { } - - /** - * Set the supportedPlatforms of this {@link BckndServiceServicePlanItemMetadata} instance and return the same instance. - * - * @param supportedPlatforms supported platforms of the service plan - * @return The same instance of this {@link BckndServiceServicePlanItemMetadata} class - */ - @Nonnull public BckndServiceServicePlanItemMetadata supportedPlatforms(@Nonnull final List supportedPlatforms) { + + protected BckndServiceServicePlanItemMetadata() {} + + /** + * Set the supportedPlatforms of this {@link BckndServiceServicePlanItemMetadata} instance and + * return the same instance. + * + * @param supportedPlatforms supported platforms of the service plan + * @return The same instance of this {@link BckndServiceServicePlanItemMetadata} class + */ + @Nonnull + public BckndServiceServicePlanItemMetadata supportedPlatforms( + @Nonnull final List supportedPlatforms) { this.supportedPlatforms = supportedPlatforms; return this; } + /** * Add one supportedPlatforms instance to this {@link BckndServiceServicePlanItemMetadata}. + * * @param supportedPlatformsItem The supportedPlatforms that should be added * @return The same instance of type {@link BckndServiceServicePlanItemMetadata} */ - @Nonnull public BckndServiceServicePlanItemMetadata addSupportedPlatformsItem( @Nonnull final SupportedPlatformsEnum supportedPlatformsItem) { + @Nonnull + public BckndServiceServicePlanItemMetadata addSupportedPlatformsItem( + @Nonnull final SupportedPlatformsEnum supportedPlatformsItem) { if (this.supportedPlatforms == null) { this.supportedPlatforms = new ArrayList<>(); } @@ -135,25 +128,31 @@ protected BckndServiceServicePlanItemMetadata() { } return this; } - /** - * supported platforms of the service plan - * @return supportedPlatforms The supportedPlatforms of this {@link BckndServiceServicePlanItemMetadata} instance. - */ - @Nonnull public List getSupportedPlatforms() { + /** + * supported platforms of the service plan + * + * @return supportedPlatforms The supportedPlatforms of this {@link + * BckndServiceServicePlanItemMetadata} instance. + */ + @Nonnull + public List getSupportedPlatforms() { return supportedPlatforms; } /** * Set the supportedPlatforms of this {@link BckndServiceServicePlanItemMetadata} instance. * - * @param supportedPlatforms supported platforms of the service plan + * @param supportedPlatforms supported platforms of the service plan */ - public void setSupportedPlatforms( @Nonnull final List supportedPlatforms) { + public void setSupportedPlatforms( + @Nonnull final List supportedPlatforms) { this.supportedPlatforms = supportedPlatforms; } /** - * Get the names of the unrecognizable properties of the {@link BckndServiceServicePlanItemMetadata}. + * Get the names of the unrecognizable properties of the {@link + * BckndServiceServicePlanItemMetadata}. + * * @return The set of properties names */ @JsonIgnore @@ -163,32 +162,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndServiceServicePlanItemMetadata} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndServiceServicePlanItemMetadata} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndServiceServicePlanItemMetadata has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndServiceServicePlanItemMetadata has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndServiceServicePlanItemMetadata} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndServiceServicePlanItemMetadata} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -197,9 +199,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndServiceServicePlanItemMetadata bckndServiceServicePlanItemMetadata = (BckndServiceServicePlanItemMetadata) o; - return Objects.equals(this.cloudSdkCustomFields, bckndServiceServicePlanItemMetadata.cloudSdkCustomFields) && - Objects.equals(this.supportedPlatforms, bckndServiceServicePlanItemMetadata.supportedPlatforms); + final BckndServiceServicePlanItemMetadata bckndServiceServicePlanItemMetadata = + (BckndServiceServicePlanItemMetadata) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndServiceServicePlanItemMetadata.cloudSdkCustomFields) + && Objects.equals( + this.supportedPlatforms, bckndServiceServicePlanItemMetadata.supportedPlatforms); } @Override @@ -208,18 +213,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndServiceServicePlanItemMetadata {\n"); sb.append(" supportedPlatforms: ").append(toIndentedString(supportedPlatforms)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -228,12 +235,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndServiceServicePlanItemMetadata} instance. No arguments are required. - */ - public static BckndServiceServicePlanItemMetadata create() { - return new BckndServiceServicePlanItemMetadata(); - } - + /** + * Create a new {@link BckndServiceServicePlanItemMetadata} instance. No arguments are required. + */ + public static BckndServiceServicePlanItemMetadata create() { + return new BckndServiceServicePlanItemMetadata(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java index f2ac2422..72102848 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndTenant.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndTenant - */ +/** BckndTenant */ // CHECKSTYLE:OFF -public class BckndTenant +public class BckndTenant // CHECKSTYLE:ON { @JsonProperty("tenantId") @@ -54,125 +41,138 @@ public class BckndTenant @JsonProperty("servicePlan") private String servicePlan; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndTenant() { } - /** - * Set the tenantId of this {@link BckndTenant} instance and return the same instance. - * - * @param tenantId tenant id - * @return The same instance of this {@link BckndTenant} class - */ - @Nonnull public BckndTenant tenantId(@Nonnull final String tenantId) { + protected BckndTenant() {} + + /** + * Set the tenantId of this {@link BckndTenant} instance and return the same instance. + * + * @param tenantId tenant id + * @return The same instance of this {@link BckndTenant} class + */ + @Nonnull + public BckndTenant tenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; return this; } - /** - * tenant id - * @return tenantId The tenantId of this {@link BckndTenant} instance. - */ - @Nonnull public String getTenantId() { + /** + * tenant id + * + * @return tenantId The tenantId of this {@link BckndTenant} instance. + */ + @Nonnull + public String getTenantId() { return tenantId; } /** * Set the tenantId of this {@link BckndTenant} instance. * - * @param tenantId tenant id + * @param tenantId tenant id */ - public void setTenantId( @Nonnull final String tenantId) { + public void setTenantId(@Nonnull final String tenantId) { this.tenantId = tenantId; } - /** - * Set the zoneId of this {@link BckndTenant} instance and return the same instance. - * - * @param zoneId zone id - * @return The same instance of this {@link BckndTenant} class - */ - @Nonnull public BckndTenant zoneId(@Nonnull final String zoneId) { + /** + * Set the zoneId of this {@link BckndTenant} instance and return the same instance. + * + * @param zoneId zone id + * @return The same instance of this {@link BckndTenant} class + */ + @Nonnull + public BckndTenant zoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; return this; } - /** - * zone id - * @return zoneId The zoneId of this {@link BckndTenant} instance. - */ - @Nonnull public String getZoneId() { + /** + * zone id + * + * @return zoneId The zoneId of this {@link BckndTenant} instance. + */ + @Nonnull + public String getZoneId() { return zoneId; } /** * Set the zoneId of this {@link BckndTenant} instance. * - * @param zoneId zone id + * @param zoneId zone id */ - public void setZoneId( @Nonnull final String zoneId) { + public void setZoneId(@Nonnull final String zoneId) { this.zoneId = zoneId; } - /** - * Set the realSubaccountId of this {@link BckndTenant} instance and return the same instance. - * - * @param realSubaccountId real sub account id - * @return The same instance of this {@link BckndTenant} class - */ - @Nonnull public BckndTenant realSubaccountId(@Nonnull final String realSubaccountId) { + /** + * Set the realSubaccountId of this {@link BckndTenant} instance and return the same instance. + * + * @param realSubaccountId real sub account id + * @return The same instance of this {@link BckndTenant} class + */ + @Nonnull + public BckndTenant realSubaccountId(@Nonnull final String realSubaccountId) { this.realSubaccountId = realSubaccountId; return this; } - /** - * real sub account id - * @return realSubaccountId The realSubaccountId of this {@link BckndTenant} instance. - */ - @Nonnull public String getRealSubaccountId() { + /** + * real sub account id + * + * @return realSubaccountId The realSubaccountId of this {@link BckndTenant} instance. + */ + @Nonnull + public String getRealSubaccountId() { return realSubaccountId; } /** * Set the realSubaccountId of this {@link BckndTenant} instance. * - * @param realSubaccountId real sub account id + * @param realSubaccountId real sub account id */ - public void setRealSubaccountId( @Nonnull final String realSubaccountId) { + public void setRealSubaccountId(@Nonnull final String realSubaccountId) { this.realSubaccountId = realSubaccountId; } - /** - * Set the servicePlan of this {@link BckndTenant} instance and return the same instance. - * - * @param servicePlan service plan - * @return The same instance of this {@link BckndTenant} class - */ - @Nonnull public BckndTenant servicePlan(@Nonnull final String servicePlan) { + /** + * Set the servicePlan of this {@link BckndTenant} instance and return the same instance. + * + * @param servicePlan service plan + * @return The same instance of this {@link BckndTenant} class + */ + @Nonnull + public BckndTenant servicePlan(@Nonnull final String servicePlan) { this.servicePlan = servicePlan; return this; } - /** - * service plan - * @return servicePlan The servicePlan of this {@link BckndTenant} instance. - */ - @Nonnull public String getServicePlan() { + /** + * service plan + * + * @return servicePlan The servicePlan of this {@link BckndTenant} instance. + */ + @Nonnull + public String getServicePlan() { return servicePlan; } /** * Set the servicePlan of this {@link BckndTenant} instance. * - * @param servicePlan service plan + * @param servicePlan service plan */ - public void setServicePlan( @Nonnull final String servicePlan) { + public void setServicePlan(@Nonnull final String servicePlan) { this.servicePlan = servicePlan; } /** * Get the names of the unrecognizable properties of the {@link BckndTenant}. + * * @return The set of properties names */ @JsonIgnore @@ -183,31 +183,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link BckndTenant} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndTenant has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("BckndTenant has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndTenant} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndTenant} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -217,11 +217,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndTenant bckndTenant = (BckndTenant) o; - return Objects.equals(this.cloudSdkCustomFields, bckndTenant.cloudSdkCustomFields) && - Objects.equals(this.tenantId, bckndTenant.tenantId) && - Objects.equals(this.zoneId, bckndTenant.zoneId) && - Objects.equals(this.realSubaccountId, bckndTenant.realSubaccountId) && - Objects.equals(this.servicePlan, bckndTenant.servicePlan); + return Objects.equals(this.cloudSdkCustomFields, bckndTenant.cloudSdkCustomFields) + && Objects.equals(this.tenantId, bckndTenant.tenantId) + && Objects.equals(this.zoneId, bckndTenant.zoneId) + && Objects.equals(this.realSubaccountId, bckndTenant.realSubaccountId) + && Objects.equals(this.servicePlan, bckndTenant.servicePlan); } @Override @@ -230,21 +230,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndTenant {\n"); sb.append(" tenantId: ").append(toIndentedString(tenantId)).append("\n"); sb.append(" zoneId: ").append(toIndentedString(zoneId)).append("\n"); sb.append(" realSubaccountId: ").append(toIndentedString(realSubaccountId)).append("\n"); sb.append(" servicePlan: ").append(toIndentedString(servicePlan)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -253,12 +255,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndTenant} instance. No arguments are required. - */ - public static BckndTenant create() { - return new BckndTenant(); - } - + /** Create a new {@link BckndTenant} instance. No arguments are required. */ + public static BckndTenant create() { + return new BckndTenant(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java index 67d54142..ae73d788 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndUsageResourcePlanItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndUsageResourcePlanItem - */ +/** BckndUsageResourcePlanItem */ // CHECKSTYLE:OFF -public class BckndUsageResourcePlanItem +public class BckndUsageResourcePlanItem // CHECKSTYLE:ON { @JsonProperty("id") @@ -51,97 +38,114 @@ public class BckndUsageResourcePlanItem @JsonProperty("configuredMaxReplicas") private Integer configuredMaxReplicas; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndUsageResourcePlanItem() { } - - /** - * Set the id of this {@link BckndUsageResourcePlanItem} instance and return the same instance. - * - * @param id The id of this {@link BckndUsageResourcePlanItem} - * @return The same instance of this {@link BckndUsageResourcePlanItem} class - */ - @Nonnull public BckndUsageResourcePlanItem id(@Nonnull final String id) { + + protected BckndUsageResourcePlanItem() {} + + /** + * Set the id of this {@link BckndUsageResourcePlanItem} instance and return the same instance. + * + * @param id The id of this {@link BckndUsageResourcePlanItem} + * @return The same instance of this {@link BckndUsageResourcePlanItem} class + */ + @Nonnull + public BckndUsageResourcePlanItem id(@Nonnull final String id) { this.id = id; return this; } - /** - * Get id - * @return id The id of this {@link BckndUsageResourcePlanItem} instance. - */ - @Nonnull public String getId() { + /** + * Get id + * + * @return id The id of this {@link BckndUsageResourcePlanItem} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndUsageResourcePlanItem} instance. * - * @param id The id of this {@link BckndUsageResourcePlanItem} + * @param id The id of this {@link BckndUsageResourcePlanItem} */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the resourcePlanType of this {@link BckndUsageResourcePlanItem} instance and return the same instance. - * - * @param resourcePlanType The resourcePlanType of this {@link BckndUsageResourcePlanItem} - * @return The same instance of this {@link BckndUsageResourcePlanItem} class - */ - @Nonnull public BckndUsageResourcePlanItem resourcePlanType(@Nonnull final String resourcePlanType) { + /** + * Set the resourcePlanType of this {@link BckndUsageResourcePlanItem} instance and return the + * same instance. + * + * @param resourcePlanType The resourcePlanType of this {@link BckndUsageResourcePlanItem} + * @return The same instance of this {@link BckndUsageResourcePlanItem} class + */ + @Nonnull + public BckndUsageResourcePlanItem resourcePlanType(@Nonnull final String resourcePlanType) { this.resourcePlanType = resourcePlanType; return this; } - /** - * Get resourcePlanType - * @return resourcePlanType The resourcePlanType of this {@link BckndUsageResourcePlanItem} instance. - */ - @Nonnull public String getResourcePlanType() { + /** + * Get resourcePlanType + * + * @return resourcePlanType The resourcePlanType of this {@link BckndUsageResourcePlanItem} + * instance. + */ + @Nonnull + public String getResourcePlanType() { return resourcePlanType; } /** * Set the resourcePlanType of this {@link BckndUsageResourcePlanItem} instance. * - * @param resourcePlanType The resourcePlanType of this {@link BckndUsageResourcePlanItem} + * @param resourcePlanType The resourcePlanType of this {@link BckndUsageResourcePlanItem} */ - public void setResourcePlanType( @Nonnull final String resourcePlanType) { + public void setResourcePlanType(@Nonnull final String resourcePlanType) { this.resourcePlanType = resourcePlanType; } - /** - * Set the configuredMaxReplicas of this {@link BckndUsageResourcePlanItem} instance and return the same instance. - * - * @param configuredMaxReplicas The configuredMaxReplicas of this {@link BckndUsageResourcePlanItem} - * @return The same instance of this {@link BckndUsageResourcePlanItem} class - */ - @Nonnull public BckndUsageResourcePlanItem configuredMaxReplicas(@Nonnull final Integer configuredMaxReplicas) { + /** + * Set the configuredMaxReplicas of this {@link BckndUsageResourcePlanItem} instance and return + * the same instance. + * + * @param configuredMaxReplicas The configuredMaxReplicas of this {@link + * BckndUsageResourcePlanItem} + * @return The same instance of this {@link BckndUsageResourcePlanItem} class + */ + @Nonnull + public BckndUsageResourcePlanItem configuredMaxReplicas( + @Nonnull final Integer configuredMaxReplicas) { this.configuredMaxReplicas = configuredMaxReplicas; return this; } - /** - * Get configuredMaxReplicas - * @return configuredMaxReplicas The configuredMaxReplicas of this {@link BckndUsageResourcePlanItem} instance. - */ - @Nonnull public Integer getConfiguredMaxReplicas() { + /** + * Get configuredMaxReplicas + * + * @return configuredMaxReplicas The configuredMaxReplicas of this {@link + * BckndUsageResourcePlanItem} instance. + */ + @Nonnull + public Integer getConfiguredMaxReplicas() { return configuredMaxReplicas; } /** * Set the configuredMaxReplicas of this {@link BckndUsageResourcePlanItem} instance. * - * @param configuredMaxReplicas The configuredMaxReplicas of this {@link BckndUsageResourcePlanItem} + * @param configuredMaxReplicas The configuredMaxReplicas of this {@link + * BckndUsageResourcePlanItem} */ - public void setConfiguredMaxReplicas( @Nonnull final Integer configuredMaxReplicas) { + public void setConfiguredMaxReplicas(@Nonnull final Integer configuredMaxReplicas) { this.configuredMaxReplicas = configuredMaxReplicas; } /** * Get the names of the unrecognizable properties of the {@link BckndUsageResourcePlanItem}. + * * @return The set of properties names */ @JsonIgnore @@ -151,32 +155,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndUsageResourcePlanItem} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndUsageResourcePlanItem} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndUsageResourcePlanItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndUsageResourcePlanItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndUsageResourcePlanItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndUsageResourcePlanItem} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +192,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final BckndUsageResourcePlanItem bckndUsageResourcePlanItem = (BckndUsageResourcePlanItem) o; - return Objects.equals(this.cloudSdkCustomFields, bckndUsageResourcePlanItem.cloudSdkCustomFields) && - Objects.equals(this.id, bckndUsageResourcePlanItem.id) && - Objects.equals(this.resourcePlanType, bckndUsageResourcePlanItem.resourcePlanType) && - Objects.equals(this.configuredMaxReplicas, bckndUsageResourcePlanItem.configuredMaxReplicas); + return Objects.equals( + this.cloudSdkCustomFields, bckndUsageResourcePlanItem.cloudSdkCustomFields) + && Objects.equals(this.id, bckndUsageResourcePlanItem.id) + && Objects.equals(this.resourcePlanType, bckndUsageResourcePlanItem.resourcePlanType) + && Objects.equals( + this.configuredMaxReplicas, bckndUsageResourcePlanItem.configuredMaxReplicas); } @Override @@ -198,20 +206,24 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndUsageResourcePlanItem {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" resourcePlanType: ").append(toIndentedString(resourcePlanType)).append("\n"); - sb.append(" configuredMaxReplicas: ").append(toIndentedString(configuredMaxReplicas)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" configuredMaxReplicas: ") + .append(toIndentedString(configuredMaxReplicas)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,24 +232,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndUsageResourcePlanItem} instance with all required arguments. - */ - public static Builder create() { - return (id) -> new BckndUsageResourcePlanItem().id(id); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndUsageResourcePlanItem} instance. - * - * @param id The id of this {@link BckndUsageResourcePlanItem} - * @return The BckndUsageResourcePlanItem instance. - */ - BckndUsageResourcePlanItem id( @Nonnull final String id); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndUsageResourcePlanItem} instance with all required arguments. + */ + public static Builder create() { + return (id) -> new BckndUsageResourcePlanItem().id(id); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the id of this {@link BckndUsageResourcePlanItem} instance. + * + * @param id The id of this {@link BckndUsageResourcePlanItem} + * @return The BckndUsageResourcePlanItem instance. + */ + BckndUsageResourcePlanItem id(@Nonnull final String id); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java index 5755c95f..3f99fe6a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,67 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Message - */ +/** Message */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretCreationResponse +public class BcknddockerRegistrySecretCreationResponse // CHECKSTYLE:ON { @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretCreationResponse() { } - - /** - * Set the message of this {@link BcknddockerRegistrySecretCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BcknddockerRegistrySecretCreationResponse} class - */ - @Nonnull public BcknddockerRegistrySecretCreationResponse message(@Nonnull final String message) { + + protected BcknddockerRegistrySecretCreationResponse() {} + + /** + * Set the message of this {@link BcknddockerRegistrySecretCreationResponse} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link BcknddockerRegistrySecretCreationResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BcknddockerRegistrySecretCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BcknddockerRegistrySecretCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BcknddockerRegistrySecretCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretCreationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BcknddockerRegistrySecretCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +82,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BcknddockerRegistrySecretCreationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BcknddockerRegistrySecretCreationResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +119,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretCreationResponse bcknddockerRegistrySecretCreationResponse = (BcknddockerRegistrySecretCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.message, bcknddockerRegistrySecretCreationResponse.message); + final BcknddockerRegistrySecretCreationResponse bcknddockerRegistrySecretCreationResponse = + (BcknddockerRegistrySecretCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, + bcknddockerRegistrySecretCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.message, bcknddockerRegistrySecretCreationResponse.message); } @Override @@ -134,18 +133,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretCreationResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +155,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BcknddockerRegistrySecretCreationResponse} instance. No arguments are required. - */ - public static BcknddockerRegistrySecretCreationResponse create() { - return new BcknddockerRegistrySecretCreationResponse(); - } - + /** + * Create a new {@link BcknddockerRegistrySecretCreationResponse} instance. No arguments are + * required. + */ + public static BcknddockerRegistrySecretCreationResponse create() { + return new BcknddockerRegistrySecretCreationResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java index 6419d144..ab1cf496 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BcknddockerRegistrySecretDeletionResponse - */ +/** BcknddockerRegistrySecretDeletionResponse */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretDeletionResponse +public class BcknddockerRegistrySecretDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BcknddockerRegistrySecretDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretDeletionResponse() { } - - /** - * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BcknddockerRegistrySecretDeletionResponse} class - */ - @Nonnull public BcknddockerRegistrySecretDeletionResponse id(@Nonnull final String id) { + + protected BcknddockerRegistrySecretDeletionResponse() {} + + /** + * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance and return the + * same instance. + * + * @param id Generic ID + * @return The same instance of this {@link BcknddockerRegistrySecretDeletionResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BcknddockerRegistrySecretDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BcknddockerRegistrySecretDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BcknddockerRegistrySecretDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BcknddockerRegistrySecretDeletionResponse} class - */ - @Nonnull public BcknddockerRegistrySecretDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BcknddockerRegistrySecretDeletionResponse} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link BcknddockerRegistrySecretDeletionResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BcknddockerRegistrySecretDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BcknddockerRegistrySecretDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BcknddockerRegistrySecretDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretDeletionResponse}. + * Get the names of the unrecognizable properties of the {@link + * BcknddockerRegistrySecretDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BcknddockerRegistrySecretDeletionResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BcknddockerRegistrySecretDeletionResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretDeletionResponse bcknddockerRegistrySecretDeletionResponse = (BcknddockerRegistrySecretDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bcknddockerRegistrySecretDeletionResponse.id) && - Objects.equals(this.message, bcknddockerRegistrySecretDeletionResponse.message); + final BcknddockerRegistrySecretDeletionResponse bcknddockerRegistrySecretDeletionResponse = + (BcknddockerRegistrySecretDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, + bcknddockerRegistrySecretDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bcknddockerRegistrySecretDeletionResponse.id) + && Objects.equals(this.message, bcknddockerRegistrySecretDeletionResponse.message); } @Override @@ -166,19 +169,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +192,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BcknddockerRegistrySecretDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BcknddockerRegistrySecretDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BcknddockerRegistrySecretDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance. - * - * @param id Generic ID - * @return The BcknddockerRegistrySecretDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BcknddockerRegistrySecretDeletionResponse} instance. - * - * @param message Message - * @return The BcknddockerRegistrySecretDeletionResponse instance. - */ - BcknddockerRegistrySecretDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link BcknddockerRegistrySecretDeletionResponse} instance. + * + * @param id Generic ID + * @return The BcknddockerRegistrySecretDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BcknddockerRegistrySecretDeletionResponse} instance. + * + * @param message Message + * @return The BcknddockerRegistrySecretDeletionResponse instance. + */ + BcknddockerRegistrySecretDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java index f4b3187c..a84f7745 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BcknddockerRegistrySecretModificationResponse - */ +/** BcknddockerRegistrySecretModificationResponse */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretModificationResponse +public class BcknddockerRegistrySecretModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,80 @@ public class BcknddockerRegistrySecretModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretModificationResponse() { } - - /** - * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BcknddockerRegistrySecretModificationResponse} class - */ - @Nonnull public BcknddockerRegistrySecretModificationResponse id(@Nonnull final String id) { + + protected BcknddockerRegistrySecretModificationResponse() {} + + /** + * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance and return + * the same instance. + * + * @param id Generic ID + * @return The same instance of this {@link BcknddockerRegistrySecretModificationResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BcknddockerRegistrySecretModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BcknddockerRegistrySecretModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BcknddockerRegistrySecretModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BcknddockerRegistrySecretModificationResponse} class - */ - @Nonnull public BcknddockerRegistrySecretModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BcknddockerRegistrySecretModificationResponse} instance and + * return the same instance. + * + * @param message Message + * @return The same instance of this {@link BcknddockerRegistrySecretModificationResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BcknddockerRegistrySecretModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BcknddockerRegistrySecretModificationResponse} + * instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BcknddockerRegistrySecretModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BcknddockerRegistrySecretModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +118,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BcknddockerRegistrySecretModificationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BcknddockerRegistrySecretModificationResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +155,14 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretModificationResponse bcknddockerRegistrySecretModificationResponse = (BcknddockerRegistrySecretModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bcknddockerRegistrySecretModificationResponse.id) && - Objects.equals(this.message, bcknddockerRegistrySecretModificationResponse.message); + final BcknddockerRegistrySecretModificationResponse + bcknddockerRegistrySecretModificationResponse = + (BcknddockerRegistrySecretModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, + bcknddockerRegistrySecretModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bcknddockerRegistrySecretModificationResponse.id) + && Objects.equals(this.message, bcknddockerRegistrySecretModificationResponse.message); } @Override @@ -166,19 +171,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +194,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BcknddockerRegistrySecretModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BcknddockerRegistrySecretModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BcknddockerRegistrySecretModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance. - * - * @param id Generic ID - * @return The BcknddockerRegistrySecretModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BcknddockerRegistrySecretModificationResponse} instance. - * - * @param message Message - * @return The BcknddockerRegistrySecretModificationResponse instance. - */ - BcknddockerRegistrySecretModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link BcknddockerRegistrySecretModificationResponse} instance. + * + * @param id Generic ID + * @return The BcknddockerRegistrySecretModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BcknddockerRegistrySecretModificationResponse} instance. + * + * @param message Message + * @return The BcknddockerRegistrySecretModificationResponse instance. + */ + BcknddockerRegistrySecretModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java index 43582b27..6c3a1c6c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,69 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * This represents the meta-data of a stored secret. The 'data' field of the secret is never retrieved. + * This represents the meta-data of a stored secret. The 'data' field of the secret is never + * retrieved. */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretStatus +public class BcknddockerRegistrySecretStatus // CHECKSTYLE:ON { @JsonProperty("name") private String name; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretStatus() { } - - /** - * Set the name of this {@link BcknddockerRegistrySecretStatus} instance and return the same instance. - * - * @param name Name of dockerRegistryStore - * @return The same instance of this {@link BcknddockerRegistrySecretStatus} class - */ - @Nonnull public BcknddockerRegistrySecretStatus name(@Nonnull final String name) { + + protected BcknddockerRegistrySecretStatus() {} + + /** + * Set the name of this {@link BcknddockerRegistrySecretStatus} instance and return the same + * instance. + * + * @param name Name of dockerRegistryStore + * @return The same instance of this {@link BcknddockerRegistrySecretStatus} class + */ + @Nonnull + public BcknddockerRegistrySecretStatus name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of dockerRegistryStore - * @return name The name of this {@link BcknddockerRegistrySecretStatus} instance. - */ - @Nonnull public String getName() { + /** + * Name of dockerRegistryStore + * + * @return name The name of this {@link BcknddockerRegistrySecretStatus} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BcknddockerRegistrySecretStatus} instance. * - * @param name Name of dockerRegistryStore + * @param name Name of dockerRegistryStore */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } /** * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretStatus}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +84,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretStatus} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretStatus} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretStatus has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretStatus has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretStatus} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BcknddockerRegistrySecretStatus} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +121,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretStatus bcknddockerRegistrySecretStatus = (BcknddockerRegistrySecretStatus) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretStatus.cloudSdkCustomFields) && - Objects.equals(this.name, bcknddockerRegistrySecretStatus.name); + final BcknddockerRegistrySecretStatus bcknddockerRegistrySecretStatus = + (BcknddockerRegistrySecretStatus) o; + return Objects.equals( + this.cloudSdkCustomFields, bcknddockerRegistrySecretStatus.cloudSdkCustomFields) + && Objects.equals(this.name, bcknddockerRegistrySecretStatus.name); } @Override @@ -134,18 +134,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretStatus {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +156,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BcknddockerRegistrySecretStatus} instance. No arguments are required. - */ - public static BcknddockerRegistrySecretStatus create() { - return new BcknddockerRegistrySecretStatus(); - } - + /** Create a new {@link BcknddockerRegistrySecretStatus} instance. No arguments are required. */ + public static BcknddockerRegistrySecretStatus create() { + return new BcknddockerRegistrySecretStatus(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java index 471b0775..990e8354 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretStatusResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,27 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretStatus; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * This represents a list of meta-data of a stored secret. The 'data' field of the secret is never retrieved. + * This represents a list of meta-data of a stored secret. The 'data' field of the secret is + * never retrieved. */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretStatusResponse +public class BcknddockerRegistrySecretStatusResponse // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +41,66 @@ public class BcknddockerRegistrySecretStatusResponse @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretStatusResponse() { } - - /** - * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BcknddockerRegistrySecretStatusResponse} class - */ - @Nonnull public BcknddockerRegistrySecretStatusResponse count(@Nonnull final Integer count) { + + protected BcknddockerRegistrySecretStatusResponse() {} + + /** + * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance and return the + * same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BcknddockerRegistrySecretStatusResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretStatusResponse count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BcknddockerRegistrySecretStatusResponse} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BcknddockerRegistrySecretStatusResponse} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance and return the same instance. - * - * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} - * @return The same instance of this {@link BcknddockerRegistrySecretStatusResponse} class - */ - @Nonnull public BcknddockerRegistrySecretStatusResponse resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance and return + * the same instance. + * + * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * @return The same instance of this {@link BcknddockerRegistrySecretStatusResponse} class + */ + @Nonnull + public BcknddockerRegistrySecretStatusResponse resources( + @Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BcknddockerRegistrySecretStatusResponse}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BcknddockerRegistrySecretStatusResponse} */ - @Nonnull public BcknddockerRegistrySecretStatusResponse addResourcesItem( @Nonnull final BcknddockerRegistrySecretStatus resourcesItem) { + @Nonnull + public BcknddockerRegistrySecretStatusResponse addResourcesItem( + @Nonnull final BcknddockerRegistrySecretStatus resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +108,30 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. * - * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** - * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretStatusResponse}. + * Get the names of the unrecognizable properties of the {@link + * BcknddockerRegistrySecretStatusResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -136,32 +141,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretStatusResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BcknddockerRegistrySecretStatusResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretStatusResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretStatusResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretStatusResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BcknddockerRegistrySecretStatusResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -170,10 +178,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretStatusResponse bcknddockerRegistrySecretStatusResponse = (BcknddockerRegistrySecretStatusResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretStatusResponse.cloudSdkCustomFields) && - Objects.equals(this.count, bcknddockerRegistrySecretStatusResponse.count) && - Objects.equals(this.resources, bcknddockerRegistrySecretStatusResponse.resources); + final BcknddockerRegistrySecretStatusResponse bcknddockerRegistrySecretStatusResponse = + (BcknddockerRegistrySecretStatusResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bcknddockerRegistrySecretStatusResponse.cloudSdkCustomFields) + && Objects.equals(this.count, bcknddockerRegistrySecretStatusResponse.count) + && Objects.equals(this.resources, bcknddockerRegistrySecretStatusResponse.resources); } @Override @@ -182,19 +192,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretStatusResponse {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +215,47 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BcknddockerRegistrySecretStatusResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> + (resources) -> + new BcknddockerRegistrySecretStatusResponse().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretStatusResponse} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BcknddockerRegistrySecretStatusResponse().count(count).resources(resources); - } + * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BcknddockerRegistrySecretStatusResponse builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BcknddockerRegistrySecretStatusResponse} instance. - * - * @param count Number of the resource instances in the list - * @return The BcknddockerRegistrySecretStatusResponse builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. + * + * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * @return The BcknddockerRegistrySecretStatusResponse instance. + */ + BcknddockerRegistrySecretStatusResponse resources( + @Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. - * - * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} - * @return The BcknddockerRegistrySecretStatusResponse instance. - */ - BcknddockerRegistrySecretStatusResponse resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. - * - * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} - * @return The BcknddockerRegistrySecretStatusResponse instance. - */ - default BcknddockerRegistrySecretStatusResponse resources( @Nonnull final BcknddockerRegistrySecretStatus... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BcknddockerRegistrySecretStatusResponse} instance. + * + * @param resources The resources of this {@link BcknddockerRegistrySecretStatusResponse} + * @return The BcknddockerRegistrySecretStatusResponse instance. + */ + default BcknddockerRegistrySecretStatusResponse resources( + @Nonnull final BcknddockerRegistrySecretStatus... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java index 691039b3..43772987 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,70 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretWithSensitiveDataRequestData; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * This represents all the meta-data and extra information to be stored as a k8-secret - */ +/** This represents all the meta-data and extra information to be stored as a k8-secret */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretWithSensitiveDataRequest +public class BcknddockerRegistrySecretWithSensitiveDataRequest // CHECKSTYLE:ON { @JsonProperty("data") private BcknddockerRegistrySecretWithSensitiveDataRequestData data; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretWithSensitiveDataRequest() { } - - /** - * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} - * @return The same instance of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} class - */ - @Nonnull public BcknddockerRegistrySecretWithSensitiveDataRequest data(@Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { + + protected BcknddockerRegistrySecretWithSensitiveDataRequest() {} + + /** + * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} + * @return The same instance of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} + * class + */ + @Nonnull + public BcknddockerRegistrySecretWithSensitiveDataRequest data( + @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { this.data = data; return this; } - /** - * Get data - * @return data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. - */ - @Nonnull public BcknddockerRegistrySecretWithSensitiveDataRequestData getData() { + /** + * Get data + * + * @return data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} + * instance. + */ + @Nonnull + public BcknddockerRegistrySecretWithSensitiveDataRequestData getData() { return data; } /** * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. * - * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} + * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} */ - public void setData( @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { + public void setData(@Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { this.data = data; } /** - * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretWithSensitiveDataRequest}. + * Get the names of the unrecognizable properties of the {@link + * BcknddockerRegistrySecretWithSensitiveDataRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -90,32 +85,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BcknddockerRegistrySecretWithSensitiveDataRequest} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretWithSensitiveDataRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretWithSensitiveDataRequest has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * BcknddockerRegistrySecretWithSensitiveDataRequest} instance. If the map previously contained a + * mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,9 +124,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretWithSensitiveDataRequest bcknddockerRegistrySecretWithSensitiveDataRequest = (BcknddockerRegistrySecretWithSensitiveDataRequest) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretWithSensitiveDataRequest.cloudSdkCustomFields) && - Objects.equals(this.data, bcknddockerRegistrySecretWithSensitiveDataRequest.data); + final BcknddockerRegistrySecretWithSensitiveDataRequest + bcknddockerRegistrySecretWithSensitiveDataRequest = + (BcknddockerRegistrySecretWithSensitiveDataRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, + bcknddockerRegistrySecretWithSensitiveDataRequest.cloudSdkCustomFields) + && Objects.equals(this.data, bcknddockerRegistrySecretWithSensitiveDataRequest.data); } @Override @@ -135,18 +139,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretWithSensitiveDataRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,24 +161,23 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance with all required arguments. - */ - public static Builder create() { - return (data) -> new BcknddockerRegistrySecretWithSensitiveDataRequest().data(data); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. - * - * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} - * @return The BcknddockerRegistrySecretWithSensitiveDataRequest instance. - */ - BcknddockerRegistrySecretWithSensitiveDataRequest data( @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BcknddockerRegistrySecretWithSensitiveDataRequest} instance with all required arguments. + */ + public static Builder create() { + return (data) -> new BcknddockerRegistrySecretWithSensitiveDataRequest().data(data); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} instance. + * + * @param data The data of this {@link BcknddockerRegistrySecretWithSensitiveDataRequest} + * @return The BcknddockerRegistrySecretWithSensitiveDataRequest instance. + */ + BcknddockerRegistrySecretWithSensitiveDataRequest data( + @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java index 4b62bcb0..1bbec292 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BcknddockerRegistrySecretWithSensitiveDataRequestData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,71 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * key:value pairs of data - */ +/** key:value pairs of data */ // CHECKSTYLE:OFF -public class BcknddockerRegistrySecretWithSensitiveDataRequestData +public class BcknddockerRegistrySecretWithSensitiveDataRequestData // CHECKSTYLE:ON { @JsonProperty(".dockerconfigjson") private String dockerconfigjson; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BcknddockerRegistrySecretWithSensitiveDataRequestData() { } - - /** - * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance and return the same instance. - * - * @param dockerconfigjson .dockerconfigjson data - * @return The same instance of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} class - */ - @Nonnull public BcknddockerRegistrySecretWithSensitiveDataRequestData dockerconfigjson(@Nonnull final String dockerconfigjson) { + + protected BcknddockerRegistrySecretWithSensitiveDataRequestData() {} + + /** + * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} + * instance and return the same instance. + * + * @param dockerconfigjson .dockerconfigjson data + * @return The same instance of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} + * class + */ + @Nonnull + public BcknddockerRegistrySecretWithSensitiveDataRequestData dockerconfigjson( + @Nonnull final String dockerconfigjson) { this.dockerconfigjson = dockerconfigjson; return this; } - /** - * .dockerconfigjson data - * @return dockerconfigjson The dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. - */ - @Nonnull public String getDockerconfigjson() { + /** + * .dockerconfigjson data + * + * @return dockerconfigjson The dockerconfigjson of this {@link + * BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. + */ + @Nonnull + public String getDockerconfigjson() { return dockerconfigjson; } /** - * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. + * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} + * instance. * - * @param dockerconfigjson .dockerconfigjson data + * @param dockerconfigjson .dockerconfigjson data */ - public void setDockerconfigjson( @Nonnull final String dockerconfigjson) { + public void setDockerconfigjson(@Nonnull final String dockerconfigjson) { this.dockerconfigjson = dockerconfigjson; } /** - * Get the names of the unrecognizable properties of the {@link BcknddockerRegistrySecretWithSensitiveDataRequestData}. + * Get the names of the unrecognizable properties of the {@link + * BcknddockerRegistrySecretWithSensitiveDataRequestData}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +86,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BcknddockerRegistrySecretWithSensitiveDataRequestData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BcknddockerRegistrySecretWithSensitiveDataRequestData has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +125,15 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BcknddockerRegistrySecretWithSensitiveDataRequestData bcknddockerRegistrySecretWithSensitiveDataRequestData = (BcknddockerRegistrySecretWithSensitiveDataRequestData) o; - return Objects.equals(this.cloudSdkCustomFields, bcknddockerRegistrySecretWithSensitiveDataRequestData.cloudSdkCustomFields) && - Objects.equals(this.dockerconfigjson, bcknddockerRegistrySecretWithSensitiveDataRequestData.dockerconfigjson); + final BcknddockerRegistrySecretWithSensitiveDataRequestData + bcknddockerRegistrySecretWithSensitiveDataRequestData = + (BcknddockerRegistrySecretWithSensitiveDataRequestData) o; + return Objects.equals( + this.cloudSdkCustomFields, + bcknddockerRegistrySecretWithSensitiveDataRequestData.cloudSdkCustomFields) + && Objects.equals( + this.dockerconfigjson, + bcknddockerRegistrySecretWithSensitiveDataRequestData.dockerconfigjson); } @Override @@ -134,18 +142,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BcknddockerRegistrySecretWithSensitiveDataRequestData {\n"); sb.append(" dockerconfigjson: ").append(toIndentedString(dockerconfigjson)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,24 +164,26 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance with all required arguments. - */ - public static Builder create() { - return (dockerconfigjson) -> new BcknddockerRegistrySecretWithSensitiveDataRequestData().dockerconfigjson(dockerconfigjson); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the dockerconfigjson of this {@link BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. - * - * @param dockerconfigjson .dockerconfigjson data - * @return The BcknddockerRegistrySecretWithSensitiveDataRequestData instance. - */ - BcknddockerRegistrySecretWithSensitiveDataRequestData dockerconfigjson( @Nonnull final String dockerconfigjson); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BcknddockerRegistrySecretWithSensitiveDataRequestData} instance with all required arguments. + */ + public static Builder create() { + return (dockerconfigjson) -> + new BcknddockerRegistrySecretWithSensitiveDataRequestData() + .dockerconfigjson(dockerconfigjson); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the dockerconfigjson of this {@link + * BcknddockerRegistrySecretWithSensitiveDataRequestData} instance. + * + * @param dockerconfigjson .dockerconfigjson data + * @return The BcknddockerRegistrySecretWithSensitiveDataRequestData instance. + */ + BcknddockerRegistrySecretWithSensitiveDataRequestData dockerconfigjson( + @Nonnull final String dockerconfigjson); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java index 4a274c97..48982cb3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,67 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Message - */ +/** Message */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretCreationResponse +public class BckndobjectStoreSecretCreationResponse // CHECKSTYLE:ON { @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretCreationResponse() { } - - /** - * Set the message of this {@link BckndobjectStoreSecretCreationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndobjectStoreSecretCreationResponse} class - */ - @Nonnull public BckndobjectStoreSecretCreationResponse message(@Nonnull final String message) { + + protected BckndobjectStoreSecretCreationResponse() {} + + /** + * Set the message of this {@link BckndobjectStoreSecretCreationResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndobjectStoreSecretCreationResponse} class + */ + @Nonnull + public BckndobjectStoreSecretCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndobjectStoreSecretCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndobjectStoreSecretCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndobjectStoreSecretCreationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretCreationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +82,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretCreationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretCreationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretCreationResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +119,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretCreationResponse bckndobjectStoreSecretCreationResponse = (BckndobjectStoreSecretCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.message, bckndobjectStoreSecretCreationResponse.message); + final BckndobjectStoreSecretCreationResponse bckndobjectStoreSecretCreationResponse = + (BckndobjectStoreSecretCreationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndobjectStoreSecretCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.message, bckndobjectStoreSecretCreationResponse.message); } @Override @@ -134,18 +132,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretCreationResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +154,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndobjectStoreSecretCreationResponse} instance. No arguments are required. - */ - public static BckndobjectStoreSecretCreationResponse create() { - return new BckndobjectStoreSecretCreationResponse(); - } - + /** + * Create a new {@link BckndobjectStoreSecretCreationResponse} instance. No arguments are + * required. + */ + public static BckndobjectStoreSecretCreationResponse create() { + return new BckndobjectStoreSecretCreationResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java index 11cf0622..5db3e96a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretDeletionResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndobjectStoreSecretDeletionResponse - */ +/** BckndobjectStoreSecretDeletionResponse */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretDeletionResponse +public class BckndobjectStoreSecretDeletionResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,79 @@ public class BckndobjectStoreSecretDeletionResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretDeletionResponse() { } - - /** - * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndobjectStoreSecretDeletionResponse} class - */ - @Nonnull public BckndobjectStoreSecretDeletionResponse id(@Nonnull final String id) { + + protected BckndobjectStoreSecretDeletionResponse() {} + + /** + * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance and return the same + * instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndobjectStoreSecretDeletionResponse} class + */ + @Nonnull + public BckndobjectStoreSecretDeletionResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndobjectStoreSecretDeletionResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndobjectStoreSecretDeletionResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndobjectStoreSecretDeletionResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndobjectStoreSecretDeletionResponse} class - */ - @Nonnull public BckndobjectStoreSecretDeletionResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndobjectStoreSecretDeletionResponse} instance and return the + * same instance. + * + * @param message Message + * @return The same instance of this {@link BckndobjectStoreSecretDeletionResponse} class + */ + @Nonnull + public BckndobjectStoreSecretDeletionResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndobjectStoreSecretDeletionResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndobjectStoreSecretDeletionResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndobjectStoreSecretDeletionResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretDeletionResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretDeletionResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretDeletionResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretDeletionResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretDeletionResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretDeletionResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretDeletionResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretDeletionResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretDeletionResponse bckndobjectStoreSecretDeletionResponse = (BckndobjectStoreSecretDeletionResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretDeletionResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndobjectStoreSecretDeletionResponse.id) && - Objects.equals(this.message, bckndobjectStoreSecretDeletionResponse.message); + final BckndobjectStoreSecretDeletionResponse bckndobjectStoreSecretDeletionResponse = + (BckndobjectStoreSecretDeletionResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndobjectStoreSecretDeletionResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndobjectStoreSecretDeletionResponse.id) + && Objects.equals(this.message, bckndobjectStoreSecretDeletionResponse.message); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretDeletionResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +191,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndobjectStoreSecretDeletionResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BckndobjectStoreSecretDeletionResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretDeletionResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndobjectStoreSecretDeletionResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance. - * - * @param id Generic ID - * @return The BckndobjectStoreSecretDeletionResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndobjectStoreSecretDeletionResponse} instance. - * - * @param message Message - * @return The BckndobjectStoreSecretDeletionResponse instance. - */ - BckndobjectStoreSecretDeletionResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndobjectStoreSecretDeletionResponse} instance. + * + * @param id Generic ID + * @return The BckndobjectStoreSecretDeletionResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndobjectStoreSecretDeletionResponse} instance. + * + * @param message Message + * @return The BckndobjectStoreSecretDeletionResponse instance. + */ + BckndobjectStoreSecretDeletionResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java index c1919c25..cad5e1a5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretModificationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * BckndobjectStoreSecretModificationResponse - */ +/** BckndobjectStoreSecretModificationResponse */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretModificationResponse +public class BckndobjectStoreSecretModificationResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -48,69 +35,80 @@ public class BckndobjectStoreSecretModificationResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretModificationResponse() { } - - /** - * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance and return the same instance. - * - * @param id Generic ID - * @return The same instance of this {@link BckndobjectStoreSecretModificationResponse} class - */ - @Nonnull public BckndobjectStoreSecretModificationResponse id(@Nonnull final String id) { + + protected BckndobjectStoreSecretModificationResponse() {} + + /** + * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance and return the + * same instance. + * + * @param id Generic ID + * @return The same instance of this {@link BckndobjectStoreSecretModificationResponse} class + */ + @Nonnull + public BckndobjectStoreSecretModificationResponse id(@Nonnull final String id) { this.id = id; return this; } - /** - * Generic ID - * @return id The id of this {@link BckndobjectStoreSecretModificationResponse} instance. - */ - @Nonnull public String getId() { + /** + * Generic ID + * + * @return id The id of this {@link BckndobjectStoreSecretModificationResponse} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance. * - * @param id Generic ID + * @param id Generic ID */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the message of this {@link BckndobjectStoreSecretModificationResponse} instance and return the same instance. - * - * @param message Message - * @return The same instance of this {@link BckndobjectStoreSecretModificationResponse} class - */ - @Nonnull public BckndobjectStoreSecretModificationResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link BckndobjectStoreSecretModificationResponse} instance and return + * the same instance. + * + * @param message Message + * @return The same instance of this {@link BckndobjectStoreSecretModificationResponse} class + */ + @Nonnull + public BckndobjectStoreSecretModificationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Message - * @return message The message of this {@link BckndobjectStoreSecretModificationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Message + * + * @return message The message of this {@link BckndobjectStoreSecretModificationResponse} + * instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link BckndobjectStoreSecretModificationResponse} instance. * - * @param message Message + * @param message Message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretModificationResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretModificationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +118,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretModificationResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretModificationResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretModificationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretModificationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretModificationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretModificationResponse} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +155,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretModificationResponse bckndobjectStoreSecretModificationResponse = (BckndobjectStoreSecretModificationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretModificationResponse.cloudSdkCustomFields) && - Objects.equals(this.id, bckndobjectStoreSecretModificationResponse.id) && - Objects.equals(this.message, bckndobjectStoreSecretModificationResponse.message); + final BckndobjectStoreSecretModificationResponse bckndobjectStoreSecretModificationResponse = + (BckndobjectStoreSecretModificationResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndobjectStoreSecretModificationResponse.cloudSdkCustomFields) + && Objects.equals(this.id, bckndobjectStoreSecretModificationResponse.id) + && Objects.equals(this.message, bckndobjectStoreSecretModificationResponse.message); } @Override @@ -166,19 +170,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretModificationResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +193,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndobjectStoreSecretModificationResponse} instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (message) -> new BckndobjectStoreSecretModificationResponse().id(id).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretModificationResponse} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (message) -> new BckndobjectStoreSecretModificationResponse().id(id).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance. - * - * @param id Generic ID - * @return The BckndobjectStoreSecretModificationResponse builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link BckndobjectStoreSecretModificationResponse} instance. - * - * @param message Message - * @return The BckndobjectStoreSecretModificationResponse instance. - */ - BckndobjectStoreSecretModificationResponse message( @Nonnull final String message); - } + * Set the id of this {@link BckndobjectStoreSecretModificationResponse} instance. + * + * @param id Generic ID + * @return The BckndobjectStoreSecretModificationResponse builder. + */ + Builder1 id(@Nonnull final String id); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link BckndobjectStoreSecretModificationResponse} instance. + * + * @param message Message + * @return The BckndobjectStoreSecretModificationResponse instance. + */ + BckndobjectStoreSecretModificationResponse message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java index f8b06d2e..3030ba80 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatus.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretStatusMetadata; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * This represents the meta-data of a stored secret. The 'data' field of the secret is never retrieved. + * This represents the meta-data of a stored secret. The 'data' field of the secret is never + * retrieved. */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretStatus +public class BckndobjectStoreSecretStatus // CHECKSTYLE:ON { @JsonProperty("metadata") @@ -49,69 +38,79 @@ public class BckndobjectStoreSecretStatus @JsonProperty("name") private String name; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretStatus() { } - - /** - * Set the metadata of this {@link BckndobjectStoreSecretStatus} instance and return the same instance. - * - * @param metadata The metadata of this {@link BckndobjectStoreSecretStatus} - * @return The same instance of this {@link BckndobjectStoreSecretStatus} class - */ - @Nonnull public BckndobjectStoreSecretStatus metadata(@Nonnull final BckndobjectStoreSecretStatusMetadata metadata) { + + protected BckndobjectStoreSecretStatus() {} + + /** + * Set the metadata of this {@link BckndobjectStoreSecretStatus} instance and return the same + * instance. + * + * @param metadata The metadata of this {@link BckndobjectStoreSecretStatus} + * @return The same instance of this {@link BckndobjectStoreSecretStatus} class + */ + @Nonnull + public BckndobjectStoreSecretStatus metadata( + @Nonnull final BckndobjectStoreSecretStatusMetadata metadata) { this.metadata = metadata; return this; } - /** - * Get metadata - * @return metadata The metadata of this {@link BckndobjectStoreSecretStatus} instance. - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata getMetadata() { + /** + * Get metadata + * + * @return metadata The metadata of this {@link BckndobjectStoreSecretStatus} instance. + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata getMetadata() { return metadata; } /** * Set the metadata of this {@link BckndobjectStoreSecretStatus} instance. * - * @param metadata The metadata of this {@link BckndobjectStoreSecretStatus} + * @param metadata The metadata of this {@link BckndobjectStoreSecretStatus} */ - public void setMetadata( @Nonnull final BckndobjectStoreSecretStatusMetadata metadata) { + public void setMetadata(@Nonnull final BckndobjectStoreSecretStatusMetadata metadata) { this.metadata = metadata; } - /** - * Set the name of this {@link BckndobjectStoreSecretStatus} instance and return the same instance. - * - * @param name Name of objectstore - * @return The same instance of this {@link BckndobjectStoreSecretStatus} class - */ - @Nonnull public BckndobjectStoreSecretStatus name(@Nonnull final String name) { + /** + * Set the name of this {@link BckndobjectStoreSecretStatus} instance and return the same + * instance. + * + * @param name Name of objectstore + * @return The same instance of this {@link BckndobjectStoreSecretStatus} class + */ + @Nonnull + public BckndobjectStoreSecretStatus name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of objectstore - * @return name The name of this {@link BckndobjectStoreSecretStatus} instance. - */ - @Nonnull public String getName() { + /** + * Name of objectstore + * + * @return name The name of this {@link BckndobjectStoreSecretStatus} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndobjectStoreSecretStatus} instance. * - * @param name Name of objectstore + * @param name Name of objectstore */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } /** * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretStatus}. + * * @return The set of properties names */ @JsonIgnore @@ -121,32 +120,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretStatus} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretStatus} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretStatus has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretStatus has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretStatus} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretStatus} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,10 +157,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretStatus bckndobjectStoreSecretStatus = (BckndobjectStoreSecretStatus) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretStatus.cloudSdkCustomFields) && - Objects.equals(this.metadata, bckndobjectStoreSecretStatus.metadata) && - Objects.equals(this.name, bckndobjectStoreSecretStatus.name); + final BckndobjectStoreSecretStatus bckndobjectStoreSecretStatus = + (BckndobjectStoreSecretStatus) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndobjectStoreSecretStatus.cloudSdkCustomFields) + && Objects.equals(this.metadata, bckndobjectStoreSecretStatus.metadata) + && Objects.equals(this.name, bckndobjectStoreSecretStatus.name); } @Override @@ -167,19 +171,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretStatus {\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +194,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndobjectStoreSecretStatus} instance. No arguments are required. - */ - public static BckndobjectStoreSecretStatus create() { - return new BckndobjectStoreSecretStatus(); - } - + /** Create a new {@link BckndobjectStoreSecretStatus} instance. No arguments are required. */ + public static BckndobjectStoreSecretStatus create() { + return new BckndobjectStoreSecretStatus(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java index 8d3cb4e0..034101c8 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusMetadata.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Key value pairs of meta-data assigned to the secret when the secret was being created. - */ +/** Key value pairs of meta-data assigned to the secret when the secret was being created. */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretStatusMetadata +public class BckndobjectStoreSecretStatusMetadata // CHECKSTYLE:ON { @JsonProperty("serving.kubeflow.org/s3-usehttps") @@ -87,433 +74,535 @@ public class BckndobjectStoreSecretStatusMetadata @JsonProperty("storage.ai.sap.com/projectId") private String storageAiSapComProjectId; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretStatusMetadata() { } - - /** - * Set the servingKubeflowOrgS3Usehttps of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param servingKubeflowOrgS3Usehttps 0 and 1 values for setting the flag - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Usehttps(@Nonnull final String servingKubeflowOrgS3Usehttps) { + + protected BckndobjectStoreSecretStatusMetadata() {} + + /** + * Set the servingKubeflowOrgS3Usehttps of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param servingKubeflowOrgS3Usehttps 0 and 1 values for setting the flag + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Usehttps( + @Nonnull final String servingKubeflowOrgS3Usehttps) { this.servingKubeflowOrgS3Usehttps = servingKubeflowOrgS3Usehttps; return this; } - /** - * 0 and 1 values for setting the flag - * @return servingKubeflowOrgS3Usehttps The servingKubeflowOrgS3Usehttps of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getServingKubeflowOrgS3Usehttps() { + /** + * 0 and 1 values for setting the flag + * + * @return servingKubeflowOrgS3Usehttps The servingKubeflowOrgS3Usehttps of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getServingKubeflowOrgS3Usehttps() { return servingKubeflowOrgS3Usehttps; } /** - * Set the servingKubeflowOrgS3Usehttps of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the servingKubeflowOrgS3Usehttps of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param servingKubeflowOrgS3Usehttps 0 and 1 values for setting the flag + * @param servingKubeflowOrgS3Usehttps 0 and 1 values for setting the flag */ - public void setServingKubeflowOrgS3Usehttps( @Nonnull final String servingKubeflowOrgS3Usehttps) { + public void setServingKubeflowOrgS3Usehttps(@Nonnull final String servingKubeflowOrgS3Usehttps) { this.servingKubeflowOrgS3Usehttps = servingKubeflowOrgS3Usehttps; } - /** - * Set the servingKubeflowOrgS3Verifyssl of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param servingKubeflowOrgS3Verifyssl 0 and 1 values for setting the flag - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Verifyssl(@Nonnull final String servingKubeflowOrgS3Verifyssl) { + /** + * Set the servingKubeflowOrgS3Verifyssl of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param servingKubeflowOrgS3Verifyssl 0 and 1 values for setting the flag + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Verifyssl( + @Nonnull final String servingKubeflowOrgS3Verifyssl) { this.servingKubeflowOrgS3Verifyssl = servingKubeflowOrgS3Verifyssl; return this; } - /** - * 0 and 1 values for setting the flag - * @return servingKubeflowOrgS3Verifyssl The servingKubeflowOrgS3Verifyssl of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getServingKubeflowOrgS3Verifyssl() { + /** + * 0 and 1 values for setting the flag + * + * @return servingKubeflowOrgS3Verifyssl The servingKubeflowOrgS3Verifyssl of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getServingKubeflowOrgS3Verifyssl() { return servingKubeflowOrgS3Verifyssl; } /** - * Set the servingKubeflowOrgS3Verifyssl of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the servingKubeflowOrgS3Verifyssl of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param servingKubeflowOrgS3Verifyssl 0 and 1 values for setting the flag + * @param servingKubeflowOrgS3Verifyssl 0 and 1 values for setting the flag */ - public void setServingKubeflowOrgS3Verifyssl( @Nonnull final String servingKubeflowOrgS3Verifyssl) { + public void setServingKubeflowOrgS3Verifyssl( + @Nonnull final String servingKubeflowOrgS3Verifyssl) { this.servingKubeflowOrgS3Verifyssl = servingKubeflowOrgS3Verifyssl; } - /** - * Set the servingKubeflowOrgS3Endpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param servingKubeflowOrgS3Endpoint Annotation for endpoint required by KF_Serving - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Endpoint(@Nonnull final String servingKubeflowOrgS3Endpoint) { + /** + * Set the servingKubeflowOrgS3Endpoint of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param servingKubeflowOrgS3Endpoint Annotation for endpoint required by KF_Serving + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Endpoint( + @Nonnull final String servingKubeflowOrgS3Endpoint) { this.servingKubeflowOrgS3Endpoint = servingKubeflowOrgS3Endpoint; return this; } - /** - * Annotation for endpoint required by KF_Serving - * @return servingKubeflowOrgS3Endpoint The servingKubeflowOrgS3Endpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getServingKubeflowOrgS3Endpoint() { + /** + * Annotation for endpoint required by KF_Serving + * + * @return servingKubeflowOrgS3Endpoint The servingKubeflowOrgS3Endpoint of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getServingKubeflowOrgS3Endpoint() { return servingKubeflowOrgS3Endpoint; } /** - * Set the servingKubeflowOrgS3Endpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the servingKubeflowOrgS3Endpoint of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param servingKubeflowOrgS3Endpoint Annotation for endpoint required by KF_Serving + * @param servingKubeflowOrgS3Endpoint Annotation for endpoint required by KF_Serving */ - public void setServingKubeflowOrgS3Endpoint( @Nonnull final String servingKubeflowOrgS3Endpoint) { + public void setServingKubeflowOrgS3Endpoint(@Nonnull final String servingKubeflowOrgS3Endpoint) { this.servingKubeflowOrgS3Endpoint = servingKubeflowOrgS3Endpoint; } - /** - * Set the servingKubeflowOrgS3Region of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param servingKubeflowOrgS3Region Annotation for region required by KF_Serving - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Region(@Nonnull final String servingKubeflowOrgS3Region) { + /** + * Set the servingKubeflowOrgS3Region of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param servingKubeflowOrgS3Region Annotation for region required by KF_Serving + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata servingKubeflowOrgS3Region( + @Nonnull final String servingKubeflowOrgS3Region) { this.servingKubeflowOrgS3Region = servingKubeflowOrgS3Region; return this; } - /** - * Annotation for region required by KF_Serving - * @return servingKubeflowOrgS3Region The servingKubeflowOrgS3Region of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getServingKubeflowOrgS3Region() { + /** + * Annotation for region required by KF_Serving + * + * @return servingKubeflowOrgS3Region The servingKubeflowOrgS3Region of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getServingKubeflowOrgS3Region() { return servingKubeflowOrgS3Region; } /** - * Set the servingKubeflowOrgS3Region of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the servingKubeflowOrgS3Region of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param servingKubeflowOrgS3Region Annotation for region required by KF_Serving + * @param servingKubeflowOrgS3Region Annotation for region required by KF_Serving */ - public void setServingKubeflowOrgS3Region( @Nonnull final String servingKubeflowOrgS3Region) { + public void setServingKubeflowOrgS3Region(@Nonnull final String servingKubeflowOrgS3Region) { this.servingKubeflowOrgS3Region = servingKubeflowOrgS3Region; } - /** - * Set the storageAiSapComType of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComType Storage type of the secret - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComType(@Nonnull final String storageAiSapComType) { + /** + * Set the storageAiSapComType of this {@link BckndobjectStoreSecretStatusMetadata} instance and + * return the same instance. + * + * @param storageAiSapComType Storage type of the secret + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComType( + @Nonnull final String storageAiSapComType) { this.storageAiSapComType = storageAiSapComType; return this; } - /** - * Storage type of the secret - * @return storageAiSapComType The storageAiSapComType of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComType() { + /** + * Storage type of the secret + * + * @return storageAiSapComType The storageAiSapComType of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComType() { return storageAiSapComType; } /** * Set the storageAiSapComType of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComType Storage type of the secret + * @param storageAiSapComType Storage type of the secret */ - public void setStorageAiSapComType( @Nonnull final String storageAiSapComType) { + public void setStorageAiSapComType(@Nonnull final String storageAiSapComType) { this.storageAiSapComType = storageAiSapComType; } - /** - * Set the storageAiSapComBucket of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComBucket bucket assigned to the secret on creation - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComBucket(@Nonnull final String storageAiSapComBucket) { + /** + * Set the storageAiSapComBucket of this {@link BckndobjectStoreSecretStatusMetadata} instance and + * return the same instance. + * + * @param storageAiSapComBucket bucket assigned to the secret on creation + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComBucket( + @Nonnull final String storageAiSapComBucket) { this.storageAiSapComBucket = storageAiSapComBucket; return this; } - /** - * bucket assigned to the secret on creation - * @return storageAiSapComBucket The storageAiSapComBucket of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComBucket() { + /** + * bucket assigned to the secret on creation + * + * @return storageAiSapComBucket The storageAiSapComBucket of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComBucket() { return storageAiSapComBucket; } /** * Set the storageAiSapComBucket of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComBucket bucket assigned to the secret on creation + * @param storageAiSapComBucket bucket assigned to the secret on creation */ - public void setStorageAiSapComBucket( @Nonnull final String storageAiSapComBucket) { + public void setStorageAiSapComBucket(@Nonnull final String storageAiSapComBucket) { this.storageAiSapComBucket = storageAiSapComBucket; } - /** - * Set the storageAiSapComEndpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComEndpoint Endpoint assigned to the secret on creation - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComEndpoint(@Nonnull final String storageAiSapComEndpoint) { + /** + * Set the storageAiSapComEndpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance + * and return the same instance. + * + * @param storageAiSapComEndpoint Endpoint assigned to the secret on creation + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComEndpoint( + @Nonnull final String storageAiSapComEndpoint) { this.storageAiSapComEndpoint = storageAiSapComEndpoint; return this; } - /** - * Endpoint assigned to the secret on creation - * @return storageAiSapComEndpoint The storageAiSapComEndpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComEndpoint() { + /** + * Endpoint assigned to the secret on creation + * + * @return storageAiSapComEndpoint The storageAiSapComEndpoint of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComEndpoint() { return storageAiSapComEndpoint; } /** * Set the storageAiSapComEndpoint of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComEndpoint Endpoint assigned to the secret on creation + * @param storageAiSapComEndpoint Endpoint assigned to the secret on creation */ - public void setStorageAiSapComEndpoint( @Nonnull final String storageAiSapComEndpoint) { + public void setStorageAiSapComEndpoint(@Nonnull final String storageAiSapComEndpoint) { this.storageAiSapComEndpoint = storageAiSapComEndpoint; } - /** - * Set the storageAiSapComRegion of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComRegion Region of the storage server - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComRegion(@Nonnull final String storageAiSapComRegion) { + /** + * Set the storageAiSapComRegion of this {@link BckndobjectStoreSecretStatusMetadata} instance and + * return the same instance. + * + * @param storageAiSapComRegion Region of the storage server + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComRegion( + @Nonnull final String storageAiSapComRegion) { this.storageAiSapComRegion = storageAiSapComRegion; return this; } - /** - * Region of the storage server - * @return storageAiSapComRegion The storageAiSapComRegion of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComRegion() { + /** + * Region of the storage server + * + * @return storageAiSapComRegion The storageAiSapComRegion of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComRegion() { return storageAiSapComRegion; } /** * Set the storageAiSapComRegion of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComRegion Region of the storage server + * @param storageAiSapComRegion Region of the storage server */ - public void setStorageAiSapComRegion( @Nonnull final String storageAiSapComRegion) { + public void setStorageAiSapComRegion(@Nonnull final String storageAiSapComRegion) { this.storageAiSapComRegion = storageAiSapComRegion; } - /** - * Set the storageAiSapComPathPrefix of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComPathPrefix Pathprefix type assigned to the secret on creation. - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComPathPrefix(@Nonnull final String storageAiSapComPathPrefix) { + /** + * Set the storageAiSapComPathPrefix of this {@link BckndobjectStoreSecretStatusMetadata} instance + * and return the same instance. + * + * @param storageAiSapComPathPrefix Pathprefix type assigned to the secret on creation. + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComPathPrefix( + @Nonnull final String storageAiSapComPathPrefix) { this.storageAiSapComPathPrefix = storageAiSapComPathPrefix; return this; } - /** - * Pathprefix type assigned to the secret on creation. - * @return storageAiSapComPathPrefix The storageAiSapComPathPrefix of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComPathPrefix() { + /** + * Pathprefix type assigned to the secret on creation. + * + * @return storageAiSapComPathPrefix The storageAiSapComPathPrefix of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComPathPrefix() { return storageAiSapComPathPrefix; } /** - * Set the storageAiSapComPathPrefix of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the storageAiSapComPathPrefix of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param storageAiSapComPathPrefix Pathprefix type assigned to the secret on creation. + * @param storageAiSapComPathPrefix Pathprefix type assigned to the secret on creation. */ - public void setStorageAiSapComPathPrefix( @Nonnull final String storageAiSapComPathPrefix) { + public void setStorageAiSapComPathPrefix(@Nonnull final String storageAiSapComPathPrefix) { this.storageAiSapComPathPrefix = storageAiSapComPathPrefix; } - /** - * Set the storageAiSapComHdfsNameNode of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComHdfsNameNode name node of the HDFS file system - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComHdfsNameNode(@Nonnull final String storageAiSapComHdfsNameNode) { + /** + * Set the storageAiSapComHdfsNameNode of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param storageAiSapComHdfsNameNode name node of the HDFS file system + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComHdfsNameNode( + @Nonnull final String storageAiSapComHdfsNameNode) { this.storageAiSapComHdfsNameNode = storageAiSapComHdfsNameNode; return this; } - /** - * name node of the HDFS file system - * @return storageAiSapComHdfsNameNode The storageAiSapComHdfsNameNode of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComHdfsNameNode() { + /** + * name node of the HDFS file system + * + * @return storageAiSapComHdfsNameNode The storageAiSapComHdfsNameNode of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComHdfsNameNode() { return storageAiSapComHdfsNameNode; } /** - * Set the storageAiSapComHdfsNameNode of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the storageAiSapComHdfsNameNode of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param storageAiSapComHdfsNameNode name node of the HDFS file system + * @param storageAiSapComHdfsNameNode name node of the HDFS file system */ - public void setStorageAiSapComHdfsNameNode( @Nonnull final String storageAiSapComHdfsNameNode) { + public void setStorageAiSapComHdfsNameNode(@Nonnull final String storageAiSapComHdfsNameNode) { this.storageAiSapComHdfsNameNode = storageAiSapComHdfsNameNode; } - /** - * Set the storageAiSapComHeaders of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComHeaders headers for webHDFS and other protocols - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComHeaders(@Nonnull final String storageAiSapComHeaders) { + /** + * Set the storageAiSapComHeaders of this {@link BckndobjectStoreSecretStatusMetadata} instance + * and return the same instance. + * + * @param storageAiSapComHeaders headers for webHDFS and other protocols + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComHeaders( + @Nonnull final String storageAiSapComHeaders) { this.storageAiSapComHeaders = storageAiSapComHeaders; return this; } - /** - * headers for webHDFS and other protocols - * @return storageAiSapComHeaders The storageAiSapComHeaders of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComHeaders() { + /** + * headers for webHDFS and other protocols + * + * @return storageAiSapComHeaders The storageAiSapComHeaders of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComHeaders() { return storageAiSapComHeaders; } /** * Set the storageAiSapComHeaders of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComHeaders headers for webHDFS and other protocols + * @param storageAiSapComHeaders headers for webHDFS and other protocols */ - public void setStorageAiSapComHeaders( @Nonnull final String storageAiSapComHeaders) { + public void setStorageAiSapComHeaders(@Nonnull final String storageAiSapComHeaders) { this.storageAiSapComHeaders = storageAiSapComHeaders; } - /** - * Set the storageAiSapComContainerUri of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComContainerUri container uri of azure storage - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComContainerUri(@Nonnull final String storageAiSapComContainerUri) { + /** + * Set the storageAiSapComContainerUri of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param storageAiSapComContainerUri container uri of azure storage + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComContainerUri( + @Nonnull final String storageAiSapComContainerUri) { this.storageAiSapComContainerUri = storageAiSapComContainerUri; return this; } - /** - * container uri of azure storage - * @return storageAiSapComContainerUri The storageAiSapComContainerUri of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComContainerUri() { + /** + * container uri of azure storage + * + * @return storageAiSapComContainerUri The storageAiSapComContainerUri of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComContainerUri() { return storageAiSapComContainerUri; } /** - * Set the storageAiSapComContainerUri of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the storageAiSapComContainerUri of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param storageAiSapComContainerUri container uri of azure storage + * @param storageAiSapComContainerUri container uri of azure storage */ - public void setStorageAiSapComContainerUri( @Nonnull final String storageAiSapComContainerUri) { + public void setStorageAiSapComContainerUri(@Nonnull final String storageAiSapComContainerUri) { this.storageAiSapComContainerUri = storageAiSapComContainerUri; } - /** - * Set the storageAiSapComSubscriptionId of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComSubscriptionId subscription id - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComSubscriptionId(@Nonnull final String storageAiSapComSubscriptionId) { + /** + * Set the storageAiSapComSubscriptionId of this {@link BckndobjectStoreSecretStatusMetadata} + * instance and return the same instance. + * + * @param storageAiSapComSubscriptionId subscription id + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComSubscriptionId( + @Nonnull final String storageAiSapComSubscriptionId) { this.storageAiSapComSubscriptionId = storageAiSapComSubscriptionId; return this; } - /** - * subscription id - * @return storageAiSapComSubscriptionId The storageAiSapComSubscriptionId of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComSubscriptionId() { + /** + * subscription id + * + * @return storageAiSapComSubscriptionId The storageAiSapComSubscriptionId of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComSubscriptionId() { return storageAiSapComSubscriptionId; } /** - * Set the storageAiSapComSubscriptionId of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * Set the storageAiSapComSubscriptionId of this {@link BckndobjectStoreSecretStatusMetadata} + * instance. * - * @param storageAiSapComSubscriptionId subscription id + * @param storageAiSapComSubscriptionId subscription id */ - public void setStorageAiSapComSubscriptionId( @Nonnull final String storageAiSapComSubscriptionId) { + public void setStorageAiSapComSubscriptionId( + @Nonnull final String storageAiSapComSubscriptionId) { this.storageAiSapComSubscriptionId = storageAiSapComSubscriptionId; } - /** - * Set the storageAiSapComTenantId of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComTenantId tenant id - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComTenantId(@Nonnull final String storageAiSapComTenantId) { + /** + * Set the storageAiSapComTenantId of this {@link BckndobjectStoreSecretStatusMetadata} instance + * and return the same instance. + * + * @param storageAiSapComTenantId tenant id + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComTenantId( + @Nonnull final String storageAiSapComTenantId) { this.storageAiSapComTenantId = storageAiSapComTenantId; return this; } - /** - * tenant id - * @return storageAiSapComTenantId The storageAiSapComTenantId of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComTenantId() { + /** + * tenant id + * + * @return storageAiSapComTenantId The storageAiSapComTenantId of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComTenantId() { return storageAiSapComTenantId; } /** * Set the storageAiSapComTenantId of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComTenantId tenant id + * @param storageAiSapComTenantId tenant id */ - public void setStorageAiSapComTenantId( @Nonnull final String storageAiSapComTenantId) { + public void setStorageAiSapComTenantId(@Nonnull final String storageAiSapComTenantId) { this.storageAiSapComTenantId = storageAiSapComTenantId; } - /** - * Set the storageAiSapComProjectId of this {@link BckndobjectStoreSecretStatusMetadata} instance and return the same instance. - * - * @param storageAiSapComProjectId project id of google cloud platform - * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class - */ - @Nonnull public BckndobjectStoreSecretStatusMetadata storageAiSapComProjectId(@Nonnull final String storageAiSapComProjectId) { + /** + * Set the storageAiSapComProjectId of this {@link BckndobjectStoreSecretStatusMetadata} instance + * and return the same instance. + * + * @param storageAiSapComProjectId project id of google cloud platform + * @return The same instance of this {@link BckndobjectStoreSecretStatusMetadata} class + */ + @Nonnull + public BckndobjectStoreSecretStatusMetadata storageAiSapComProjectId( + @Nonnull final String storageAiSapComProjectId) { this.storageAiSapComProjectId = storageAiSapComProjectId; return this; } - /** - * project id of google cloud platform - * @return storageAiSapComProjectId The storageAiSapComProjectId of this {@link BckndobjectStoreSecretStatusMetadata} instance. - */ - @Nonnull public String getStorageAiSapComProjectId() { + /** + * project id of google cloud platform + * + * @return storageAiSapComProjectId The storageAiSapComProjectId of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + */ + @Nonnull + public String getStorageAiSapComProjectId() { return storageAiSapComProjectId; } /** * Set the storageAiSapComProjectId of this {@link BckndobjectStoreSecretStatusMetadata} instance. * - * @param storageAiSapComProjectId project id of google cloud platform + * @param storageAiSapComProjectId project id of google cloud platform */ - public void setStorageAiSapComProjectId( @Nonnull final String storageAiSapComProjectId) { + public void setStorageAiSapComProjectId(@Nonnull final String storageAiSapComProjectId) { this.storageAiSapComProjectId = storageAiSapComProjectId; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretStatusMetadata}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretStatusMetadata}. + * * @return The set of properties names */ @JsonIgnore @@ -523,32 +612,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretStatusMetadata} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretStatusMetadata} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretStatusMetadata has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretStatusMetadata has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretStatusMetadata} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretStatusMetadata} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -557,57 +649,134 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretStatusMetadata bckndobjectStoreSecretStatusMetadata = (BckndobjectStoreSecretStatusMetadata) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretStatusMetadata.cloudSdkCustomFields) && - Objects.equals(this.servingKubeflowOrgS3Usehttps, bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Usehttps) && - Objects.equals(this.servingKubeflowOrgS3Verifyssl, bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Verifyssl) && - Objects.equals(this.servingKubeflowOrgS3Endpoint, bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Endpoint) && - Objects.equals(this.servingKubeflowOrgS3Region, bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Region) && - Objects.equals(this.storageAiSapComType, bckndobjectStoreSecretStatusMetadata.storageAiSapComType) && - Objects.equals(this.storageAiSapComBucket, bckndobjectStoreSecretStatusMetadata.storageAiSapComBucket) && - Objects.equals(this.storageAiSapComEndpoint, bckndobjectStoreSecretStatusMetadata.storageAiSapComEndpoint) && - Objects.equals(this.storageAiSapComRegion, bckndobjectStoreSecretStatusMetadata.storageAiSapComRegion) && - Objects.equals(this.storageAiSapComPathPrefix, bckndobjectStoreSecretStatusMetadata.storageAiSapComPathPrefix) && - Objects.equals(this.storageAiSapComHdfsNameNode, bckndobjectStoreSecretStatusMetadata.storageAiSapComHdfsNameNode) && - Objects.equals(this.storageAiSapComHeaders, bckndobjectStoreSecretStatusMetadata.storageAiSapComHeaders) && - Objects.equals(this.storageAiSapComContainerUri, bckndobjectStoreSecretStatusMetadata.storageAiSapComContainerUri) && - Objects.equals(this.storageAiSapComSubscriptionId, bckndobjectStoreSecretStatusMetadata.storageAiSapComSubscriptionId) && - Objects.equals(this.storageAiSapComTenantId, bckndobjectStoreSecretStatusMetadata.storageAiSapComTenantId) && - Objects.equals(this.storageAiSapComProjectId, bckndobjectStoreSecretStatusMetadata.storageAiSapComProjectId); + final BckndobjectStoreSecretStatusMetadata bckndobjectStoreSecretStatusMetadata = + (BckndobjectStoreSecretStatusMetadata) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndobjectStoreSecretStatusMetadata.cloudSdkCustomFields) + && Objects.equals( + this.servingKubeflowOrgS3Usehttps, + bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Usehttps) + && Objects.equals( + this.servingKubeflowOrgS3Verifyssl, + bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Verifyssl) + && Objects.equals( + this.servingKubeflowOrgS3Endpoint, + bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Endpoint) + && Objects.equals( + this.servingKubeflowOrgS3Region, + bckndobjectStoreSecretStatusMetadata.servingKubeflowOrgS3Region) + && Objects.equals( + this.storageAiSapComType, bckndobjectStoreSecretStatusMetadata.storageAiSapComType) + && Objects.equals( + this.storageAiSapComBucket, bckndobjectStoreSecretStatusMetadata.storageAiSapComBucket) + && Objects.equals( + this.storageAiSapComEndpoint, + bckndobjectStoreSecretStatusMetadata.storageAiSapComEndpoint) + && Objects.equals( + this.storageAiSapComRegion, bckndobjectStoreSecretStatusMetadata.storageAiSapComRegion) + && Objects.equals( + this.storageAiSapComPathPrefix, + bckndobjectStoreSecretStatusMetadata.storageAiSapComPathPrefix) + && Objects.equals( + this.storageAiSapComHdfsNameNode, + bckndobjectStoreSecretStatusMetadata.storageAiSapComHdfsNameNode) + && Objects.equals( + this.storageAiSapComHeaders, + bckndobjectStoreSecretStatusMetadata.storageAiSapComHeaders) + && Objects.equals( + this.storageAiSapComContainerUri, + bckndobjectStoreSecretStatusMetadata.storageAiSapComContainerUri) + && Objects.equals( + this.storageAiSapComSubscriptionId, + bckndobjectStoreSecretStatusMetadata.storageAiSapComSubscriptionId) + && Objects.equals( + this.storageAiSapComTenantId, + bckndobjectStoreSecretStatusMetadata.storageAiSapComTenantId) + && Objects.equals( + this.storageAiSapComProjectId, + bckndobjectStoreSecretStatusMetadata.storageAiSapComProjectId); } @Override public int hashCode() { - return Objects.hash(servingKubeflowOrgS3Usehttps, servingKubeflowOrgS3Verifyssl, servingKubeflowOrgS3Endpoint, servingKubeflowOrgS3Region, storageAiSapComType, storageAiSapComBucket, storageAiSapComEndpoint, storageAiSapComRegion, storageAiSapComPathPrefix, storageAiSapComHdfsNameNode, storageAiSapComHeaders, storageAiSapComContainerUri, storageAiSapComSubscriptionId, storageAiSapComTenantId, storageAiSapComProjectId, cloudSdkCustomFields); + return Objects.hash( + servingKubeflowOrgS3Usehttps, + servingKubeflowOrgS3Verifyssl, + servingKubeflowOrgS3Endpoint, + servingKubeflowOrgS3Region, + storageAiSapComType, + storageAiSapComBucket, + storageAiSapComEndpoint, + storageAiSapComRegion, + storageAiSapComPathPrefix, + storageAiSapComHdfsNameNode, + storageAiSapComHeaders, + storageAiSapComContainerUri, + storageAiSapComSubscriptionId, + storageAiSapComTenantId, + storageAiSapComProjectId, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretStatusMetadata {\n"); - sb.append(" servingKubeflowOrgS3Usehttps: ").append(toIndentedString(servingKubeflowOrgS3Usehttps)).append("\n"); - sb.append(" servingKubeflowOrgS3Verifyssl: ").append(toIndentedString(servingKubeflowOrgS3Verifyssl)).append("\n"); - sb.append(" servingKubeflowOrgS3Endpoint: ").append(toIndentedString(servingKubeflowOrgS3Endpoint)).append("\n"); - sb.append(" servingKubeflowOrgS3Region: ").append(toIndentedString(servingKubeflowOrgS3Region)).append("\n"); - sb.append(" storageAiSapComType: ").append(toIndentedString(storageAiSapComType)).append("\n"); - sb.append(" storageAiSapComBucket: ").append(toIndentedString(storageAiSapComBucket)).append("\n"); - sb.append(" storageAiSapComEndpoint: ").append(toIndentedString(storageAiSapComEndpoint)).append("\n"); - sb.append(" storageAiSapComRegion: ").append(toIndentedString(storageAiSapComRegion)).append("\n"); - sb.append(" storageAiSapComPathPrefix: ").append(toIndentedString(storageAiSapComPathPrefix)).append("\n"); - sb.append(" storageAiSapComHdfsNameNode: ").append(toIndentedString(storageAiSapComHdfsNameNode)).append("\n"); - sb.append(" storageAiSapComHeaders: ").append(toIndentedString(storageAiSapComHeaders)).append("\n"); - sb.append(" storageAiSapComContainerUri: ").append(toIndentedString(storageAiSapComContainerUri)).append("\n"); - sb.append(" storageAiSapComSubscriptionId: ").append(toIndentedString(storageAiSapComSubscriptionId)).append("\n"); - sb.append(" storageAiSapComTenantId: ").append(toIndentedString(storageAiSapComTenantId)).append("\n"); - sb.append(" storageAiSapComProjectId: ").append(toIndentedString(storageAiSapComProjectId)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" servingKubeflowOrgS3Usehttps: ") + .append(toIndentedString(servingKubeflowOrgS3Usehttps)) + .append("\n"); + sb.append(" servingKubeflowOrgS3Verifyssl: ") + .append(toIndentedString(servingKubeflowOrgS3Verifyssl)) + .append("\n"); + sb.append(" servingKubeflowOrgS3Endpoint: ") + .append(toIndentedString(servingKubeflowOrgS3Endpoint)) + .append("\n"); + sb.append(" servingKubeflowOrgS3Region: ") + .append(toIndentedString(servingKubeflowOrgS3Region)) + .append("\n"); + sb.append(" storageAiSapComType: ") + .append(toIndentedString(storageAiSapComType)) + .append("\n"); + sb.append(" storageAiSapComBucket: ") + .append(toIndentedString(storageAiSapComBucket)) + .append("\n"); + sb.append(" storageAiSapComEndpoint: ") + .append(toIndentedString(storageAiSapComEndpoint)) + .append("\n"); + sb.append(" storageAiSapComRegion: ") + .append(toIndentedString(storageAiSapComRegion)) + .append("\n"); + sb.append(" storageAiSapComPathPrefix: ") + .append(toIndentedString(storageAiSapComPathPrefix)) + .append("\n"); + sb.append(" storageAiSapComHdfsNameNode: ") + .append(toIndentedString(storageAiSapComHdfsNameNode)) + .append("\n"); + sb.append(" storageAiSapComHeaders: ") + .append(toIndentedString(storageAiSapComHeaders)) + .append("\n"); + sb.append(" storageAiSapComContainerUri: ") + .append(toIndentedString(storageAiSapComContainerUri)) + .append("\n"); + sb.append(" storageAiSapComSubscriptionId: ") + .append(toIndentedString(storageAiSapComSubscriptionId)) + .append("\n"); + sb.append(" storageAiSapComTenantId: ") + .append(toIndentedString(storageAiSapComTenantId)) + .append("\n"); + sb.append(" storageAiSapComProjectId: ") + .append(toIndentedString(storageAiSapComProjectId)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -616,12 +785,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link BckndobjectStoreSecretStatusMetadata} instance. No arguments are required. - */ - public static BckndobjectStoreSecretStatusMetadata create() { - return new BckndobjectStoreSecretStatusMetadata(); - } - + /** + * Create a new {@link BckndobjectStoreSecretStatusMetadata} instance. No arguments are required. + */ + public static BckndobjectStoreSecretStatusMetadata create() { + return new BckndobjectStoreSecretStatusMetadata(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java index 28647acc..077d0918 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretStatusResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,27 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndobjectStoreSecretStatus; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * This represents a list of meta-data of a stored secret. The 'data' field of the secret is never retrieved. + * This represents a list of meta-data of a stored secret. The 'data' field of the secret is + * never retrieved. */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretStatusResponse +public class BckndobjectStoreSecretStatusResponse // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +41,66 @@ public class BckndobjectStoreSecretStatusResponse @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretStatusResponse() { } - - /** - * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link BckndobjectStoreSecretStatusResponse} class - */ - @Nonnull public BckndobjectStoreSecretStatusResponse count(@Nonnull final Integer count) { + + protected BckndobjectStoreSecretStatusResponse() {} + + /** + * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance and return the same + * instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link BckndobjectStoreSecretStatusResponse} class + */ + @Nonnull + public BckndobjectStoreSecretStatusResponse count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link BckndobjectStoreSecretStatusResponse} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link BckndobjectStoreSecretStatusResponse} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance and return the same instance. - * - * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} - * @return The same instance of this {@link BckndobjectStoreSecretStatusResponse} class - */ - @Nonnull public BckndobjectStoreSecretStatusResponse resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance and return the + * same instance. + * + * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} + * @return The same instance of this {@link BckndobjectStoreSecretStatusResponse} class + */ + @Nonnull + public BckndobjectStoreSecretStatusResponse resources( + @Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link BckndobjectStoreSecretStatusResponse}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link BckndobjectStoreSecretStatusResponse} */ - @Nonnull public BckndobjectStoreSecretStatusResponse addResourcesItem( @Nonnull final BckndobjectStoreSecretStatus resourcesItem) { + @Nonnull + public BckndobjectStoreSecretStatusResponse addResourcesItem( + @Nonnull final BckndobjectStoreSecretStatus resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +108,29 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link BckndobjectStoreSecretStatusResponse} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link BckndobjectStoreSecretStatusResponse} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. * - * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} + * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretStatusResponse}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretStatusResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -136,32 +140,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretStatusResponse} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretStatusResponse} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretStatusResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretStatusResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretStatusResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretStatusResponse} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -170,10 +177,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretStatusResponse bckndobjectStoreSecretStatusResponse = (BckndobjectStoreSecretStatusResponse) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretStatusResponse.cloudSdkCustomFields) && - Objects.equals(this.count, bckndobjectStoreSecretStatusResponse.count) && - Objects.equals(this.resources, bckndobjectStoreSecretStatusResponse.resources); + final BckndobjectStoreSecretStatusResponse bckndobjectStoreSecretStatusResponse = + (BckndobjectStoreSecretStatusResponse) o; + return Objects.equals( + this.cloudSdkCustomFields, bckndobjectStoreSecretStatusResponse.cloudSdkCustomFields) + && Objects.equals(this.count, bckndobjectStoreSecretStatusResponse.count) + && Objects.equals(this.resources, bckndobjectStoreSecretStatusResponse.resources); } @Override @@ -182,19 +191,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretStatusResponse {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,45 +214,46 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndobjectStoreSecretStatusResponse} instance with all required arguments. + */ + public static Builder create() { + return (count) -> + (resources) -> new BckndobjectStoreSecretStatusResponse().count(count).resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretStatusResponse} instance with all required arguments. - */ - public static Builder create() { - return (count) -> (resources) -> new BckndobjectStoreSecretStatusResponse().count(count).resources(resources); - } + * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance. + * + * @param count Number of the resource instances in the list + * @return The BckndobjectStoreSecretStatusResponse builder. + */ + Builder1 count(@Nonnull final Integer count); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the count of this {@link BckndobjectStoreSecretStatusResponse} instance. - * - * @param count Number of the resource instances in the list - * @return The BckndobjectStoreSecretStatusResponse builder. - */ - Builder1 count( @Nonnull final Integer count); - } + * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. + * + * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} + * @return The BckndobjectStoreSecretStatusResponse instance. + */ + BckndobjectStoreSecretStatusResponse resources( + @Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. - * - * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} - * @return The BckndobjectStoreSecretStatusResponse instance. - */ - BckndobjectStoreSecretStatusResponse resources( @Nonnull final List resources); - /** - * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. - * - * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} - * @return The BckndobjectStoreSecretStatusResponse instance. - */ - default BckndobjectStoreSecretStatusResponse resources( @Nonnull final BckndobjectStoreSecretStatus... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link BckndobjectStoreSecretStatusResponse} instance. + * + * @param resources The resources of this {@link BckndobjectStoreSecretStatusResponse} + * @return The BckndobjectStoreSecretStatusResponse instance. + */ + default BckndobjectStoreSecretStatusResponse resources( + @Nonnull final BckndobjectStoreSecretStatus... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java index d8cd2fc7..93095269 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * This represents all the meta-data and extra information to be stored as a k8-secret - */ +/** This represents all the meta-data and extra information to be stored as a k8-secret */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretWithSensitiveDataRequest +public class BckndobjectStoreSecretWithSensitiveDataRequest // CHECKSTYLE:ON { @JsonProperty("name") @@ -69,265 +56,313 @@ public class BckndobjectStoreSecretWithSensitiveDataRequest @JsonProperty("data") private Object data; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretWithSensitiveDataRequest() { } - - /** - * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest name(@Nonnull final String name) { + + protected BckndobjectStoreSecretWithSensitiveDataRequest() {} + + /** + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return + * the same instance. + * + * @param name Name of the object store for the secret object to be created. Can be used later on + * check for existence of the secret. + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. - * @return name The name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getName() { + /** + * Name of the object store for the secret object to be created. Can be used later on check for + * existence of the secret. + * + * @return name The name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. + * @param name Name of the object store for the secret object to be created. Can be used later on + * check for existence of the secret. */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param type Storage type e.g. S3, GCS,... - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest type(@Nonnull final String type) { + /** + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return + * the same instance. + * + * @param type Storage type e.g. S3, GCS,... + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest type(@Nonnull final String type) { this.type = type; return this; } - /** - * Storage type e.g. S3, GCS,... - * @return type The type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getType() { + /** + * Storage type e.g. S3, GCS,... + * + * @return type The type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + */ + @Nonnull + public String getType() { return type; } /** * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param type Storage type e.g. S3, GCS,... + * @param type Storage type e.g. S3, GCS,... */ - public void setType( @Nonnull final String type) { + public void setType(@Nonnull final String type) { this.type = type; } - /** - * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param bucket Bucket to be used - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest bucket(@Nonnull final String bucket) { + /** + * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param bucket Bucket to be used + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest bucket(@Nonnull final String bucket) { this.bucket = bucket; return this; } - /** - * Bucket to be used - * @return bucket The bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getBucket() { + /** + * Bucket to be used + * + * @return bucket The bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} + * instance. + */ + @Nonnull + public String getBucket() { return bucket; } /** * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param bucket Bucket to be used + * @param bucket Bucket to be used */ - public void setBucket( @Nonnull final String bucket) { + public void setBucket(@Nonnull final String bucket) { this.bucket = bucket; } - /** - * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param endpoint Optional parameter - URL of the storage server (S3 only) - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest endpoint(@Nonnull final String endpoint) { + /** + * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param endpoint Optional parameter - URL of the storage server (S3 only) + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest endpoint(@Nonnull final String endpoint) { this.endpoint = endpoint; return this; } - /** - * Optional parameter - URL of the storage server (S3 only) - * @return endpoint The endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getEndpoint() { + /** + * Optional parameter - URL of the storage server (S3 only) + * + * @return endpoint The endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} + * instance. + */ + @Nonnull + public String getEndpoint() { return endpoint; } /** * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param endpoint Optional parameter - URL of the storage server (S3 only) + * @param endpoint Optional parameter - URL of the storage server (S3 only) */ - public void setEndpoint( @Nonnull final String endpoint) { + public void setEndpoint(@Nonnull final String endpoint) { this.endpoint = endpoint; } - /** - * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param region Optional parameter - Region of the storage server (S3 only) - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest region(@Nonnull final String region) { + /** + * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param region Optional parameter - Region of the storage server (S3 only) + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest region(@Nonnull final String region) { this.region = region; return this; } - /** - * Optional parameter - Region of the storage server (S3 only) - * @return region The region of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getRegion() { + /** + * Optional parameter - Region of the storage server (S3 only) + * + * @return region The region of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} + * instance. + */ + @Nonnull + public String getRegion() { return region; } /** * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param region Optional parameter - Region of the storage server (S3 only) + * @param region Optional parameter - Region of the storage server (S3 only) */ - public void setRegion( @Nonnull final String region) { + public void setRegion(@Nonnull final String region) { this.region = region; } - /** - * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param pathPrefix prefix folder to be added to storage path - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest pathPrefix(@Nonnull final String pathPrefix) { + /** + * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param pathPrefix prefix folder to be added to storage path + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest pathPrefix( + @Nonnull final String pathPrefix) { this.pathPrefix = pathPrefix; return this; } - /** - * prefix folder to be added to storage path - * @return pathPrefix The pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getPathPrefix() { + /** + * prefix folder to be added to storage path + * + * @return pathPrefix The pathPrefix of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequest} instance. + */ + @Nonnull + public String getPathPrefix() { return pathPrefix; } /** * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param pathPrefix prefix folder to be added to storage path + * @param pathPrefix prefix folder to be added to storage path */ - public void setPathPrefix( @Nonnull final String pathPrefix) { + public void setPathPrefix(@Nonnull final String pathPrefix) { this.pathPrefix = pathPrefix; } - /** - * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest verifyssl(@Nonnull final String verifyssl) { + /** + * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest verifyssl(@Nonnull final String verifyssl) { this.verifyssl = verifyssl; return this; } - /** - * 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl - * @return verifyssl The verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getVerifyssl() { + /** + * 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl + * + * @return verifyssl The verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} + * instance. + */ + @Nonnull + public String getVerifyssl() { return verifyssl; } /** * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl + * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl */ - public void setVerifyssl( @Nonnull final String verifyssl) { + public void setVerifyssl(@Nonnull final String verifyssl) { this.verifyssl = verifyssl; } - /** - * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest usehttps(@Nonnull final String usehttps) { + /** + * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and + * return the same instance. + * + * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest usehttps(@Nonnull final String usehttps) { this.usehttps = usehttps; return this; } - /** - * 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps - * @return usehttps The usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public String getUsehttps() { + /** + * 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps + * + * @return usehttps The usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} + * instance. + */ + @Nonnull + public String getUsehttps() { return usehttps; } /** * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps + * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps */ - public void setUsehttps( @Nonnull final String usehttps) { + public void setUsehttps(@Nonnull final String usehttps) { this.usehttps = usehttps; } - /** - * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return the same instance. - * - * @param data key:value pairs of data - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequest data(@Nonnull final Object data) { + /** + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance and return + * the same instance. + * + * @param data key:value pairs of data + * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequest data(@Nonnull final Object data) { this.data = data; return this; } - /** - * key:value pairs of data - * @return data The data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - */ - @Nonnull public Object getData() { + /** + * key:value pairs of data + * + * @return data The data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + */ + @Nonnull + public Object getData() { return data; } /** * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. * - * @param data key:value pairs of data + * @param data key:value pairs of data */ - public void setData( @Nonnull final Object data) { + public void setData(@Nonnull final Object data) { this.data = data; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretWithSensitiveDataRequest}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretWithSensitiveDataRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -337,32 +372,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretWithSensitiveDataRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretWithSensitiveDataRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -371,26 +409,42 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretWithSensitiveDataRequest bckndobjectStoreSecretWithSensitiveDataRequest = (BckndobjectStoreSecretWithSensitiveDataRequest) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretWithSensitiveDataRequest.cloudSdkCustomFields) && - Objects.equals(this.name, bckndobjectStoreSecretWithSensitiveDataRequest.name) && - Objects.equals(this.type, bckndobjectStoreSecretWithSensitiveDataRequest.type) && - Objects.equals(this.bucket, bckndobjectStoreSecretWithSensitiveDataRequest.bucket) && - Objects.equals(this.endpoint, bckndobjectStoreSecretWithSensitiveDataRequest.endpoint) && - Objects.equals(this.region, bckndobjectStoreSecretWithSensitiveDataRequest.region) && - Objects.equals(this.pathPrefix, bckndobjectStoreSecretWithSensitiveDataRequest.pathPrefix) && - Objects.equals(this.verifyssl, bckndobjectStoreSecretWithSensitiveDataRequest.verifyssl) && - Objects.equals(this.usehttps, bckndobjectStoreSecretWithSensitiveDataRequest.usehttps) && - Objects.equals(this.data, bckndobjectStoreSecretWithSensitiveDataRequest.data); + final BckndobjectStoreSecretWithSensitiveDataRequest + bckndobjectStoreSecretWithSensitiveDataRequest = + (BckndobjectStoreSecretWithSensitiveDataRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndobjectStoreSecretWithSensitiveDataRequest.cloudSdkCustomFields) + && Objects.equals(this.name, bckndobjectStoreSecretWithSensitiveDataRequest.name) + && Objects.equals(this.type, bckndobjectStoreSecretWithSensitiveDataRequest.type) + && Objects.equals(this.bucket, bckndobjectStoreSecretWithSensitiveDataRequest.bucket) + && Objects.equals(this.endpoint, bckndobjectStoreSecretWithSensitiveDataRequest.endpoint) + && Objects.equals(this.region, bckndobjectStoreSecretWithSensitiveDataRequest.region) + && Objects.equals( + this.pathPrefix, bckndobjectStoreSecretWithSensitiveDataRequest.pathPrefix) + && Objects.equals(this.verifyssl, bckndobjectStoreSecretWithSensitiveDataRequest.verifyssl) + && Objects.equals(this.usehttps, bckndobjectStoreSecretWithSensitiveDataRequest.usehttps) + && Objects.equals(this.data, bckndobjectStoreSecretWithSensitiveDataRequest.data); } @Override public int hashCode() { - return Objects.hash(name, type, bucket, endpoint, region, pathPrefix, verifyssl, usehttps, data, cloudSdkCustomFields); + return Objects.hash( + name, + type, + bucket, + endpoint, + region, + pathPrefix, + verifyssl, + usehttps, + data, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretWithSensitiveDataRequest {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -402,14 +456,15 @@ public int hashCode() { sb.append(" verifyssl: ").append(toIndentedString(verifyssl)).append("\n"); sb.append(" usehttps: ").append(toIndentedString(usehttps)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -418,48 +473,51 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndobjectStoreSecretWithSensitiveDataRequest} instance with all required arguments. + */ + public static Builder create() { + return (name) -> + (type) -> + (data) -> + new BckndobjectStoreSecretWithSensitiveDataRequest() + .name(name) + .type(type) + .data(data); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (type) -> (data) -> new BckndobjectStoreSecretWithSensitiveDataRequest().name(name).type(type).data(data); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - * - * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. - * @return The BckndobjectStoreSecretWithSensitiveDataRequest builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - * - * @param type Storage type e.g. S3, GCS,... - * @return The BckndobjectStoreSecretWithSensitiveDataRequest builder. - */ - Builder2 type( @Nonnull final String type); - } + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param name Name of the object store for the secret object to be created. Can be used later + * on check for existence of the secret. + * @return The BckndobjectStoreSecretWithSensitiveDataRequest builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. - * - * @param data key:value pairs of data - * @return The BckndobjectStoreSecretWithSensitiveDataRequest instance. - */ - BckndobjectStoreSecretWithSensitiveDataRequest data( @Nonnull final Object data); - } + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param type Storage type e.g. S3, GCS,... + * @return The BckndobjectStoreSecretWithSensitiveDataRequest builder. + */ + Builder2 type(@Nonnull final String type); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequest} instance. + * + * @param data key:value pairs of data + * @return The BckndobjectStoreSecretWithSensitiveDataRequest instance. + */ + BckndobjectStoreSecretWithSensitiveDataRequest data(@Nonnull final Object data); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java index 4e1d3bd1..9a829d2c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * This represents all the meta-data and extra information to be stored as a k8-secret - */ +/** This represents all the meta-data and extra information to be stored as a k8-secret */ // CHECKSTYLE:OFF -public class BckndobjectStoreSecretWithSensitiveDataRequestForPostCall +public class BckndobjectStoreSecretWithSensitiveDataRequestForPostCall // CHECKSTYLE:ON { @JsonProperty("name") @@ -69,265 +56,342 @@ public class BckndobjectStoreSecretWithSensitiveDataRequestForPostCall @JsonProperty("data") private Object data; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected BckndobjectStoreSecretWithSensitiveDataRequestForPostCall() { } - - /** - * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall name(@Nonnull final String name) { + + protected BckndobjectStoreSecretWithSensitiveDataRequestForPostCall() {} + + /** + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance + * and return the same instance. + * + * @param name Name of the object store for the secret object to be created. Can be used later on + * check for existence of the secret. + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall name( + @Nonnull final String name) { this.name = name; return this; } - /** - * Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. - * @return name The name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getName() { + /** + * Name of the object store for the secret object to be created. Can be used later on check for + * existence of the secret. + * + * @return name The name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. + */ + @Nonnull + public String getName() { return name; } /** - * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. + * @param name Name of the object store for the secret object to be created. Can be used later on + * check for existence of the secret. */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param type Storage type e.g. S3, GCS,... - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall type(@Nonnull final String type) { + /** + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance + * and return the same instance. + * + * @param type Storage type e.g. S3, GCS,... + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall type( + @Nonnull final String type) { this.type = type; return this; } - /** - * Storage type e.g. S3, GCS,... - * @return type The type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getType() { + /** + * Storage type e.g. S3, GCS,... + * + * @return type The type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. + */ + @Nonnull + public String getType() { return type; } /** - * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param type Storage type e.g. S3, GCS,... + * @param type Storage type e.g. S3, GCS,... */ - public void setType( @Nonnull final String type) { + public void setType(@Nonnull final String type) { this.type = type; } - /** - * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param bucket Bucket to be used - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bucket(@Nonnull final String bucket) { + /** + * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance and return the same instance. + * + * @param bucket Bucket to be used + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bucket( + @Nonnull final String bucket) { this.bucket = bucket; return this; } - /** - * Bucket to be used - * @return bucket The bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getBucket() { + /** + * Bucket to be used + * + * @return bucket The bucket of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + */ + @Nonnull + public String getBucket() { return bucket; } /** - * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the bucket of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param bucket Bucket to be used + * @param bucket Bucket to be used */ - public void setBucket( @Nonnull final String bucket) { + public void setBucket(@Nonnull final String bucket) { this.bucket = bucket; } - /** - * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param endpoint Optional parameter - URL of the storage server (S3 only) - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall endpoint(@Nonnull final String endpoint) { + /** + * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance and return the same instance. + * + * @param endpoint Optional parameter - URL of the storage server (S3 only) + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall endpoint( + @Nonnull final String endpoint) { this.endpoint = endpoint; return this; } - /** - * Optional parameter - URL of the storage server (S3 only) - * @return endpoint The endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getEndpoint() { + /** + * Optional parameter - URL of the storage server (S3 only) + * + * @return endpoint The endpoint of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + */ + @Nonnull + public String getEndpoint() { return endpoint; } /** - * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the endpoint of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param endpoint Optional parameter - URL of the storage server (S3 only) + * @param endpoint Optional parameter - URL of the storage server (S3 only) */ - public void setEndpoint( @Nonnull final String endpoint) { + public void setEndpoint(@Nonnull final String endpoint) { this.endpoint = endpoint; } - /** - * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param region Optional parameter - Region of the storage server (S3 only) - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall region(@Nonnull final String region) { + /** + * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance and return the same instance. + * + * @param region Optional parameter - Region of the storage server (S3 only) + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall region( + @Nonnull final String region) { this.region = region; return this; } - /** - * Optional parameter - Region of the storage server (S3 only) - * @return region The region of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getRegion() { + /** + * Optional parameter - Region of the storage server (S3 only) + * + * @return region The region of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + */ + @Nonnull + public String getRegion() { return region; } /** - * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the region of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param region Optional parameter - Region of the storage server (S3 only) + * @param region Optional parameter - Region of the storage server (S3 only) */ - public void setRegion( @Nonnull final String region) { + public void setRegion(@Nonnull final String region) { this.region = region; } - /** - * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param pathPrefix prefix folder to be added to storage path - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall pathPrefix(@Nonnull final String pathPrefix) { + /** + * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance and return the same instance. + * + * @param pathPrefix prefix folder to be added to storage path + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall pathPrefix( + @Nonnull final String pathPrefix) { this.pathPrefix = pathPrefix; return this; } - /** - * prefix folder to be added to storage path - * @return pathPrefix The pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getPathPrefix() { + /** + * prefix folder to be added to storage path + * + * @return pathPrefix The pathPrefix of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + */ + @Nonnull + public String getPathPrefix() { return pathPrefix; } /** - * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the pathPrefix of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param pathPrefix prefix folder to be added to storage path + * @param pathPrefix prefix folder to be added to storage path */ - public void setPathPrefix( @Nonnull final String pathPrefix) { + public void setPathPrefix(@Nonnull final String pathPrefix) { this.pathPrefix = pathPrefix; } - /** - * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall verifyssl(@Nonnull final String verifyssl) { + /** + * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance and return the same instance. + * + * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall verifyssl( + @Nonnull final String verifyssl) { this.verifyssl = verifyssl; return this; } - /** - * 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl - * @return verifyssl The verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getVerifyssl() { + /** + * 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl + * + * @return verifyssl The verifyssl of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + */ + @Nonnull + public String getVerifyssl() { return verifyssl; } /** - * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the verifyssl of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl + * @param verifyssl 0, 1 flag for the KF-serving annotation - serving.kubeflow.org/s3-verifyssl */ - public void setVerifyssl( @Nonnull final String verifyssl) { + public void setVerifyssl(@Nonnull final String verifyssl) { this.verifyssl = verifyssl; } - /** - * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall usehttps(@Nonnull final String usehttps) { + /** + * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance and return the same instance. + * + * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall usehttps( + @Nonnull final String usehttps) { this.usehttps = usehttps; return this; } - /** - * 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps - * @return usehttps The usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public String getUsehttps() { + /** + * 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps + * + * @return usehttps The usehttps of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + */ + @Nonnull + public String getUsehttps() { return usehttps; } /** - * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the usehttps of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps + * @param usehttps 0, 1 flag for KF-serving annotations - serving.kubeflow.org/s3-usehttps */ - public void setUsehttps( @Nonnull final String usehttps) { + public void setUsehttps(@Nonnull final String usehttps) { this.usehttps = usehttps; } - /** - * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance and return the same instance. - * - * @param data key:value pairs of data - * @return The same instance of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class - */ - @Nonnull public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall data(@Nonnull final Object data) { + /** + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance + * and return the same instance. + * + * @param data key:value pairs of data + * @return The same instance of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} class + */ + @Nonnull + public BckndobjectStoreSecretWithSensitiveDataRequestForPostCall data( + @Nonnull final Object data) { this.data = data; return this; } - /** - * key:value pairs of data - * @return data The data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - */ - @Nonnull public Object getData() { + /** + * key:value pairs of data + * + * @return data The data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. + */ + @Nonnull + public Object getData() { return data; } /** - * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. * - * @param data key:value pairs of data + * @param data key:value pairs of data */ - public void setData( @Nonnull final Object data) { + public void setData(@Nonnull final Object data) { this.data = data; } /** - * Get the names of the unrecognizable properties of the {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall}. + * Get the names of the unrecognizable properties of the {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall}. + * * @return The set of properties names */ @JsonIgnore @@ -337,32 +401,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("BckndobjectStoreSecretWithSensitiveDataRequestForPostCall has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "BckndobjectStoreSecretWithSensitiveDataRequestForPostCall has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -371,26 +440,48 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall bckndobjectStoreSecretWithSensitiveDataRequestForPostCall = (BckndobjectStoreSecretWithSensitiveDataRequestForPostCall) o; - return Objects.equals(this.cloudSdkCustomFields, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.cloudSdkCustomFields) && - Objects.equals(this.name, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.name) && - Objects.equals(this.type, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.type) && - Objects.equals(this.bucket, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.bucket) && - Objects.equals(this.endpoint, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.endpoint) && - Objects.equals(this.region, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.region) && - Objects.equals(this.pathPrefix, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.pathPrefix) && - Objects.equals(this.verifyssl, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.verifyssl) && - Objects.equals(this.usehttps, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.usehttps) && - Objects.equals(this.data, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.data); + final BckndobjectStoreSecretWithSensitiveDataRequestForPostCall + bckndobjectStoreSecretWithSensitiveDataRequestForPostCall = + (BckndobjectStoreSecretWithSensitiveDataRequestForPostCall) o; + return Objects.equals( + this.cloudSdkCustomFields, + bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.cloudSdkCustomFields) + && Objects.equals(this.name, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.name) + && Objects.equals(this.type, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.type) + && Objects.equals( + this.bucket, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.bucket) + && Objects.equals( + this.endpoint, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.endpoint) + && Objects.equals( + this.region, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.region) + && Objects.equals( + this.pathPrefix, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.pathPrefix) + && Objects.equals( + this.verifyssl, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.verifyssl) + && Objects.equals( + this.usehttps, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.usehttps) + && Objects.equals( + this.data, bckndobjectStoreSecretWithSensitiveDataRequestForPostCall.data); } @Override public int hashCode() { - return Objects.hash(name, type, bucket, endpoint, region, pathPrefix, verifyssl, usehttps, data, cloudSdkCustomFields); + return Objects.hash( + name, + type, + bucket, + endpoint, + region, + pathPrefix, + verifyssl, + usehttps, + data, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class BckndobjectStoreSecretWithSensitiveDataRequestForPostCall {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -402,14 +493,15 @@ public int hashCode() { sb.append(" verifyssl: ").append(toIndentedString(verifyssl)).append("\n"); sb.append(" usehttps: ").append(toIndentedString(usehttps)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -418,48 +510,55 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance with all required + * arguments. + */ + public static Builder create() { + return (name) -> + (type) -> + (data) -> + new BckndobjectStoreSecretWithSensitiveDataRequestForPostCall() + .name(name) + .type(type) + .data(data); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (type) -> (data) -> new BckndobjectStoreSecretWithSensitiveDataRequestForPostCall().name(name).type(type).data(data); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - * - * @param name Name of the object store for the secret object to be created. Can be used later on check for existence of the secret. - * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall builder. - */ - Builder1 name( @Nonnull final String name); - } + * Set the name of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. + * + * @param name Name of the object store for the secret object to be created. Can be used later + * on check for existence of the secret. + * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - * - * @param type Storage type e.g. S3, GCS,... - * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall builder. - */ - Builder2 type( @Nonnull final String type); - } - /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} instance. - * - * @param data key:value pairs of data - * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall instance. - */ - BckndobjectStoreSecretWithSensitiveDataRequestForPostCall data( @Nonnull final Object data); - } + * Set the type of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. + * + * @param type Storage type e.g. S3, GCS,... + * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall builder. + */ + Builder2 type(@Nonnull final String type); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the data of this {@link BckndobjectStoreSecretWithSensitiveDataRequestForPostCall} + * instance. + * + * @param data key:value pairs of data + * @return The BckndobjectStoreSecretWithSensitiveDataRequestForPostCall instance. + */ + BckndobjectStoreSecretWithSensitiveDataRequestForPostCall data(@Nonnull final Object data); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java index 7f1e7c01..3029c6cb 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; +import java.util.LinkedHashSet; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.sap.ai.sdk.core.client.model.DSetErrorDetailsInner; -import java.util.LinkedHashSet; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Error Response - */ +/** Error Response */ // CHECKSTYLE:OFF -public class DSetError +public class DSetError // CHECKSTYLE:ON { @JsonProperty("code") @@ -61,139 +45,155 @@ public class DSetError @JsonProperty("details") private Set details = new LinkedHashSet<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected DSetError() { } - - /** - * Set the code of this {@link DSetError} instance and return the same instance. - * - * @param code The code of this {@link DSetError} - * @return The same instance of this {@link DSetError} class - */ - @Nonnull public DSetError code(@Nonnull final String code) { + + protected DSetError() {} + + /** + * Set the code of this {@link DSetError} instance and return the same instance. + * + * @param code The code of this {@link DSetError} + * @return The same instance of this {@link DSetError} class + */ + @Nonnull + public DSetError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Get code - * @return code The code of this {@link DSetError} instance. - */ - @Nonnull public String getCode() { + /** + * Get code + * + * @return code The code of this {@link DSetError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link DSetError} instance. * - * @param code The code of this {@link DSetError} + * @param code The code of this {@link DSetError} */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link DSetError} instance and return the same instance. - * - * @param message The message of this {@link DSetError} - * @return The same instance of this {@link DSetError} class - */ - @Nonnull public DSetError message(@Nonnull final String message) { + /** + * Set the message of this {@link DSetError} instance and return the same instance. + * + * @param message The message of this {@link DSetError} + * @return The same instance of this {@link DSetError} class + */ + @Nonnull + public DSetError message(@Nonnull final String message) { this.message = message; return this; } - /** - * Get message - * @return message The message of this {@link DSetError} instance. - */ - @Nonnull public String getMessage() { + /** + * Get message + * + * @return message The message of this {@link DSetError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link DSetError} instance. * - * @param message The message of this {@link DSetError} + * @param message The message of this {@link DSetError} */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the target of this {@link DSetError} instance and return the same instance. - * - * @param target The target of this {@link DSetError} - * @return The same instance of this {@link DSetError} class - */ - @Nonnull public DSetError target(@Nonnull final String target) { + /** + * Set the target of this {@link DSetError} instance and return the same instance. + * + * @param target The target of this {@link DSetError} + * @return The same instance of this {@link DSetError} class + */ + @Nonnull + public DSetError target(@Nonnull final String target) { this.target = target; return this; } - /** - * Get target - * @return target The target of this {@link DSetError} instance. - */ - @Nonnull public String getTarget() { + /** + * Get target + * + * @return target The target of this {@link DSetError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link DSetError} instance. * - * @param target The target of this {@link DSetError} + * @param target The target of this {@link DSetError} */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the requestId of this {@link DSetError} instance and return the same instance. - * - * @param requestId The requestId of this {@link DSetError} - * @return The same instance of this {@link DSetError} class - */ - @Nonnull public DSetError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link DSetError} instance and return the same instance. + * + * @param requestId The requestId of this {@link DSetError} + * @return The same instance of this {@link DSetError} class + */ + @Nonnull + public DSetError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * Get requestId - * @return requestId The requestId of this {@link DSetError} instance. - */ - @Nonnull public String getRequestId() { + /** + * Get requestId + * + * @return requestId The requestId of this {@link DSetError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link DSetError} instance. * - * @param requestId The requestId of this {@link DSetError} + * @param requestId The requestId of this {@link DSetError} */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the details of this {@link DSetError} instance and return the same instance. - * - * @param details The details of this {@link DSetError} - * @return The same instance of this {@link DSetError} class - */ - @Nonnull public DSetError details(@Nonnull final Set details) { + /** + * Set the details of this {@link DSetError} instance and return the same instance. + * + * @param details The details of this {@link DSetError} + * @return The same instance of this {@link DSetError} class + */ + @Nonnull + public DSetError details(@Nonnull final Set details) { this.details = details; return this; } + /** * Add one details instance to this {@link DSetError}. + * * @param detailsItem The details that should be added * @return The same instance of type {@link DSetError} */ - @Nonnull public DSetError addDetailsItem( @Nonnull final DSetErrorDetailsInner detailsItem) { + @Nonnull + public DSetError addDetailsItem(@Nonnull final DSetErrorDetailsInner detailsItem) { if (this.details == null) { this.details = new LinkedHashSet<>(); } @@ -201,25 +201,28 @@ public void setRequestId( @Nonnull final String requestId) { return this; } - /** - * Get details - * @return details The details of this {@link DSetError} instance. - */ - @Nonnull public Set getDetails() { + /** + * Get details + * + * @return details The details of this {@link DSetError} instance. + */ + @Nonnull + public Set getDetails() { return details; } /** * Set the details of this {@link DSetError} instance. * - * @param details The details of this {@link DSetError} + * @param details The details of this {@link DSetError} */ - public void setDetails( @Nonnull final Set details) { + public void setDetails(@Nonnull final Set details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link DSetError}. + * * @return The set of properties names */ @JsonIgnore @@ -230,31 +233,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link DSetError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("DSetError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("DSetError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link DSetError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link DSetError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -264,12 +267,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final DSetError dsetError = (DSetError) o; - return Objects.equals(this.cloudSdkCustomFields, dsetError.cloudSdkCustomFields) && - Objects.equals(this.code, dsetError.code) && - Objects.equals(this.message, dsetError.message) && - Objects.equals(this.target, dsetError.target) && - Objects.equals(this.requestId, dsetError.requestId) && - Objects.equals(this.details, dsetError.details); + return Objects.equals(this.cloudSdkCustomFields, dsetError.cloudSdkCustomFields) + && Objects.equals(this.code, dsetError.code) + && Objects.equals(this.message, dsetError.message) + && Objects.equals(this.target, dsetError.target) + && Objects.equals(this.requestId, dsetError.requestId) + && Objects.equals(this.details, dsetError.details); } @Override @@ -278,7 +281,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class DSetError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -286,14 +290,15 @@ public int hashCode() { sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -302,36 +307,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link DSetError} instance + * with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new DSetError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link DSetError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new DSetError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link DSetError} instance. - * - * @param code The code of this {@link DSetError} - * @return The DSetError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link DSetError} instance. - * - * @param message The message of this {@link DSetError} - * @return The DSetError instance. - */ - DSetError message( @Nonnull final String message); - } + * Set the code of this {@link DSetError} instance. + * + * @param code The code of this {@link DSetError} + * @return The DSetError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link DSetError} instance. + * + * @param message The message of this {@link DSetError} + * @return The DSetError instance. + */ + DSetError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java index 17075988..97c10705 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetErrorDetailsInner.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * DSetErrorDetailsInner - */ +/** DSetErrorDetailsInner */ // CHECKSTYLE:OFF -public class DSetErrorDetailsInner +public class DSetErrorDetailsInner // CHECKSTYLE:ON { @JsonProperty("code") @@ -48,69 +35,76 @@ public class DSetErrorDetailsInner @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected DSetErrorDetailsInner() { } - - /** - * Set the code of this {@link DSetErrorDetailsInner} instance and return the same instance. - * - * @param code The code of this {@link DSetErrorDetailsInner} - * @return The same instance of this {@link DSetErrorDetailsInner} class - */ - @Nonnull public DSetErrorDetailsInner code(@Nonnull final String code) { + + protected DSetErrorDetailsInner() {} + + /** + * Set the code of this {@link DSetErrorDetailsInner} instance and return the same instance. + * + * @param code The code of this {@link DSetErrorDetailsInner} + * @return The same instance of this {@link DSetErrorDetailsInner} class + */ + @Nonnull + public DSetErrorDetailsInner code(@Nonnull final String code) { this.code = code; return this; } - /** - * Get code - * @return code The code of this {@link DSetErrorDetailsInner} instance. - */ - @Nonnull public String getCode() { + /** + * Get code + * + * @return code The code of this {@link DSetErrorDetailsInner} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link DSetErrorDetailsInner} instance. * - * @param code The code of this {@link DSetErrorDetailsInner} + * @param code The code of this {@link DSetErrorDetailsInner} */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link DSetErrorDetailsInner} instance and return the same instance. - * - * @param message The message of this {@link DSetErrorDetailsInner} - * @return The same instance of this {@link DSetErrorDetailsInner} class - */ - @Nonnull public DSetErrorDetailsInner message(@Nonnull final String message) { + /** + * Set the message of this {@link DSetErrorDetailsInner} instance and return the same instance. + * + * @param message The message of this {@link DSetErrorDetailsInner} + * @return The same instance of this {@link DSetErrorDetailsInner} class + */ + @Nonnull + public DSetErrorDetailsInner message(@Nonnull final String message) { this.message = message; return this; } - /** - * Get message - * @return message The message of this {@link DSetErrorDetailsInner} instance. - */ - @Nonnull public String getMessage() { + /** + * Get message + * + * @return message The message of this {@link DSetErrorDetailsInner} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link DSetErrorDetailsInner} instance. * - * @param message The message of this {@link DSetErrorDetailsInner} + * @param message The message of this {@link DSetErrorDetailsInner} */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link DSetErrorDetailsInner}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link DSetErrorDetailsInner} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("DSetErrorDetailsInner has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "DSetErrorDetailsInner has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link DSetErrorDetailsInner} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link DSetErrorDetailsInner} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final DSetErrorDetailsInner dsetErrorDetailsInner = (DSetErrorDetailsInner) o; - return Objects.equals(this.cloudSdkCustomFields, dsetErrorDetailsInner.cloudSdkCustomFields) && - Objects.equals(this.code, dsetErrorDetailsInner.code) && - Objects.equals(this.message, dsetErrorDetailsInner.message); + return Objects.equals(this.cloudSdkCustomFields, dsetErrorDetailsInner.cloudSdkCustomFields) + && Objects.equals(this.code, dsetErrorDetailsInner.code) + && Objects.equals(this.message, dsetErrorDetailsInner.message); } @Override @@ -166,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class DSetErrorDetailsInner {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +184,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link DSetErrorDetailsInner} + * instance with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new DSetErrorDetailsInner().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link DSetErrorDetailsInner} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new DSetErrorDetailsInner().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link DSetErrorDetailsInner} instance. - * - * @param code The code of this {@link DSetErrorDetailsInner} - * @return The DSetErrorDetailsInner builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link DSetErrorDetailsInner} instance. - * - * @param message The message of this {@link DSetErrorDetailsInner} - * @return The DSetErrorDetailsInner instance. - */ - DSetErrorDetailsInner message( @Nonnull final String message); - } + * Set the code of this {@link DSetErrorDetailsInner} instance. + * + * @param code The code of this {@link DSetErrorDetailsInner} + * @return The DSetErrorDetailsInner builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link DSetErrorDetailsInner} instance. + * + * @param message The message of this {@link DSetErrorDetailsInner} + * @return The DSetErrorDetailsInner instance. + */ + DSetErrorDetailsInner message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java index 0a359a4f..8f0cd051 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/DSetFileCreationResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Response for successful file creation - */ +/** Response for successful file creation */ // CHECKSTYLE:OFF -public class DSetFileCreationResponse +public class DSetFileCreationResponse // CHECKSTYLE:ON { @JsonProperty("message") @@ -48,69 +35,76 @@ public class DSetFileCreationResponse @JsonProperty("url") private String url; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected DSetFileCreationResponse() { } - - /** - * Set the message of this {@link DSetFileCreationResponse} instance and return the same instance. - * - * @param message File creation response message - * @return The same instance of this {@link DSetFileCreationResponse} class - */ - @Nonnull public DSetFileCreationResponse message(@Nonnull final String message) { + + protected DSetFileCreationResponse() {} + + /** + * Set the message of this {@link DSetFileCreationResponse} instance and return the same instance. + * + * @param message File creation response message + * @return The same instance of this {@link DSetFileCreationResponse} class + */ + @Nonnull + public DSetFileCreationResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * File creation response message - * @return message The message of this {@link DSetFileCreationResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * File creation response message + * + * @return message The message of this {@link DSetFileCreationResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link DSetFileCreationResponse} instance. * - * @param message File creation response message + * @param message File creation response message */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the url of this {@link DSetFileCreationResponse} instance and return the same instance. - * - * @param url The url of this {@link DSetFileCreationResponse} - * @return The same instance of this {@link DSetFileCreationResponse} class - */ - @Nonnull public DSetFileCreationResponse url(@Nonnull final String url) { + /** + * Set the url of this {@link DSetFileCreationResponse} instance and return the same instance. + * + * @param url The url of this {@link DSetFileCreationResponse} + * @return The same instance of this {@link DSetFileCreationResponse} class + */ + @Nonnull + public DSetFileCreationResponse url(@Nonnull final String url) { this.url = url; return this; } - /** - * Get url - * @return url The url of this {@link DSetFileCreationResponse} instance. - */ - @Nonnull public String getUrl() { + /** + * Get url + * + * @return url The url of this {@link DSetFileCreationResponse} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link DSetFileCreationResponse} instance. * - * @param url The url of this {@link DSetFileCreationResponse} + * @param url The url of this {@link DSetFileCreationResponse} */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } /** * Get the names of the unrecognizable properties of the {@link DSetFileCreationResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link DSetFileCreationResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("DSetFileCreationResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "DSetFileCreationResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link DSetFileCreationResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link DSetFileCreationResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final DSetFileCreationResponse dsetFileCreationResponse = (DSetFileCreationResponse) o; - return Objects.equals(this.cloudSdkCustomFields, dsetFileCreationResponse.cloudSdkCustomFields) && - Objects.equals(this.message, dsetFileCreationResponse.message) && - Objects.equals(this.url, dsetFileCreationResponse.url); + return Objects.equals(this.cloudSdkCustomFields, dsetFileCreationResponse.cloudSdkCustomFields) + && Objects.equals(this.message, dsetFileCreationResponse.message) + && Objects.equals(this.url, dsetFileCreationResponse.url); } @Override @@ -166,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class DSetFileCreationResponse {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +184,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * DSetFileCreationResponse} instance with all required arguments. + */ + public static Builder create() { + return (message) -> (url) -> new DSetFileCreationResponse().message(message).url(url); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link DSetFileCreationResponse} instance with all required arguments. - */ - public static Builder create() { - return (message) -> (url) -> new DSetFileCreationResponse().message(message).url(url); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the message of this {@link DSetFileCreationResponse} instance. - * - * @param message File creation response message - * @return The DSetFileCreationResponse builder. - */ - Builder1 message( @Nonnull final String message); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the url of this {@link DSetFileCreationResponse} instance. - * - * @param url The url of this {@link DSetFileCreationResponse} - * @return The DSetFileCreationResponse instance. - */ - DSetFileCreationResponse url( @Nonnull final String url); - } + * Set the message of this {@link DSetFileCreationResponse} instance. + * + * @param message File creation response message + * @return The DSetFileCreationResponse builder. + */ + Builder1 message(@Nonnull final String message); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the url of this {@link DSetFileCreationResponse} instance. + * + * @param url The url of this {@link DSetFileCreationResponse} + * @return The DSetFileCreationResponse instance. + */ + DSetFileCreationResponse url(@Nonnull final String url); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java index b7ef21cb..ff06055c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/FileDownload400Response.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.DSetError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * FileDownload400Response - */ +/** FileDownload400Response */ // CHECKSTYLE:OFF -public class FileDownload400Response +public class FileDownload400Response // CHECKSTYLE:ON { @JsonProperty("error") private DSetError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected FileDownload400Response() { } - - /** - * Set the error of this {@link FileDownload400Response} instance and return the same instance. - * - * @param error The error of this {@link FileDownload400Response} - * @return The same instance of this {@link FileDownload400Response} class - */ - @Nonnull public FileDownload400Response error(@Nonnull final DSetError error) { + + protected FileDownload400Response() {} + + /** + * Set the error of this {@link FileDownload400Response} instance and return the same instance. + * + * @param error The error of this {@link FileDownload400Response} + * @return The same instance of this {@link FileDownload400Response} class + */ + @Nonnull + public FileDownload400Response error(@Nonnull final DSetError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link FileDownload400Response} instance. - */ - @Nonnull public DSetError getError() { + /** + * Get error + * + * @return error The error of this {@link FileDownload400Response} instance. + */ + @Nonnull + public DSetError getError() { return error; } /** * Set the error of this {@link FileDownload400Response} instance. * - * @param error The error of this {@link FileDownload400Response} + * @param error The error of this {@link FileDownload400Response} */ - public void setError( @Nonnull final DSetError error) { + public void setError(@Nonnull final DSetError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link FileDownload400Response}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link FileDownload400Response} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("FileDownload400Response has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "FileDownload400Response has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link FileDownload400Response} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link FileDownload400Response} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +116,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final FileDownload400Response fileDownload400Response = (FileDownload400Response) o; - return Objects.equals(this.cloudSdkCustomFields, fileDownload400Response.cloudSdkCustomFields) && - Objects.equals(this.error, fileDownload400Response.error); + return Objects.equals(this.cloudSdkCustomFields, fileDownload400Response.cloudSdkCustomFields) + && Objects.equals(this.error, fileDownload400Response.error); } @Override @@ -135,18 +126,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class FileDownload400Response {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +148,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link FileDownload400Response} instance. No arguments are required. - */ - public static FileDownload400Response create() { - return new FileDownload400Response(); - } - + /** Create a new {@link FileDownload400Response} instance. No arguments are required. */ + public static FileDownload400Response create() { + return new FileDownload400Response(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java index dbcb14a7..2f590149 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiApiError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * KpiApiError - */ +/** KpiApiError */ // CHECKSTYLE:OFF -public class KpiApiError +public class KpiApiError // CHECKSTYLE:ON { @JsonProperty("code") @@ -57,153 +44,169 @@ public class KpiApiError @JsonProperty("details") private Object details; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected KpiApiError() { } - - /** - * Set the code of this {@link KpiApiError} instance and return the same instance. - * - * @param code Descriptive error code (not http status code) - * @return The same instance of this {@link KpiApiError} class - */ - @Nonnull public KpiApiError code(@Nonnull final String code) { + + protected KpiApiError() {} + + /** + * Set the code of this {@link KpiApiError} instance and return the same instance. + * + * @param code Descriptive error code (not http status code) + * @return The same instance of this {@link KpiApiError} class + */ + @Nonnull + public KpiApiError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code) - * @return code The code of this {@link KpiApiError} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code) + * + * @return code The code of this {@link KpiApiError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link KpiApiError} instance. * - * @param code Descriptive error code (not http status code) + * @param code Descriptive error code (not http status code) */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link KpiApiError} instance and return the same instance. - * - * @param message Plaintext error description - * @return The same instance of this {@link KpiApiError} class - */ - @Nonnull public KpiApiError message(@Nonnull final String message) { + /** + * Set the message of this {@link KpiApiError} instance and return the same instance. + * + * @param message Plaintext error description + * @return The same instance of this {@link KpiApiError} class + */ + @Nonnull + public KpiApiError message(@Nonnull final String message) { this.message = message; return this; } - /** - * Plaintext error description - * @return message The message of this {@link KpiApiError} instance. - */ - @Nonnull public String getMessage() { + /** + * Plaintext error description + * + * @return message The message of this {@link KpiApiError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link KpiApiError} instance. * - * @param message Plaintext error description + * @param message Plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the requestId of this {@link KpiApiError} instance and return the same instance. - * - * @param requestId ID of the individual request - * @return The same instance of this {@link KpiApiError} class - */ - @Nonnull public KpiApiError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link KpiApiError} instance and return the same instance. + * + * @param requestId ID of the individual request + * @return The same instance of this {@link KpiApiError} class + */ + @Nonnull + public KpiApiError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * ID of the individual request - * @return requestId The requestId of this {@link KpiApiError} instance. - */ - @Nonnull public String getRequestId() { + /** + * ID of the individual request + * + * @return requestId The requestId of this {@link KpiApiError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link KpiApiError} instance. * - * @param requestId ID of the individual request + * @param requestId ID of the individual request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the target of this {@link KpiApiError} instance and return the same instance. - * - * @param target Invoked URL - * @return The same instance of this {@link KpiApiError} class - */ - @Nonnull public KpiApiError target(@Nonnull final String target) { + /** + * Set the target of this {@link KpiApiError} instance and return the same instance. + * + * @param target Invoked URL + * @return The same instance of this {@link KpiApiError} class + */ + @Nonnull + public KpiApiError target(@Nonnull final String target) { this.target = target; return this; } - /** - * Invoked URL - * @return target The target of this {@link KpiApiError} instance. - */ - @Nonnull public String getTarget() { + /** + * Invoked URL + * + * @return target The target of this {@link KpiApiError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link KpiApiError} instance. * - * @param target Invoked URL + * @param target Invoked URL */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the details of this {@link KpiApiError} instance and return the same instance. - * - * @param details Optional details of the error message - * @return The same instance of this {@link KpiApiError} class - */ - @Nonnull public KpiApiError details(@Nonnull final Object details) { + /** + * Set the details of this {@link KpiApiError} instance and return the same instance. + * + * @param details Optional details of the error message + * @return The same instance of this {@link KpiApiError} class + */ + @Nonnull + public KpiApiError details(@Nonnull final Object details) { this.details = details; return this; } - /** - * Optional details of the error message - * @return details The details of this {@link KpiApiError} instance. - */ - @Nonnull public Object getDetails() { + /** + * Optional details of the error message + * + * @return details The details of this {@link KpiApiError} instance. + */ + @Nonnull + public Object getDetails() { return details; } /** * Set the details of this {@link KpiApiError} instance. * - * @param details Optional details of the error message + * @param details Optional details of the error message */ - public void setDetails( @Nonnull final Object details) { + public void setDetails(@Nonnull final Object details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link KpiApiError}. + * * @return The set of properties names */ @JsonIgnore @@ -214,31 +217,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link KpiApiError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("KpiApiError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("KpiApiError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link KpiApiError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link KpiApiError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,12 +251,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final KpiApiError kpiApiError = (KpiApiError) o; - return Objects.equals(this.cloudSdkCustomFields, kpiApiError.cloudSdkCustomFields) && - Objects.equals(this.code, kpiApiError.code) && - Objects.equals(this.message, kpiApiError.message) && - Objects.equals(this.requestId, kpiApiError.requestId) && - Objects.equals(this.target, kpiApiError.target) && - Objects.equals(this.details, kpiApiError.details); + return Objects.equals(this.cloudSdkCustomFields, kpiApiError.cloudSdkCustomFields) + && Objects.equals(this.code, kpiApiError.code) + && Objects.equals(this.message, kpiApiError.message) + && Objects.equals(this.requestId, kpiApiError.requestId) + && Objects.equals(this.target, kpiApiError.target) + && Objects.equals(this.details, kpiApiError.details); } @Override @@ -262,7 +265,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class KpiApiError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -270,14 +274,15 @@ public int hashCode() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -286,36 +291,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link KpiApiError} instance + * with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new KpiApiError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link KpiApiError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new KpiApiError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link KpiApiError} instance. - * - * @param code Descriptive error code (not http status code) - * @return The KpiApiError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link KpiApiError} instance. - * - * @param message Plaintext error description - * @return The KpiApiError instance. - */ - KpiApiError message( @Nonnull final String message); - } + * Set the code of this {@link KpiApiError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The KpiApiError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link KpiApiError} instance. + * + * @param message Plaintext error description + * @return The KpiApiError instance. + */ + KpiApiError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiColumnName.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiColumnName.java index ed0d0b87..80b40baf 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiColumnName.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiColumnName.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,40 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Gets or Sets KpiColumnName - */ +/** Gets or Sets KpiColumnName */ public enum KpiColumnName { - RESOURCE_GROUP("ResourceGroup"), - + SCENARIO("Scenario"), - + EXECUTABLE("Executable"), - + EXECUTIONS("Executions"), - + ARTIFACTS("Artifacts"), - + DEPLOYMENTS("Deployments"); private final String value; @@ -68,7 +48,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -76,7 +57,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -89,4 +69,3 @@ public static KpiColumnName fromValue(@Nonnull final String value) { return null; } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java index 4e920c61..91ae7526 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiGet400Response.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.KpiApiError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * KpiGet400Response - */ +/** KpiGet400Response */ // CHECKSTYLE:OFF -public class KpiGet400Response +public class KpiGet400Response // CHECKSTYLE:ON { @JsonProperty("error") private KpiApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected KpiGet400Response() { } - - /** - * Set the error of this {@link KpiGet400Response} instance and return the same instance. - * - * @param error The error of this {@link KpiGet400Response} - * @return The same instance of this {@link KpiGet400Response} class - */ - @Nonnull public KpiGet400Response error(@Nonnull final KpiApiError error) { + + protected KpiGet400Response() {} + + /** + * Set the error of this {@link KpiGet400Response} instance and return the same instance. + * + * @param error The error of this {@link KpiGet400Response} + * @return The same instance of this {@link KpiGet400Response} class + */ + @Nonnull + public KpiGet400Response error(@Nonnull final KpiApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link KpiGet400Response} instance. - */ - @Nonnull public KpiApiError getError() { + /** + * Get error + * + * @return error The error of this {@link KpiGet400Response} instance. + */ + @Nonnull + public KpiApiError getError() { return error; } /** * Set the error of this {@link KpiGet400Response} instance. * - * @param error The error of this {@link KpiGet400Response} + * @param error The error of this {@link KpiGet400Response} */ - public void setError( @Nonnull final KpiApiError error) { + public void setError(@Nonnull final KpiApiError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link KpiGet400Response}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link KpiGet400Response} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("KpiGet400Response has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("KpiGet400Response has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link KpiGet400Response} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link KpiGet400Response} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +115,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final KpiGet400Response kpiGet400Response = (KpiGet400Response) o; - return Objects.equals(this.cloudSdkCustomFields, kpiGet400Response.cloudSdkCustomFields) && - Objects.equals(this.error, kpiGet400Response.error); + return Objects.equals(this.cloudSdkCustomFields, kpiGet400Response.cloudSdkCustomFields) + && Objects.equals(this.error, kpiGet400Response.error); } @Override @@ -135,18 +125,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class KpiGet400Response {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +147,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link KpiGet400Response} instance. No arguments are required. - */ - public static KpiGet400Response create() { - return new KpiGet400Response(); - } - + /** Create a new {@link KpiGet400Response} instance. No arguments are required. */ + public static KpiGet400Response create() { + return new KpiGet400Response(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java index 6c295c79..4d12f817 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultRowItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,30 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * KpiResultRowItem - */ +/** KpiResultRowItem */ // CHECKSTYLE:OFF -public class KpiResultRowItem +public class KpiResultRowItem // CHECKSTYLE:ON { - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected KpiResultRowItem() { } + + protected KpiResultRowItem() {} /** * Get the names of the unrecognizable properties of the {@link KpiResultRowItem}. + * * @return The set of properties names */ @JsonIgnore @@ -54,31 +46,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link KpiResultRowItem} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("KpiResultRowItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("KpiResultRowItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link KpiResultRowItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link KpiResultRowItem} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -97,17 +89,19 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class KpiResultRowItem {\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -116,12 +110,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link KpiResultRowItem} instance. No arguments are required. - */ - public static KpiResultRowItem create() { - return new KpiResultRowItem(); - } - + /** Create a new {@link KpiResultRowItem} instance. No arguments are required. */ + public static KpiResultRowItem create() { + return new KpiResultRowItem(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java index 7ea69b14..2fbcfd16 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KpiResultSet.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,40 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.sap.ai.sdk.core.client.model.KpiColumnName; -import com.sap.ai.sdk.core.client.model.KpiResultRowItem; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.LinkedHashSet; import java.util.List; +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * KpiResultSet - */ +/** KpiResultSet */ // CHECKSTYLE:OFF -public class KpiResultSet +public class KpiResultSet // CHECKSTYLE:ON { @JsonProperty("header") @@ -56,34 +38,41 @@ public class KpiResultSet @JsonProperty("rows") private List> rows = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected KpiResultSet() { } - /** - * Get header - * @return header The header of this {@link KpiResultSet} instance. - */ - @Nonnull public Set getHeader() { + + protected KpiResultSet() {} + + /** + * Get header + * + * @return header The header of this {@link KpiResultSet} instance. + */ + @Nonnull + public Set getHeader() { return header; } - /** - * Set the rows of this {@link KpiResultSet} instance and return the same instance. - * - * @param rows The rows of this {@link KpiResultSet} - * @return The same instance of this {@link KpiResultSet} class - */ - @Nonnull public KpiResultSet rows(@Nonnull final List> rows) { + /** + * Set the rows of this {@link KpiResultSet} instance and return the same instance. + * + * @param rows The rows of this {@link KpiResultSet} + * @return The same instance of this {@link KpiResultSet} class + */ + @Nonnull + public KpiResultSet rows(@Nonnull final List> rows) { this.rows = rows; return this; } + /** * Add one rows instance to this {@link KpiResultSet}. + * * @param rowsItem The rows that should be added * @return The same instance of type {@link KpiResultSet} */ - @Nonnull public KpiResultSet addRowsItem( @Nonnull final List rowsItem) { + @Nonnull + public KpiResultSet addRowsItem(@Nonnull final List rowsItem) { if (this.rows == null) { this.rows = new ArrayList<>(); } @@ -91,25 +80,28 @@ protected KpiResultSet() { } return this; } - /** - * Get rows - * @return rows The rows of this {@link KpiResultSet} instance. - */ - @Nonnull public List> getRows() { + /** + * Get rows + * + * @return rows The rows of this {@link KpiResultSet} instance. + */ + @Nonnull + public List> getRows() { return rows; } /** * Set the rows of this {@link KpiResultSet} instance. * - * @param rows The rows of this {@link KpiResultSet} + * @param rows The rows of this {@link KpiResultSet} */ - public void setRows( @Nonnull final List> rows) { + public void setRows(@Nonnull final List> rows) { this.rows = rows; } /** * Get the names of the unrecognizable properties of the {@link KpiResultSet}. + * * @return The set of properties names */ @JsonIgnore @@ -120,31 +112,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link KpiResultSet} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("KpiResultSet has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("KpiResultSet has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link KpiResultSet} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link KpiResultSet} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,9 +146,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final KpiResultSet kpiResultSet = (KpiResultSet) o; - return Objects.equals(this.cloudSdkCustomFields, kpiResultSet.cloudSdkCustomFields) && - Objects.equals(this.header, kpiResultSet.header) && - Objects.equals(this.rows, kpiResultSet.rows); + return Objects.equals(this.cloudSdkCustomFields, kpiResultSet.cloudSdkCustomFields) + && Objects.equals(this.header, kpiResultSet.header) + && Objects.equals(this.rows, kpiResultSet.rows); } @Override @@ -165,19 +157,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class KpiResultSet {\n"); sb.append(" header: ").append(toIndentedString(header)).append("\n"); sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -186,12 +180,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link KpiResultSet} instance. No arguments are required. - */ - public static KpiResultSet create() { - return new KpiResultSet(); - } - + /** Create a new {@link KpiResultSet} instance. No arguments are required. */ + public static KpiResultSet create() { + return new KpiResultSet(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java index eda80b3e..563c6c19 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4ApplicationsCreateRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationData; -import com.sap.ai.sdk.core.client.model.BckndArgoCDApplicationDataRepoName; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * KubesubmitV4ApplicationsCreateRequest - */ +/** KubesubmitV4ApplicationsCreateRequest */ // CHECKSTYLE:OFF -public class KubesubmitV4ApplicationsCreateRequest +public class KubesubmitV4ApplicationsCreateRequest // CHECKSTYLE:ON { @JsonProperty("repositoryUrl") @@ -59,153 +44,180 @@ public class KubesubmitV4ApplicationsCreateRequest @JsonProperty("repositoryName") private String repositoryName; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected KubesubmitV4ApplicationsCreateRequest() { } - - /** - * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same instance. - * - * @param repositoryUrl URL of the repository to synchronise - * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class - */ - @Nonnull public KubesubmitV4ApplicationsCreateRequest repositoryUrl(@Nonnull final String repositoryUrl) { + + protected KubesubmitV4ApplicationsCreateRequest() {} + + /** + * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return + * the same instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class + */ + @Nonnull + public KubesubmitV4ApplicationsCreateRequest repositoryUrl(@Nonnull final String repositoryUrl) { this.repositoryUrl = repositoryUrl; return this; } - /** - * URL of the repository to synchronise - * @return repositoryUrl The repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - */ - @Nonnull public String getRepositoryUrl() { + /** + * URL of the repository to synchronise + * + * @return repositoryUrl The repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} + * instance. + */ + @Nonnull + public String getRepositoryUrl() { return repositoryUrl; } /** * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance. * - * @param repositoryUrl URL of the repository to synchronise + * @param repositoryUrl URL of the repository to synchronise */ - public void setRepositoryUrl( @Nonnull final String repositoryUrl) { + public void setRepositoryUrl(@Nonnull final String repositoryUrl) { this.repositoryUrl = repositoryUrl; } - /** - * Set the revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same instance. - * - * @param revision revision to synchronise - * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class - */ - @Nonnull public KubesubmitV4ApplicationsCreateRequest revision(@Nonnull final String revision) { + /** + * Set the revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the + * same instance. + * + * @param revision revision to synchronise + * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class + */ + @Nonnull + public KubesubmitV4ApplicationsCreateRequest revision(@Nonnull final String revision) { this.revision = revision; return this; } - /** - * revision to synchronise - * @return revision The revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - */ - @Nonnull public String getRevision() { + /** + * revision to synchronise + * + * @return revision The revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + */ + @Nonnull + public String getRevision() { return revision; } /** * Set the revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance. * - * @param revision revision to synchronise + * @param revision revision to synchronise */ - public void setRevision( @Nonnull final String revision) { + public void setRevision(@Nonnull final String revision) { this.revision = revision; } - /** - * Set the path of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same instance. - * - * @param path path within the repository to synchronise - * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class - */ - @Nonnull public KubesubmitV4ApplicationsCreateRequest path(@Nonnull final String path) { + /** + * Set the path of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same + * instance. + * + * @param path path within the repository to synchronise + * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class + */ + @Nonnull + public KubesubmitV4ApplicationsCreateRequest path(@Nonnull final String path) { this.path = path; return this; } - /** - * path within the repository to synchronise - * @return path The path of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - */ - @Nonnull public String getPath() { + /** + * path within the repository to synchronise + * + * @return path The path of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + */ + @Nonnull + public String getPath() { return path; } /** * Set the path of this {@link KubesubmitV4ApplicationsCreateRequest} instance. * - * @param path path within the repository to synchronise + * @param path path within the repository to synchronise */ - public void setPath( @Nonnull final String path) { + public void setPath(@Nonnull final String path) { this.path = path; } - /** - * Set the applicationName of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same instance. - * - * @param applicationName ArgoCD application name - * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class - */ - @Nonnull public KubesubmitV4ApplicationsCreateRequest applicationName(@Nonnull final String applicationName) { + /** + * Set the applicationName of this {@link KubesubmitV4ApplicationsCreateRequest} instance and + * return the same instance. + * + * @param applicationName ArgoCD application name + * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class + */ + @Nonnull + public KubesubmitV4ApplicationsCreateRequest applicationName( + @Nonnull final String applicationName) { this.applicationName = applicationName; return this; } - /** - * ArgoCD application name - * @return applicationName The applicationName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - */ - @Nonnull public String getApplicationName() { + /** + * ArgoCD application name + * + * @return applicationName The applicationName of this {@link + * KubesubmitV4ApplicationsCreateRequest} instance. + */ + @Nonnull + public String getApplicationName() { return applicationName; } /** * Set the applicationName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. * - * @param applicationName ArgoCD application name + * @param applicationName ArgoCD application name */ - public void setApplicationName( @Nonnull final String applicationName) { + public void setApplicationName(@Nonnull final String applicationName) { this.applicationName = applicationName; } - /** - * Set the repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance and return the same instance. - * - * @param repositoryName Name of the repository to synchronise - * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class - */ - @Nonnull public KubesubmitV4ApplicationsCreateRequest repositoryName(@Nonnull final String repositoryName) { + /** + * Set the repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance and + * return the same instance. + * + * @param repositoryName Name of the repository to synchronise + * @return The same instance of this {@link KubesubmitV4ApplicationsCreateRequest} class + */ + @Nonnull + public KubesubmitV4ApplicationsCreateRequest repositoryName( + @Nonnull final String repositoryName) { this.repositoryName = repositoryName; return this; } - /** - * Name of the repository to synchronise - * @return repositoryName The repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - */ - @Nonnull public String getRepositoryName() { + /** + * Name of the repository to synchronise + * + * @return repositoryName The repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} + * instance. + */ + @Nonnull + public String getRepositoryName() { return repositoryName; } /** * Set the repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. * - * @param repositoryName Name of the repository to synchronise + * @param repositoryName Name of the repository to synchronise */ - public void setRepositoryName( @Nonnull final String repositoryName) { + public void setRepositoryName(@Nonnull final String repositoryName) { this.repositoryName = repositoryName; } /** - * Get the names of the unrecognizable properties of the {@link KubesubmitV4ApplicationsCreateRequest}. + * Get the names of the unrecognizable properties of the {@link + * KubesubmitV4ApplicationsCreateRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -215,32 +227,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("KubesubmitV4ApplicationsCreateRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "KubesubmitV4ApplicationsCreateRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link KubesubmitV4ApplicationsCreateRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -249,22 +264,28 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest = (KubesubmitV4ApplicationsCreateRequest) o; - return Objects.equals(this.cloudSdkCustomFields, kubesubmitV4ApplicationsCreateRequest.cloudSdkCustomFields) && - Objects.equals(this.repositoryUrl, kubesubmitV4ApplicationsCreateRequest.repositoryUrl) && - Objects.equals(this.revision, kubesubmitV4ApplicationsCreateRequest.revision) && - Objects.equals(this.path, kubesubmitV4ApplicationsCreateRequest.path) && - Objects.equals(this.applicationName, kubesubmitV4ApplicationsCreateRequest.applicationName) && - Objects.equals(this.repositoryName, kubesubmitV4ApplicationsCreateRequest.repositoryName); + final KubesubmitV4ApplicationsCreateRequest kubesubmitV4ApplicationsCreateRequest = + (KubesubmitV4ApplicationsCreateRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, kubesubmitV4ApplicationsCreateRequest.cloudSdkCustomFields) + && Objects.equals(this.repositoryUrl, kubesubmitV4ApplicationsCreateRequest.repositoryUrl) + && Objects.equals(this.revision, kubesubmitV4ApplicationsCreateRequest.revision) + && Objects.equals(this.path, kubesubmitV4ApplicationsCreateRequest.path) + && Objects.equals( + this.applicationName, kubesubmitV4ApplicationsCreateRequest.applicationName) + && Objects.equals( + this.repositoryName, kubesubmitV4ApplicationsCreateRequest.repositoryName); } @Override public int hashCode() { - return Objects.hash(repositoryUrl, revision, path, applicationName, repositoryName, cloudSdkCustomFields); + return Objects.hash( + repositoryUrl, revision, path, applicationName, repositoryName, cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class KubesubmitV4ApplicationsCreateRequest {\n"); sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).append("\n"); @@ -272,14 +293,15 @@ public int hashCode() { sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); sb.append(" repositoryName: ").append(toIndentedString(repositoryName)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -288,60 +310,63 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * KubesubmitV4ApplicationsCreateRequest} instance with all required arguments. + */ + public static Builder create() { + return (repositoryUrl) -> + (revision) -> + (path) -> + (repositoryName) -> + new KubesubmitV4ApplicationsCreateRequest() + .repositoryUrl(repositoryUrl) + .revision(revision) + .path(path) + .repositoryName(repositoryName); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link KubesubmitV4ApplicationsCreateRequest} instance with all required arguments. - */ - public static Builder create() { - return (repositoryUrl) -> (revision) -> (path) -> (repositoryName) -> new KubesubmitV4ApplicationsCreateRequest().repositoryUrl(repositoryUrl).revision(revision).path(path).repositoryName(repositoryName); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - * - * @param repositoryUrl URL of the repository to synchronise - * @return The KubesubmitV4ApplicationsCreateRequest builder. - */ - Builder1 repositoryUrl( @Nonnull final String repositoryUrl); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - * - * @param revision revision to synchronise - * @return The KubesubmitV4ApplicationsCreateRequest builder. - */ - Builder2 revision( @Nonnull final String revision); - } + * Set the repositoryUrl of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param repositoryUrl URL of the repository to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest builder. + */ + Builder1 repositoryUrl(@Nonnull final String repositoryUrl); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the path of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - * - * @param path path within the repository to synchronise - * @return The KubesubmitV4ApplicationsCreateRequest builder. - */ - Builder3 path( @Nonnull final String path); - } + * Set the revision of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param revision revision to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest builder. + */ + Builder2 revision(@Nonnull final String revision); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. - * - * @param repositoryName Name of the repository to synchronise - * @return The KubesubmitV4ApplicationsCreateRequest instance. - */ - KubesubmitV4ApplicationsCreateRequest repositoryName( @Nonnull final String repositoryName); - } + * Set the path of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param path path within the repository to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest builder. + */ + Builder3 path(@Nonnull final String path); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the repositoryName of this {@link KubesubmitV4ApplicationsCreateRequest} instance. + * + * @param repositoryName Name of the repository to synchronise + * @return The KubesubmitV4ApplicationsCreateRequest instance. + */ + KubesubmitV4ApplicationsCreateRequest repositoryName(@Nonnull final String repositoryName); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java index c5f3bf2f..ee7ab008 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/KubesubmitV4DockerRegistrySecretsCreateRequest.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.BcknddockerRegistrySecretWithSensitiveDataRequestData; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * KubesubmitV4DockerRegistrySecretsCreateRequest - */ +/** KubesubmitV4DockerRegistrySecretsCreateRequest */ // CHECKSTYLE:OFF -public class KubesubmitV4DockerRegistrySecretsCreateRequest +public class KubesubmitV4DockerRegistrySecretsCreateRequest // CHECKSTYLE:ON { @JsonProperty("data") @@ -49,69 +35,80 @@ public class KubesubmitV4DockerRegistrySecretsCreateRequest @JsonProperty("name") private String name; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected KubesubmitV4DockerRegistrySecretsCreateRequest() { } - - /** - * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance and return the same instance. - * - * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} - * @return The same instance of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} class - */ - @Nonnull public KubesubmitV4DockerRegistrySecretsCreateRequest data(@Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { + + protected KubesubmitV4DockerRegistrySecretsCreateRequest() {} + + /** + * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance and return + * the same instance. + * + * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} + * @return The same instance of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} class + */ + @Nonnull + public KubesubmitV4DockerRegistrySecretsCreateRequest data( + @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { this.data = data; return this; } - /** - * Get data - * @return data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. - */ - @Nonnull public BcknddockerRegistrySecretWithSensitiveDataRequestData getData() { + /** + * Get data + * + * @return data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + */ + @Nonnull + public BcknddockerRegistrySecretWithSensitiveDataRequestData getData() { return data; } /** * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. * - * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} + * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} */ - public void setData( @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { + public void setData(@Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data) { this.data = data; } - /** - * Set the name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance and return the same instance. - * - * @param name Name of the docker Registry store for the secret. - * @return The same instance of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} class - */ - @Nonnull public KubesubmitV4DockerRegistrySecretsCreateRequest name(@Nonnull final String name) { + /** + * Set the name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance and return + * the same instance. + * + * @param name Name of the docker Registry store for the secret. + * @return The same instance of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} class + */ + @Nonnull + public KubesubmitV4DockerRegistrySecretsCreateRequest name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the docker Registry store for the secret. - * @return name The name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. - */ - @Nonnull public String getName() { + /** + * Name of the docker Registry store for the secret. + * + * @return name The name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. * - * @param name Name of the docker Registry store for the secret. + * @param name Name of the docker Registry store for the secret. */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } /** - * Get the names of the unrecognizable properties of the {@link KubesubmitV4DockerRegistrySecretsCreateRequest}. + * Get the names of the unrecognizable properties of the {@link + * KubesubmitV4DockerRegistrySecretsCreateRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -121,32 +118,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("KubesubmitV4DockerRegistrySecretsCreateRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "KubesubmitV4DockerRegistrySecretsCreateRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,10 +155,14 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final KubesubmitV4DockerRegistrySecretsCreateRequest kubesubmitV4DockerRegistrySecretsCreateRequest = (KubesubmitV4DockerRegistrySecretsCreateRequest) o; - return Objects.equals(this.cloudSdkCustomFields, kubesubmitV4DockerRegistrySecretsCreateRequest.cloudSdkCustomFields) && - Objects.equals(this.data, kubesubmitV4DockerRegistrySecretsCreateRequest.data) && - Objects.equals(this.name, kubesubmitV4DockerRegistrySecretsCreateRequest.name); + final KubesubmitV4DockerRegistrySecretsCreateRequest + kubesubmitV4DockerRegistrySecretsCreateRequest = + (KubesubmitV4DockerRegistrySecretsCreateRequest) o; + return Objects.equals( + this.cloudSdkCustomFields, + kubesubmitV4DockerRegistrySecretsCreateRequest.cloudSdkCustomFields) + && Objects.equals(this.data, kubesubmitV4DockerRegistrySecretsCreateRequest.data) + && Objects.equals(this.name, kubesubmitV4DockerRegistrySecretsCreateRequest.name); } @Override @@ -167,19 +171,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class KubesubmitV4DockerRegistrySecretsCreateRequest {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,36 +194,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * KubesubmitV4DockerRegistrySecretsCreateRequest} instance with all required arguments. + */ + public static Builder create() { + return (data) -> + (name) -> new KubesubmitV4DockerRegistrySecretsCreateRequest().data(data).name(name); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance with all required arguments. - */ - public static Builder create() { - return (data) -> (name) -> new KubesubmitV4DockerRegistrySecretsCreateRequest().data(data).name(name); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. - * - * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} - * @return The KubesubmitV4DockerRegistrySecretsCreateRequest builder. - */ - Builder1 data( @Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. - * - * @param name Name of the docker Registry store for the secret. - * @return The KubesubmitV4DockerRegistrySecretsCreateRequest instance. - */ - KubesubmitV4DockerRegistrySecretsCreateRequest name( @Nonnull final String name); - } + * Set the data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + * + * @param data The data of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} + * @return The KubesubmitV4DockerRegistrySecretsCreateRequest builder. + */ + Builder1 data(@Nonnull final BcknddockerRegistrySecretWithSensitiveDataRequestData data); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the name of this {@link KubesubmitV4DockerRegistrySecretsCreateRequest} instance. + * + * @param name Name of the docker Registry store for the secret. + * @return The KubesubmitV4DockerRegistrySecretsCreateRequest instance. + */ + KubesubmitV4DockerRegistrySecretsCreateRequest name(@Nonnull final String name); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java index 7f3210aa..57a10767 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAPIVersion.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * API version description - */ +/** API version description */ // CHECKSTYLE:OFF -public class MetaAPIVersion +public class MetaAPIVersion // CHECKSTYLE:ON { @JsonProperty("versionId") @@ -51,97 +38,107 @@ public class MetaAPIVersion @JsonProperty("description") private String description; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAPIVersion() { } - - /** - * Set the versionId of this {@link MetaAPIVersion} instance and return the same instance. - * - * @param versionId API version identifier - * @return The same instance of this {@link MetaAPIVersion} class - */ - @Nonnull public MetaAPIVersion versionId(@Nonnull final String versionId) { + + protected MetaAPIVersion() {} + + /** + * Set the versionId of this {@link MetaAPIVersion} instance and return the same instance. + * + * @param versionId API version identifier + * @return The same instance of this {@link MetaAPIVersion} class + */ + @Nonnull + public MetaAPIVersion versionId(@Nonnull final String versionId) { this.versionId = versionId; return this; } - /** - * API version identifier - * @return versionId The versionId of this {@link MetaAPIVersion} instance. - */ - @Nonnull public String getVersionId() { + /** + * API version identifier + * + * @return versionId The versionId of this {@link MetaAPIVersion} instance. + */ + @Nonnull + public String getVersionId() { return versionId; } /** * Set the versionId of this {@link MetaAPIVersion} instance. * - * @param versionId API version identifier + * @param versionId API version identifier */ - public void setVersionId( @Nonnull final String versionId) { + public void setVersionId(@Nonnull final String versionId) { this.versionId = versionId; } - /** - * Set the url of this {@link MetaAPIVersion} instance and return the same instance. - * - * @param url URL of the API version - * @return The same instance of this {@link MetaAPIVersion} class - */ - @Nonnull public MetaAPIVersion url(@Nonnull final String url) { + /** + * Set the url of this {@link MetaAPIVersion} instance and return the same instance. + * + * @param url URL of the API version + * @return The same instance of this {@link MetaAPIVersion} class + */ + @Nonnull + public MetaAPIVersion url(@Nonnull final String url) { this.url = url; return this; } - /** - * URL of the API version - * @return url The url of this {@link MetaAPIVersion} instance. - */ - @Nonnull public String getUrl() { + /** + * URL of the API version + * + * @return url The url of this {@link MetaAPIVersion} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link MetaAPIVersion} instance. * - * @param url URL of the API version + * @param url URL of the API version */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the description of this {@link MetaAPIVersion} instance and return the same instance. - * - * @param description version description - * @return The same instance of this {@link MetaAPIVersion} class - */ - @Nonnull public MetaAPIVersion description(@Nonnull final String description) { + /** + * Set the description of this {@link MetaAPIVersion} instance and return the same instance. + * + * @param description version description + * @return The same instance of this {@link MetaAPIVersion} class + */ + @Nonnull + public MetaAPIVersion description(@Nonnull final String description) { this.description = description; return this; } - /** - * version description - * @return description The description of this {@link MetaAPIVersion} instance. - */ - @Nonnull public String getDescription() { + /** + * version description + * + * @return description The description of this {@link MetaAPIVersion} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link MetaAPIVersion} instance. * - * @param description version description + * @param description version description */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } /** * Get the names of the unrecognizable properties of the {@link MetaAPIVersion}. + * * @return The set of properties names */ @JsonIgnore @@ -152,31 +149,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaAPIVersion} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAPIVersion has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaAPIVersion has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAPIVersion} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAPIVersion} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +183,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAPIVersion metaAPIVersion = (MetaAPIVersion) o; - return Objects.equals(this.cloudSdkCustomFields, metaAPIVersion.cloudSdkCustomFields) && - Objects.equals(this.versionId, metaAPIVersion.versionId) && - Objects.equals(this.url, metaAPIVersion.url) && - Objects.equals(this.description, metaAPIVersion.description); + return Objects.equals(this.cloudSdkCustomFields, metaAPIVersion.cloudSdkCustomFields) + && Objects.equals(this.versionId, metaAPIVersion.versionId) + && Objects.equals(this.url, metaAPIVersion.url) + && Objects.equals(this.description, metaAPIVersion.description); } @Override @@ -198,20 +195,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAPIVersion {\n"); sb.append(" versionId: ").append(toIndentedString(versionId)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,12 +219,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAPIVersion} instance. No arguments are required. - */ - public static MetaAPIVersion create() { - return new MetaAPIVersion(); - } - + /** Create a new {@link MetaAPIVersion} instance. No arguments are required. */ + public static MetaAPIVersion create() { + return new MetaAPIVersion(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java index 31d4df84..e981fbeb 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApi.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,27 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaAiApiCapabilities; -import com.sap.ai.sdk.core.client.model.MetaAiApiLimits; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * There are (currently) the following types of execution engines 1) complete runtimes that offer executions and deployments, 2) runtimes that do only batch inference and therefore don't support deployments 3) runtimes that allow deployments, but with predefined models and therefore don't need executions 4) runtimes that have fixed endpoints and therefore only need listing deployments + * There are (currently) the following types of execution engines 1) complete runtimes that offer + * executions and deployments, 2) runtimes that do only batch inference and therefore don't + * support deployments 3) runtimes that allow deployments, but with predefined models and therefore + * don't need executions 4) runtimes that have fixed endpoints and therefore only need listing + * deployments */ // CHECKSTYLE:OFF -public class MetaAiApi +public class MetaAiApi // CHECKSTYLE:ON { @JsonProperty("version") @@ -53,97 +44,107 @@ public class MetaAiApi @JsonProperty("limits") private MetaAiApiLimits limits; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApi() { } - - /** - * Set the version of this {@link MetaAiApi} instance and return the same instance. - * - * @param version The version of this {@link MetaAiApi} - * @return The same instance of this {@link MetaAiApi} class - */ - @Nonnull public MetaAiApi version(@Nonnull final String version) { + + protected MetaAiApi() {} + + /** + * Set the version of this {@link MetaAiApi} instance and return the same instance. + * + * @param version The version of this {@link MetaAiApi} + * @return The same instance of this {@link MetaAiApi} class + */ + @Nonnull + public MetaAiApi version(@Nonnull final String version) { this.version = version; return this; } - /** - * Get version - * @return version The version of this {@link MetaAiApi} instance. - */ - @Nonnull public String getVersion() { + /** + * Get version + * + * @return version The version of this {@link MetaAiApi} instance. + */ + @Nonnull + public String getVersion() { return version; } /** * Set the version of this {@link MetaAiApi} instance. * - * @param version The version of this {@link MetaAiApi} + * @param version The version of this {@link MetaAiApi} */ - public void setVersion( @Nonnull final String version) { + public void setVersion(@Nonnull final String version) { this.version = version; } - /** - * Set the capabilities of this {@link MetaAiApi} instance and return the same instance. - * - * @param capabilities The capabilities of this {@link MetaAiApi} - * @return The same instance of this {@link MetaAiApi} class - */ - @Nonnull public MetaAiApi capabilities(@Nonnull final MetaAiApiCapabilities capabilities) { + /** + * Set the capabilities of this {@link MetaAiApi} instance and return the same instance. + * + * @param capabilities The capabilities of this {@link MetaAiApi} + * @return The same instance of this {@link MetaAiApi} class + */ + @Nonnull + public MetaAiApi capabilities(@Nonnull final MetaAiApiCapabilities capabilities) { this.capabilities = capabilities; return this; } - /** - * Get capabilities - * @return capabilities The capabilities of this {@link MetaAiApi} instance. - */ - @Nonnull public MetaAiApiCapabilities getCapabilities() { + /** + * Get capabilities + * + * @return capabilities The capabilities of this {@link MetaAiApi} instance. + */ + @Nonnull + public MetaAiApiCapabilities getCapabilities() { return capabilities; } /** * Set the capabilities of this {@link MetaAiApi} instance. * - * @param capabilities The capabilities of this {@link MetaAiApi} + * @param capabilities The capabilities of this {@link MetaAiApi} */ - public void setCapabilities( @Nonnull final MetaAiApiCapabilities capabilities) { + public void setCapabilities(@Nonnull final MetaAiApiCapabilities capabilities) { this.capabilities = capabilities; } - /** - * Set the limits of this {@link MetaAiApi} instance and return the same instance. - * - * @param limits The limits of this {@link MetaAiApi} - * @return The same instance of this {@link MetaAiApi} class - */ - @Nonnull public MetaAiApi limits(@Nonnull final MetaAiApiLimits limits) { + /** + * Set the limits of this {@link MetaAiApi} instance and return the same instance. + * + * @param limits The limits of this {@link MetaAiApi} + * @return The same instance of this {@link MetaAiApi} class + */ + @Nonnull + public MetaAiApi limits(@Nonnull final MetaAiApiLimits limits) { this.limits = limits; return this; } - /** - * Get limits - * @return limits The limits of this {@link MetaAiApi} instance. - */ - @Nonnull public MetaAiApiLimits getLimits() { + /** + * Get limits + * + * @return limits The limits of this {@link MetaAiApi} instance. + */ + @Nonnull + public MetaAiApiLimits getLimits() { return limits; } /** * Set the limits of this {@link MetaAiApi} instance. * - * @param limits The limits of this {@link MetaAiApi} + * @param limits The limits of this {@link MetaAiApi} */ - public void setLimits( @Nonnull final MetaAiApiLimits limits) { + public void setLimits(@Nonnull final MetaAiApiLimits limits) { this.limits = limits; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApi}. + * * @return The set of properties names */ @JsonIgnore @@ -154,31 +155,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaAiApi} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApi has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaAiApi has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApi} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApi} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -188,10 +189,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAiApi metaAiApi = (MetaAiApi) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApi.cloudSdkCustomFields) && - Objects.equals(this.version, metaAiApi.version) && - Objects.equals(this.capabilities, metaAiApi.capabilities) && - Objects.equals(this.limits, metaAiApi.limits); + return Objects.equals(this.cloudSdkCustomFields, metaAiApi.cloudSdkCustomFields) + && Objects.equals(this.version, metaAiApi.version) + && Objects.equals(this.capabilities, metaAiApi.capabilities) + && Objects.equals(this.limits, metaAiApi.limits); } @Override @@ -200,20 +201,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApi {\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -222,24 +225,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link MetaAiApi} instance with all required arguments. - */ - public static Builder create() { - return (version) -> new MetaAiApi().version(version); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the version of this {@link MetaAiApi} instance. - * - * @param version The version of this {@link MetaAiApi} - * @return The MetaAiApi instance. - */ - MetaAiApi version( @Nonnull final String version); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaAiApi} instance + * with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaAiApi().version(version); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the version of this {@link MetaAiApi} instance. + * + * @param version The version of this {@link MetaAiApi} + * @return The MetaAiApi instance. + */ + MetaAiApi version(@Nonnull final String version); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java index c0865c1e..e293902e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilities.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaAiApiCapabilitiesBulkUpdates; -import com.sap.ai.sdk.core.client.model.MetaAiApiCapabilitiesLogs; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaAiApiCapabilities - */ +/** MetaAiApiCapabilities */ // CHECKSTYLE:OFF -public class MetaAiApiCapabilities +public class MetaAiApiCapabilities // CHECKSTYLE:ON { @JsonProperty("multitenant") @@ -71,265 +56,317 @@ public class MetaAiApiCapabilities @JsonProperty("bulkUpdates") private MetaAiApiCapabilitiesBulkUpdates bulkUpdates; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiCapabilities() { } - - /** - * Set the multitenant of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param multitenant true-> AI API implementation supports resource groups (Main Tenant scenario), false-> implementation does not support resource groups (Service Tenant scenario) - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities multitenant(@Nonnull final Boolean multitenant) { + + protected MetaAiApiCapabilities() {} + + /** + * Set the multitenant of this {@link MetaAiApiCapabilities} instance and return the same + * instance. + * + * @param multitenant true-> AI API implementation supports resource groups (Main Tenant + * scenario), false-> implementation does not support resource groups (Service Tenant + * scenario) + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities multitenant(@Nonnull final Boolean multitenant) { this.multitenant = multitenant; return this; } - /** - * true-> AI API implementation supports resource groups (Main Tenant scenario), false-> implementation does not support resource groups (Service Tenant scenario) - * @return multitenant The multitenant of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isMultitenant() { + /** + * true-> AI API implementation supports resource groups (Main Tenant scenario), false-> + * implementation does not support resource groups (Service Tenant scenario) + * + * @return multitenant The multitenant of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public Boolean isMultitenant() { return multitenant; } /** * Set the multitenant of this {@link MetaAiApiCapabilities} instance. * - * @param multitenant true-> AI API implementation supports resource groups (Main Tenant scenario), false-> implementation does not support resource groups (Service Tenant scenario) + * @param multitenant true-> AI API implementation supports resource groups (Main Tenant + * scenario), false-> implementation does not support resource groups (Service Tenant + * scenario) */ - public void setMultitenant( @Nonnull final Boolean multitenant) { + public void setMultitenant(@Nonnull final Boolean multitenant) { this.multitenant = multitenant; } - /** - * Set the shareable of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param shareable true-> clients can use just one instance (global static models), false-> clients should avoid sharing an instance - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities shareable(@Nonnull final Boolean shareable) { + /** + * Set the shareable of this {@link MetaAiApiCapabilities} instance and return the same instance. + * + * @param shareable true-> clients can use just one instance (global static models), false-> + * clients should avoid sharing an instance + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities shareable(@Nonnull final Boolean shareable) { this.shareable = shareable; return this; } - /** - * true-> clients can use just one instance (global static models), false-> clients should avoid sharing an instance - * @return shareable The shareable of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isShareable() { + /** + * true-> clients can use just one instance (global static models), false-> clients should + * avoid sharing an instance + * + * @return shareable The shareable of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public Boolean isShareable() { return shareable; } /** * Set the shareable of this {@link MetaAiApiCapabilities} instance. * - * @param shareable true-> clients can use just one instance (global static models), false-> clients should avoid sharing an instance + * @param shareable true-> clients can use just one instance (global static models), false-> + * clients should avoid sharing an instance */ - public void setShareable( @Nonnull final Boolean shareable) { + public void setShareable(@Nonnull final Boolean shareable) { this.shareable = shareable; } - /** - * Set the staticDeployments of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param staticDeployments There are static always running endpoints that can be used for inference without the need to do user deployments. - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities staticDeployments(@Nonnull final Boolean staticDeployments) { + /** + * Set the staticDeployments of this {@link MetaAiApiCapabilities} instance and return the same + * instance. + * + * @param staticDeployments There are static always running endpoints that can be used for + * inference without the need to do user deployments. + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities staticDeployments(@Nonnull final Boolean staticDeployments) { this.staticDeployments = staticDeployments; return this; } - /** - * There are static always running endpoints that can be used for inference without the need to do user deployments. - * @return staticDeployments The staticDeployments of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isStaticDeployments() { + /** + * There are static always running endpoints that can be used for inference without the need to do + * user deployments. + * + * @return staticDeployments The staticDeployments of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public Boolean isStaticDeployments() { return staticDeployments; } /** * Set the staticDeployments of this {@link MetaAiApiCapabilities} instance. * - * @param staticDeployments There are static always running endpoints that can be used for inference without the need to do user deployments. + * @param staticDeployments There are static always running endpoints that can be used for + * inference without the need to do user deployments. */ - public void setStaticDeployments( @Nonnull final Boolean staticDeployments) { + public void setStaticDeployments(@Nonnull final Boolean staticDeployments) { this.staticDeployments = staticDeployments; } - /** - * Set the userDeployments of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param userDeployments Services that only support batch inference typically neither allow listing nor creation of deployments. For these, userDeployments == false - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities userDeployments(@Nonnull final Boolean userDeployments) { + /** + * Set the userDeployments of this {@link MetaAiApiCapabilities} instance and return the same + * instance. + * + * @param userDeployments Services that only support batch inference typically neither allow + * listing nor creation of deployments. For these, userDeployments == false + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities userDeployments(@Nonnull final Boolean userDeployments) { this.userDeployments = userDeployments; return this; } - /** - * Services that only support batch inference typically neither allow listing nor creation of deployments. For these, userDeployments == false - * @return userDeployments The userDeployments of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isUserDeployments() { + /** + * Services that only support batch inference typically neither allow listing nor creation of + * deployments. For these, userDeployments == false + * + * @return userDeployments The userDeployments of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public Boolean isUserDeployments() { return userDeployments; } /** * Set the userDeployments of this {@link MetaAiApiCapabilities} instance. * - * @param userDeployments Services that only support batch inference typically neither allow listing nor creation of deployments. For these, userDeployments == false + * @param userDeployments Services that only support batch inference typically neither allow + * listing nor creation of deployments. For these, userDeployments == false */ - public void setUserDeployments( @Nonnull final Boolean userDeployments) { + public void setUserDeployments(@Nonnull final Boolean userDeployments) { this.userDeployments = userDeployments; } - /** - * Set the userExecutions of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param userExecutions The userExecutions of this {@link MetaAiApiCapabilities} - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities userExecutions(@Nonnull final Boolean userExecutions) { + /** + * Set the userExecutions of this {@link MetaAiApiCapabilities} instance and return the same + * instance. + * + * @param userExecutions The userExecutions of this {@link MetaAiApiCapabilities} + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities userExecutions(@Nonnull final Boolean userExecutions) { this.userExecutions = userExecutions; return this; } - /** - * Get userExecutions - * @return userExecutions The userExecutions of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isUserExecutions() { + /** + * Get userExecutions + * + * @return userExecutions The userExecutions of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public Boolean isUserExecutions() { return userExecutions; } /** * Set the userExecutions of this {@link MetaAiApiCapabilities} instance. * - * @param userExecutions The userExecutions of this {@link MetaAiApiCapabilities} + * @param userExecutions The userExecutions of this {@link MetaAiApiCapabilities} */ - public void setUserExecutions( @Nonnull final Boolean userExecutions) { + public void setUserExecutions(@Nonnull final Boolean userExecutions) { this.userExecutions = userExecutions; } - /** - * Set the timeToLiveDeployments of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiCapabilities} - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities timeToLiveDeployments(@Nonnull final Boolean timeToLiveDeployments) { + /** + * Set the timeToLiveDeployments of this {@link MetaAiApiCapabilities} instance and return the + * same instance. + * + * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiCapabilities} + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities timeToLiveDeployments(@Nonnull final Boolean timeToLiveDeployments) { this.timeToLiveDeployments = timeToLiveDeployments; return this; } - /** - * Get timeToLiveDeployments - * @return timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isTimeToLiveDeployments() { + /** + * Get timeToLiveDeployments + * + * @return timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiCapabilities} + * instance. + */ + @Nonnull + public Boolean isTimeToLiveDeployments() { return timeToLiveDeployments; } /** * Set the timeToLiveDeployments of this {@link MetaAiApiCapabilities} instance. * - * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiCapabilities} + * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiCapabilities} */ - public void setTimeToLiveDeployments( @Nonnull final Boolean timeToLiveDeployments) { + public void setTimeToLiveDeployments(@Nonnull final Boolean timeToLiveDeployments) { this.timeToLiveDeployments = timeToLiveDeployments; } - /** - * Set the executionSchedules of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param executionSchedules The executionSchedules of this {@link MetaAiApiCapabilities} - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities executionSchedules(@Nonnull final Boolean executionSchedules) { + /** + * Set the executionSchedules of this {@link MetaAiApiCapabilities} instance and return the same + * instance. + * + * @param executionSchedules The executionSchedules of this {@link MetaAiApiCapabilities} + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities executionSchedules(@Nonnull final Boolean executionSchedules) { this.executionSchedules = executionSchedules; return this; } - /** - * Get executionSchedules - * @return executionSchedules The executionSchedules of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public Boolean isExecutionSchedules() { + /** + * Get executionSchedules + * + * @return executionSchedules The executionSchedules of this {@link MetaAiApiCapabilities} + * instance. + */ + @Nonnull + public Boolean isExecutionSchedules() { return executionSchedules; } /** * Set the executionSchedules of this {@link MetaAiApiCapabilities} instance. * - * @param executionSchedules The executionSchedules of this {@link MetaAiApiCapabilities} + * @param executionSchedules The executionSchedules of this {@link MetaAiApiCapabilities} */ - public void setExecutionSchedules( @Nonnull final Boolean executionSchedules) { + public void setExecutionSchedules(@Nonnull final Boolean executionSchedules) { this.executionSchedules = executionSchedules; } - /** - * Set the logs of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param logs The logs of this {@link MetaAiApiCapabilities} - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities logs(@Nonnull final MetaAiApiCapabilitiesLogs logs) { + /** + * Set the logs of this {@link MetaAiApiCapabilities} instance and return the same instance. + * + * @param logs The logs of this {@link MetaAiApiCapabilities} + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities logs(@Nonnull final MetaAiApiCapabilitiesLogs logs) { this.logs = logs; return this; } - /** - * Get logs - * @return logs The logs of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public MetaAiApiCapabilitiesLogs getLogs() { + /** + * Get logs + * + * @return logs The logs of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public MetaAiApiCapabilitiesLogs getLogs() { return logs; } /** * Set the logs of this {@link MetaAiApiCapabilities} instance. * - * @param logs The logs of this {@link MetaAiApiCapabilities} + * @param logs The logs of this {@link MetaAiApiCapabilities} */ - public void setLogs( @Nonnull final MetaAiApiCapabilitiesLogs logs) { + public void setLogs(@Nonnull final MetaAiApiCapabilitiesLogs logs) { this.logs = logs; } - /** - * Set the bulkUpdates of this {@link MetaAiApiCapabilities} instance and return the same instance. - * - * @param bulkUpdates The bulkUpdates of this {@link MetaAiApiCapabilities} - * @return The same instance of this {@link MetaAiApiCapabilities} class - */ - @Nonnull public MetaAiApiCapabilities bulkUpdates(@Nonnull final MetaAiApiCapabilitiesBulkUpdates bulkUpdates) { + /** + * Set the bulkUpdates of this {@link MetaAiApiCapabilities} instance and return the same + * instance. + * + * @param bulkUpdates The bulkUpdates of this {@link MetaAiApiCapabilities} + * @return The same instance of this {@link MetaAiApiCapabilities} class + */ + @Nonnull + public MetaAiApiCapabilities bulkUpdates( + @Nonnull final MetaAiApiCapabilitiesBulkUpdates bulkUpdates) { this.bulkUpdates = bulkUpdates; return this; } - /** - * Get bulkUpdates - * @return bulkUpdates The bulkUpdates of this {@link MetaAiApiCapabilities} instance. - */ - @Nonnull public MetaAiApiCapabilitiesBulkUpdates getBulkUpdates() { + /** + * Get bulkUpdates + * + * @return bulkUpdates The bulkUpdates of this {@link MetaAiApiCapabilities} instance. + */ + @Nonnull + public MetaAiApiCapabilitiesBulkUpdates getBulkUpdates() { return bulkUpdates; } /** * Set the bulkUpdates of this {@link MetaAiApiCapabilities} instance. * - * @param bulkUpdates The bulkUpdates of this {@link MetaAiApiCapabilities} + * @param bulkUpdates The bulkUpdates of this {@link MetaAiApiCapabilities} */ - public void setBulkUpdates( @Nonnull final MetaAiApiCapabilitiesBulkUpdates bulkUpdates) { + public void setBulkUpdates(@Nonnull final MetaAiApiCapabilitiesBulkUpdates bulkUpdates) { this.bulkUpdates = bulkUpdates; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApiCapabilities}. + * * @return The set of properties names */ @JsonIgnore @@ -340,31 +377,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaAiApiCapabilities} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiCapabilities has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaAiApiCapabilities has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiCapabilities} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiCapabilities} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -374,25 +412,36 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAiApiCapabilities metaAiApiCapabilities = (MetaAiApiCapabilities) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiCapabilities.cloudSdkCustomFields) && - Objects.equals(this.multitenant, metaAiApiCapabilities.multitenant) && - Objects.equals(this.shareable, metaAiApiCapabilities.shareable) && - Objects.equals(this.staticDeployments, metaAiApiCapabilities.staticDeployments) && - Objects.equals(this.userDeployments, metaAiApiCapabilities.userDeployments) && - Objects.equals(this.userExecutions, metaAiApiCapabilities.userExecutions) && - Objects.equals(this.timeToLiveDeployments, metaAiApiCapabilities.timeToLiveDeployments) && - Objects.equals(this.executionSchedules, metaAiApiCapabilities.executionSchedules) && - Objects.equals(this.logs, metaAiApiCapabilities.logs) && - Objects.equals(this.bulkUpdates, metaAiApiCapabilities.bulkUpdates); + return Objects.equals(this.cloudSdkCustomFields, metaAiApiCapabilities.cloudSdkCustomFields) + && Objects.equals(this.multitenant, metaAiApiCapabilities.multitenant) + && Objects.equals(this.shareable, metaAiApiCapabilities.shareable) + && Objects.equals(this.staticDeployments, metaAiApiCapabilities.staticDeployments) + && Objects.equals(this.userDeployments, metaAiApiCapabilities.userDeployments) + && Objects.equals(this.userExecutions, metaAiApiCapabilities.userExecutions) + && Objects.equals(this.timeToLiveDeployments, metaAiApiCapabilities.timeToLiveDeployments) + && Objects.equals(this.executionSchedules, metaAiApiCapabilities.executionSchedules) + && Objects.equals(this.logs, metaAiApiCapabilities.logs) + && Objects.equals(this.bulkUpdates, metaAiApiCapabilities.bulkUpdates); } @Override public int hashCode() { - return Objects.hash(multitenant, shareable, staticDeployments, userDeployments, userExecutions, timeToLiveDeployments, executionSchedules, logs, bulkUpdates, cloudSdkCustomFields); + return Objects.hash( + multitenant, + shareable, + staticDeployments, + userDeployments, + userExecutions, + timeToLiveDeployments, + executionSchedules, + logs, + bulkUpdates, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiCapabilities {\n"); sb.append(" multitenant: ").append(toIndentedString(multitenant)).append("\n"); @@ -400,18 +449,21 @@ public int hashCode() { sb.append(" staticDeployments: ").append(toIndentedString(staticDeployments)).append("\n"); sb.append(" userDeployments: ").append(toIndentedString(userDeployments)).append("\n"); sb.append(" userExecutions: ").append(toIndentedString(userExecutions)).append("\n"); - sb.append(" timeToLiveDeployments: ").append(toIndentedString(timeToLiveDeployments)).append("\n"); + sb.append(" timeToLiveDeployments: ") + .append(toIndentedString(timeToLiveDeployments)) + .append("\n"); sb.append(" executionSchedules: ").append(toIndentedString(executionSchedules)).append("\n"); sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); sb.append(" bulkUpdates: ").append(toIndentedString(bulkUpdates)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -420,12 +472,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiCapabilities} instance. No arguments are required. - */ - public static MetaAiApiCapabilities create() { - return new MetaAiApiCapabilities(); - } - + /** Create a new {@link MetaAiApiCapabilities} instance. No arguments are required. */ + public static MetaAiApiCapabilities create() { + return new MetaAiApiCapabilities(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java index fd263437..c11875e1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesBulkUpdates.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Services that support patch on /executions and /deployments to change targetStatus of multiple executions and deployments. + * Services that support patch on /executions and /deployments to change targetStatus of multiple + * executions and deployments. */ // CHECKSTYLE:OFF -public class MetaAiApiCapabilitiesBulkUpdates +public class MetaAiApiCapabilitiesBulkUpdates // CHECKSTYLE:ON { @JsonProperty("executions") @@ -48,69 +38,78 @@ public class MetaAiApiCapabilitiesBulkUpdates @JsonProperty("deployments") private Boolean deployments = false; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiCapabilitiesBulkUpdates() { } - - /** - * Set the executions of this {@link MetaAiApiCapabilitiesBulkUpdates} instance and return the same instance. - * - * @param executions The executions of this {@link MetaAiApiCapabilitiesBulkUpdates} - * @return The same instance of this {@link MetaAiApiCapabilitiesBulkUpdates} class - */ - @Nonnull public MetaAiApiCapabilitiesBulkUpdates executions(@Nonnull final Boolean executions) { + + protected MetaAiApiCapabilitiesBulkUpdates() {} + + /** + * Set the executions of this {@link MetaAiApiCapabilitiesBulkUpdates} instance and return the + * same instance. + * + * @param executions The executions of this {@link MetaAiApiCapabilitiesBulkUpdates} + * @return The same instance of this {@link MetaAiApiCapabilitiesBulkUpdates} class + */ + @Nonnull + public MetaAiApiCapabilitiesBulkUpdates executions(@Nonnull final Boolean executions) { this.executions = executions; return this; } - /** - * Get executions - * @return executions The executions of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. - */ - @Nonnull public Boolean isExecutions() { + /** + * Get executions + * + * @return executions The executions of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. + */ + @Nonnull + public Boolean isExecutions() { return executions; } /** * Set the executions of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. * - * @param executions The executions of this {@link MetaAiApiCapabilitiesBulkUpdates} + * @param executions The executions of this {@link MetaAiApiCapabilitiesBulkUpdates} */ - public void setExecutions( @Nonnull final Boolean executions) { + public void setExecutions(@Nonnull final Boolean executions) { this.executions = executions; } - /** - * Set the deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} instance and return the same instance. - * - * @param deployments The deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} - * @return The same instance of this {@link MetaAiApiCapabilitiesBulkUpdates} class - */ - @Nonnull public MetaAiApiCapabilitiesBulkUpdates deployments(@Nonnull final Boolean deployments) { + /** + * Set the deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} instance and return the + * same instance. + * + * @param deployments The deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} + * @return The same instance of this {@link MetaAiApiCapabilitiesBulkUpdates} class + */ + @Nonnull + public MetaAiApiCapabilitiesBulkUpdates deployments(@Nonnull final Boolean deployments) { this.deployments = deployments; return this; } - /** - * Get deployments - * @return deployments The deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. - */ - @Nonnull public Boolean isDeployments() { + /** + * Get deployments + * + * @return deployments The deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. + */ + @Nonnull + public Boolean isDeployments() { return deployments; } /** * Set the deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. * - * @param deployments The deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} + * @param deployments The deployments of this {@link MetaAiApiCapabilitiesBulkUpdates} */ - public void setDeployments( @Nonnull final Boolean deployments) { + public void setDeployments(@Nonnull final Boolean deployments) { this.deployments = deployments; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApiCapabilitiesBulkUpdates}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +119,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link MetaAiApiCapabilitiesBulkUpdates} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiCapabilitiesBulkUpdates has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaAiApiCapabilitiesBulkUpdates has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiCapabilitiesBulkUpdates} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +156,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final MetaAiApiCapabilitiesBulkUpdates metaAiApiCapabilitiesBulkUpdates = (MetaAiApiCapabilitiesBulkUpdates) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiCapabilitiesBulkUpdates.cloudSdkCustomFields) && - Objects.equals(this.executions, metaAiApiCapabilitiesBulkUpdates.executions) && - Objects.equals(this.deployments, metaAiApiCapabilitiesBulkUpdates.deployments); + final MetaAiApiCapabilitiesBulkUpdates metaAiApiCapabilitiesBulkUpdates = + (MetaAiApiCapabilitiesBulkUpdates) o; + return Objects.equals( + this.cloudSdkCustomFields, metaAiApiCapabilitiesBulkUpdates.cloudSdkCustomFields) + && Objects.equals(this.executions, metaAiApiCapabilitiesBulkUpdates.executions) + && Objects.equals(this.deployments, metaAiApiCapabilitiesBulkUpdates.deployments); } @Override @@ -166,19 +170,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiCapabilitiesBulkUpdates {\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); sb.append(" deployments: ").append(toIndentedString(deployments)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +193,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiCapabilitiesBulkUpdates} instance. No arguments are required. - */ - public static MetaAiApiCapabilitiesBulkUpdates create() { - return new MetaAiApiCapabilitiesBulkUpdates(); - } - + /** Create a new {@link MetaAiApiCapabilitiesBulkUpdates} instance. No arguments are required. */ + public static MetaAiApiCapabilitiesBulkUpdates create() { + return new MetaAiApiCapabilitiesBulkUpdates(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java index 24e43d2e..3de909d9 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiCapabilitiesLogs.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaAiApiCapabilitiesLogs - */ +/** MetaAiApiCapabilitiesLogs */ // CHECKSTYLE:OFF -public class MetaAiApiCapabilitiesLogs +public class MetaAiApiCapabilitiesLogs // CHECKSTYLE:ON { @JsonProperty("executions") @@ -48,69 +35,78 @@ public class MetaAiApiCapabilitiesLogs @JsonProperty("deployments") private Boolean deployments = true; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiCapabilitiesLogs() { } - - /** - * Set the executions of this {@link MetaAiApiCapabilitiesLogs} instance and return the same instance. - * - * @param executions The executions of this {@link MetaAiApiCapabilitiesLogs} - * @return The same instance of this {@link MetaAiApiCapabilitiesLogs} class - */ - @Nonnull public MetaAiApiCapabilitiesLogs executions(@Nonnull final Boolean executions) { + + protected MetaAiApiCapabilitiesLogs() {} + + /** + * Set the executions of this {@link MetaAiApiCapabilitiesLogs} instance and return the same + * instance. + * + * @param executions The executions of this {@link MetaAiApiCapabilitiesLogs} + * @return The same instance of this {@link MetaAiApiCapabilitiesLogs} class + */ + @Nonnull + public MetaAiApiCapabilitiesLogs executions(@Nonnull final Boolean executions) { this.executions = executions; return this; } - /** - * Get executions - * @return executions The executions of this {@link MetaAiApiCapabilitiesLogs} instance. - */ - @Nonnull public Boolean isExecutions() { + /** + * Get executions + * + * @return executions The executions of this {@link MetaAiApiCapabilitiesLogs} instance. + */ + @Nonnull + public Boolean isExecutions() { return executions; } /** * Set the executions of this {@link MetaAiApiCapabilitiesLogs} instance. * - * @param executions The executions of this {@link MetaAiApiCapabilitiesLogs} + * @param executions The executions of this {@link MetaAiApiCapabilitiesLogs} */ - public void setExecutions( @Nonnull final Boolean executions) { + public void setExecutions(@Nonnull final Boolean executions) { this.executions = executions; } - /** - * Set the deployments of this {@link MetaAiApiCapabilitiesLogs} instance and return the same instance. - * - * @param deployments The deployments of this {@link MetaAiApiCapabilitiesLogs} - * @return The same instance of this {@link MetaAiApiCapabilitiesLogs} class - */ - @Nonnull public MetaAiApiCapabilitiesLogs deployments(@Nonnull final Boolean deployments) { + /** + * Set the deployments of this {@link MetaAiApiCapabilitiesLogs} instance and return the same + * instance. + * + * @param deployments The deployments of this {@link MetaAiApiCapabilitiesLogs} + * @return The same instance of this {@link MetaAiApiCapabilitiesLogs} class + */ + @Nonnull + public MetaAiApiCapabilitiesLogs deployments(@Nonnull final Boolean deployments) { this.deployments = deployments; return this; } - /** - * Get deployments - * @return deployments The deployments of this {@link MetaAiApiCapabilitiesLogs} instance. - */ - @Nonnull public Boolean isDeployments() { + /** + * Get deployments + * + * @return deployments The deployments of this {@link MetaAiApiCapabilitiesLogs} instance. + */ + @Nonnull + public Boolean isDeployments() { return deployments; } /** * Set the deployments of this {@link MetaAiApiCapabilitiesLogs} instance. * - * @param deployments The deployments of this {@link MetaAiApiCapabilitiesLogs} + * @param deployments The deployments of this {@link MetaAiApiCapabilitiesLogs} */ - public void setDeployments( @Nonnull final Boolean deployments) { + public void setDeployments(@Nonnull final Boolean deployments) { this.deployments = deployments; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApiCapabilitiesLogs}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +117,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaAiApiCapabilitiesLogs} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiCapabilitiesLogs has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaAiApiCapabilitiesLogs has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiCapabilitiesLogs} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiCapabilitiesLogs} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +152,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAiApiCapabilitiesLogs metaAiApiCapabilitiesLogs = (MetaAiApiCapabilitiesLogs) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiCapabilitiesLogs.cloudSdkCustomFields) && - Objects.equals(this.executions, metaAiApiCapabilitiesLogs.executions) && - Objects.equals(this.deployments, metaAiApiCapabilitiesLogs.deployments); + return Objects.equals(this.cloudSdkCustomFields, metaAiApiCapabilitiesLogs.cloudSdkCustomFields) + && Objects.equals(this.executions, metaAiApiCapabilitiesLogs.executions) + && Objects.equals(this.deployments, metaAiApiCapabilitiesLogs.deployments); } @Override @@ -166,19 +163,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiCapabilitiesLogs {\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); sb.append(" deployments: ").append(toIndentedString(deployments)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +186,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiCapabilitiesLogs} instance. No arguments are required. - */ - public static MetaAiApiCapabilitiesLogs create() { - return new MetaAiApiCapabilitiesLogs(); - } - + /** Create a new {@link MetaAiApiCapabilitiesLogs} instance. No arguments are required. */ + public static MetaAiApiCapabilitiesLogs create() { + return new MetaAiApiCapabilitiesLogs(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java index 849db26a..b5d176c6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimits.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaAiApiLimitsDeployments; -import com.sap.ai.sdk.core.client.model.MetaAiApiLimitsExecutions; -import com.sap.ai.sdk.core.client.model.MetaAiApiLimitsTimeToLiveDeployments; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaAiApiLimits - */ +/** MetaAiApiLimits */ // CHECKSTYLE:OFF -public class MetaAiApiLimits +public class MetaAiApiLimits // CHECKSTYLE:ON { @JsonProperty("executions") @@ -54,97 +38,111 @@ public class MetaAiApiLimits @JsonProperty("timeToLiveDeployments") private MetaAiApiLimitsTimeToLiveDeployments timeToLiveDeployments; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiLimits() { } - - /** - * Set the executions of this {@link MetaAiApiLimits} instance and return the same instance. - * - * @param executions The executions of this {@link MetaAiApiLimits} - * @return The same instance of this {@link MetaAiApiLimits} class - */ - @Nonnull public MetaAiApiLimits executions(@Nonnull final MetaAiApiLimitsExecutions executions) { + + protected MetaAiApiLimits() {} + + /** + * Set the executions of this {@link MetaAiApiLimits} instance and return the same instance. + * + * @param executions The executions of this {@link MetaAiApiLimits} + * @return The same instance of this {@link MetaAiApiLimits} class + */ + @Nonnull + public MetaAiApiLimits executions(@Nonnull final MetaAiApiLimitsExecutions executions) { this.executions = executions; return this; } - /** - * Get executions - * @return executions The executions of this {@link MetaAiApiLimits} instance. - */ - @Nonnull public MetaAiApiLimitsExecutions getExecutions() { + /** + * Get executions + * + * @return executions The executions of this {@link MetaAiApiLimits} instance. + */ + @Nonnull + public MetaAiApiLimitsExecutions getExecutions() { return executions; } /** * Set the executions of this {@link MetaAiApiLimits} instance. * - * @param executions The executions of this {@link MetaAiApiLimits} + * @param executions The executions of this {@link MetaAiApiLimits} */ - public void setExecutions( @Nonnull final MetaAiApiLimitsExecutions executions) { + public void setExecutions(@Nonnull final MetaAiApiLimitsExecutions executions) { this.executions = executions; } - /** - * Set the deployments of this {@link MetaAiApiLimits} instance and return the same instance. - * - * @param deployments The deployments of this {@link MetaAiApiLimits} - * @return The same instance of this {@link MetaAiApiLimits} class - */ - @Nonnull public MetaAiApiLimits deployments(@Nonnull final MetaAiApiLimitsDeployments deployments) { + /** + * Set the deployments of this {@link MetaAiApiLimits} instance and return the same instance. + * + * @param deployments The deployments of this {@link MetaAiApiLimits} + * @return The same instance of this {@link MetaAiApiLimits} class + */ + @Nonnull + public MetaAiApiLimits deployments(@Nonnull final MetaAiApiLimitsDeployments deployments) { this.deployments = deployments; return this; } - /** - * Get deployments - * @return deployments The deployments of this {@link MetaAiApiLimits} instance. - */ - @Nonnull public MetaAiApiLimitsDeployments getDeployments() { + /** + * Get deployments + * + * @return deployments The deployments of this {@link MetaAiApiLimits} instance. + */ + @Nonnull + public MetaAiApiLimitsDeployments getDeployments() { return deployments; } /** * Set the deployments of this {@link MetaAiApiLimits} instance. * - * @param deployments The deployments of this {@link MetaAiApiLimits} + * @param deployments The deployments of this {@link MetaAiApiLimits} */ - public void setDeployments( @Nonnull final MetaAiApiLimitsDeployments deployments) { + public void setDeployments(@Nonnull final MetaAiApiLimitsDeployments deployments) { this.deployments = deployments; } - /** - * Set the timeToLiveDeployments of this {@link MetaAiApiLimits} instance and return the same instance. - * - * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiLimits} - * @return The same instance of this {@link MetaAiApiLimits} class - */ - @Nonnull public MetaAiApiLimits timeToLiveDeployments(@Nonnull final MetaAiApiLimitsTimeToLiveDeployments timeToLiveDeployments) { + /** + * Set the timeToLiveDeployments of this {@link MetaAiApiLimits} instance and return the same + * instance. + * + * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiLimits} + * @return The same instance of this {@link MetaAiApiLimits} class + */ + @Nonnull + public MetaAiApiLimits timeToLiveDeployments( + @Nonnull final MetaAiApiLimitsTimeToLiveDeployments timeToLiveDeployments) { this.timeToLiveDeployments = timeToLiveDeployments; return this; } - /** - * Get timeToLiveDeployments - * @return timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiLimits} instance. - */ - @Nonnull public MetaAiApiLimitsTimeToLiveDeployments getTimeToLiveDeployments() { + /** + * Get timeToLiveDeployments + * + * @return timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiLimits} + * instance. + */ + @Nonnull + public MetaAiApiLimitsTimeToLiveDeployments getTimeToLiveDeployments() { return timeToLiveDeployments; } /** * Set the timeToLiveDeployments of this {@link MetaAiApiLimits} instance. * - * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiLimits} + * @param timeToLiveDeployments The timeToLiveDeployments of this {@link MetaAiApiLimits} */ - public void setTimeToLiveDeployments( @Nonnull final MetaAiApiLimitsTimeToLiveDeployments timeToLiveDeployments) { + public void setTimeToLiveDeployments( + @Nonnull final MetaAiApiLimitsTimeToLiveDeployments timeToLiveDeployments) { this.timeToLiveDeployments = timeToLiveDeployments; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApiLimits}. + * * @return The set of properties names */ @JsonIgnore @@ -155,31 +153,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaAiApiLimits} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiLimits has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaAiApiLimits has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiLimits} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiLimits} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -189,10 +187,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAiApiLimits metaAiApiLimits = (MetaAiApiLimits) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiLimits.cloudSdkCustomFields) && - Objects.equals(this.executions, metaAiApiLimits.executions) && - Objects.equals(this.deployments, metaAiApiLimits.deployments) && - Objects.equals(this.timeToLiveDeployments, metaAiApiLimits.timeToLiveDeployments); + return Objects.equals(this.cloudSdkCustomFields, metaAiApiLimits.cloudSdkCustomFields) + && Objects.equals(this.executions, metaAiApiLimits.executions) + && Objects.equals(this.deployments, metaAiApiLimits.deployments) + && Objects.equals(this.timeToLiveDeployments, metaAiApiLimits.timeToLiveDeployments); } @Override @@ -201,20 +199,24 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiLimits {\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); sb.append(" deployments: ").append(toIndentedString(deployments)).append("\n"); - sb.append(" timeToLiveDeployments: ").append(toIndentedString(timeToLiveDeployments)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" timeToLiveDeployments: ") + .append(toIndentedString(timeToLiveDeployments)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -223,12 +225,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiLimits} instance. No arguments are required. - */ - public static MetaAiApiLimits create() { - return new MetaAiApiLimits(); - } - + /** Create a new {@link MetaAiApiLimits} instance. No arguments are required. */ + public static MetaAiApiLimits create() { + return new MetaAiApiLimits(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java index 151d2379..d95149b7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsDeployments.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,69 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaAiApiLimitsDeployments - */ +/** MetaAiApiLimitsDeployments */ // CHECKSTYLE:OFF -public class MetaAiApiLimitsDeployments +public class MetaAiApiLimitsDeployments // CHECKSTYLE:ON { @JsonProperty("maxRunningCount") private Integer maxRunningCount = -1; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiLimitsDeployments() { } - - /** - * Set the maxRunningCount of this {@link MetaAiApiLimitsDeployments} instance and return the same instance. - * - * @param maxRunningCount Max nr of deployments allowed by this runtime per resource group. <0 means unlimited. - * @return The same instance of this {@link MetaAiApiLimitsDeployments} class - */ - @Nonnull public MetaAiApiLimitsDeployments maxRunningCount(@Nonnull final Integer maxRunningCount) { + + protected MetaAiApiLimitsDeployments() {} + + /** + * Set the maxRunningCount of this {@link MetaAiApiLimitsDeployments} instance and return the same + * instance. + * + * @param maxRunningCount Max nr of deployments allowed by this runtime per resource group. <0 + * means unlimited. + * @return The same instance of this {@link MetaAiApiLimitsDeployments} class + */ + @Nonnull + public MetaAiApiLimitsDeployments maxRunningCount(@Nonnull final Integer maxRunningCount) { this.maxRunningCount = maxRunningCount; return this; } - /** - * Max nr of deployments allowed by this runtime per resource group. <0 means unlimited. - * @return maxRunningCount The maxRunningCount of this {@link MetaAiApiLimitsDeployments} instance. - */ - @Nonnull public Integer getMaxRunningCount() { + /** + * Max nr of deployments allowed by this runtime per resource group. <0 means unlimited. + * + * @return maxRunningCount The maxRunningCount of this {@link MetaAiApiLimitsDeployments} + * instance. + */ + @Nonnull + public Integer getMaxRunningCount() { return maxRunningCount; } /** * Set the maxRunningCount of this {@link MetaAiApiLimitsDeployments} instance. * - * @param maxRunningCount Max nr of deployments allowed by this runtime per resource group. <0 means unlimited. + * @param maxRunningCount Max nr of deployments allowed by this runtime per resource group. <0 + * means unlimited. */ - public void setMaxRunningCount( @Nonnull final Integer maxRunningCount) { + public void setMaxRunningCount(@Nonnull final Integer maxRunningCount) { this.maxRunningCount = maxRunningCount; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApiLimitsDeployments}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +84,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link MetaAiApiLimitsDeployments} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link MetaAiApiLimitsDeployments} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiLimitsDeployments has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaAiApiLimitsDeployments has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiLimitsDeployments} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiLimitsDeployments} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +121,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAiApiLimitsDeployments metaAiApiLimitsDeployments = (MetaAiApiLimitsDeployments) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiLimitsDeployments.cloudSdkCustomFields) && - Objects.equals(this.maxRunningCount, metaAiApiLimitsDeployments.maxRunningCount); + return Objects.equals( + this.cloudSdkCustomFields, metaAiApiLimitsDeployments.cloudSdkCustomFields) + && Objects.equals(this.maxRunningCount, metaAiApiLimitsDeployments.maxRunningCount); } @Override @@ -134,18 +132,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiLimitsDeployments {\n"); sb.append(" maxRunningCount: ").append(toIndentedString(maxRunningCount)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +154,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiLimitsDeployments} instance. No arguments are required. - */ - public static MetaAiApiLimitsDeployments create() { - return new MetaAiApiLimitsDeployments(); - } - + /** Create a new {@link MetaAiApiLimitsDeployments} instance. No arguments are required. */ + public static MetaAiApiLimitsDeployments create() { + return new MetaAiApiLimitsDeployments(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java index 057e2fdd..2b1a5cda 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsExecutions.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,68 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaAiApiLimitsExecutions - */ +/** MetaAiApiLimitsExecutions */ // CHECKSTYLE:OFF -public class MetaAiApiLimitsExecutions +public class MetaAiApiLimitsExecutions // CHECKSTYLE:ON { @JsonProperty("maxRunningCount") private Integer maxRunningCount = -1; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiLimitsExecutions() { } - - /** - * Set the maxRunningCount of this {@link MetaAiApiLimitsExecutions} instance and return the same instance. - * - * @param maxRunningCount Max nr of executions allowed by this runtime per resource group. <0 means unlimited. - * @return The same instance of this {@link MetaAiApiLimitsExecutions} class - */ - @Nonnull public MetaAiApiLimitsExecutions maxRunningCount(@Nonnull final Integer maxRunningCount) { + + protected MetaAiApiLimitsExecutions() {} + + /** + * Set the maxRunningCount of this {@link MetaAiApiLimitsExecutions} instance and return the same + * instance. + * + * @param maxRunningCount Max nr of executions allowed by this runtime per resource group. <0 + * means unlimited. + * @return The same instance of this {@link MetaAiApiLimitsExecutions} class + */ + @Nonnull + public MetaAiApiLimitsExecutions maxRunningCount(@Nonnull final Integer maxRunningCount) { this.maxRunningCount = maxRunningCount; return this; } - /** - * Max nr of executions allowed by this runtime per resource group. <0 means unlimited. - * @return maxRunningCount The maxRunningCount of this {@link MetaAiApiLimitsExecutions} instance. - */ - @Nonnull public Integer getMaxRunningCount() { + /** + * Max nr of executions allowed by this runtime per resource group. <0 means unlimited. + * + * @return maxRunningCount The maxRunningCount of this {@link MetaAiApiLimitsExecutions} instance. + */ + @Nonnull + public Integer getMaxRunningCount() { return maxRunningCount; } /** * Set the maxRunningCount of this {@link MetaAiApiLimitsExecutions} instance. * - * @param maxRunningCount Max nr of executions allowed by this runtime per resource group. <0 means unlimited. + * @param maxRunningCount Max nr of executions allowed by this runtime per resource group. <0 + * means unlimited. */ - public void setMaxRunningCount( @Nonnull final Integer maxRunningCount) { + public void setMaxRunningCount(@Nonnull final Integer maxRunningCount) { this.maxRunningCount = maxRunningCount; } /** * Get the names of the unrecognizable properties of the {@link MetaAiApiLimitsExecutions}. + * * @return The set of properties names */ @JsonIgnore @@ -90,31 +84,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaAiApiLimitsExecutions} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiLimitsExecutions has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaAiApiLimitsExecutions has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiLimitsExecutions} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiLimitsExecutions} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +119,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaAiApiLimitsExecutions metaAiApiLimitsExecutions = (MetaAiApiLimitsExecutions) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiLimitsExecutions.cloudSdkCustomFields) && - Objects.equals(this.maxRunningCount, metaAiApiLimitsExecutions.maxRunningCount); + return Objects.equals(this.cloudSdkCustomFields, metaAiApiLimitsExecutions.cloudSdkCustomFields) + && Objects.equals(this.maxRunningCount, metaAiApiLimitsExecutions.maxRunningCount); } @Override @@ -134,18 +129,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiLimitsExecutions {\n"); sb.append(" maxRunningCount: ").append(toIndentedString(maxRunningCount)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +151,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiLimitsExecutions} instance. No arguments are required. - */ - public static MetaAiApiLimitsExecutions create() { - return new MetaAiApiLimitsExecutions(); - } - + /** Create a new {@link MetaAiApiLimitsExecutions} instance. No arguments are required. */ + public static MetaAiApiLimitsExecutions create() { + return new MetaAiApiLimitsExecutions(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java index ff7c8769..4dd83c46 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaAiApiLimitsTimeToLiveDeployments.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaAiApiLimitsTimeToLiveDeployments - */ +/** MetaAiApiLimitsTimeToLiveDeployments */ // CHECKSTYLE:OFF -public class MetaAiApiLimitsTimeToLiveDeployments +public class MetaAiApiLimitsTimeToLiveDeployments // CHECKSTYLE:ON { @JsonProperty("minimum") @@ -48,69 +35,79 @@ public class MetaAiApiLimitsTimeToLiveDeployments @JsonProperty("maximum") private String maximum = "-1"; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaAiApiLimitsTimeToLiveDeployments() { } - - /** - * Set the minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance and return the same instance. - * - * @param minimum The minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} - * @return The same instance of this {@link MetaAiApiLimitsTimeToLiveDeployments} class - */ - @Nonnull public MetaAiApiLimitsTimeToLiveDeployments minimum(@Nonnull final String minimum) { + + protected MetaAiApiLimitsTimeToLiveDeployments() {} + + /** + * Set the minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance and return the + * same instance. + * + * @param minimum The minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} + * @return The same instance of this {@link MetaAiApiLimitsTimeToLiveDeployments} class + */ + @Nonnull + public MetaAiApiLimitsTimeToLiveDeployments minimum(@Nonnull final String minimum) { this.minimum = minimum; return this; } - /** - * Get minimum - * @return minimum The minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. - */ - @Nonnull public String getMinimum() { + /** + * Get minimum + * + * @return minimum The minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. + */ + @Nonnull + public String getMinimum() { return minimum; } /** * Set the minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. * - * @param minimum The minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} + * @param minimum The minimum of this {@link MetaAiApiLimitsTimeToLiveDeployments} */ - public void setMinimum( @Nonnull final String minimum) { + public void setMinimum(@Nonnull final String minimum) { this.minimum = minimum; } - /** - * Set the maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance and return the same instance. - * - * @param maximum The maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} - * @return The same instance of this {@link MetaAiApiLimitsTimeToLiveDeployments} class - */ - @Nonnull public MetaAiApiLimitsTimeToLiveDeployments maximum(@Nonnull final String maximum) { + /** + * Set the maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance and return the + * same instance. + * + * @param maximum The maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} + * @return The same instance of this {@link MetaAiApiLimitsTimeToLiveDeployments} class + */ + @Nonnull + public MetaAiApiLimitsTimeToLiveDeployments maximum(@Nonnull final String maximum) { this.maximum = maximum; return this; } - /** - * Get maximum - * @return maximum The maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. - */ - @Nonnull public String getMaximum() { + /** + * Get maximum + * + * @return maximum The maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. + */ + @Nonnull + public String getMaximum() { return maximum; } /** * Set the maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. * - * @param maximum The maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} + * @param maximum The maximum of this {@link MetaAiApiLimitsTimeToLiveDeployments} */ - public void setMaximum( @Nonnull final String maximum) { + public void setMaximum(@Nonnull final String maximum) { this.maximum = maximum; } /** - * Get the names of the unrecognizable properties of the {@link MetaAiApiLimitsTimeToLiveDeployments}. + * Get the names of the unrecognizable properties of the {@link + * MetaAiApiLimitsTimeToLiveDeployments}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +117,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * MetaAiApiLimitsTimeToLiveDeployments} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaAiApiLimitsTimeToLiveDeployments has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaAiApiLimitsTimeToLiveDeployments has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaAiApiLimitsTimeToLiveDeployments} instance. + * If the map previously contained a mapping for the key, the old value is replaced by the + * specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +154,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final MetaAiApiLimitsTimeToLiveDeployments metaAiApiLimitsTimeToLiveDeployments = (MetaAiApiLimitsTimeToLiveDeployments) o; - return Objects.equals(this.cloudSdkCustomFields, metaAiApiLimitsTimeToLiveDeployments.cloudSdkCustomFields) && - Objects.equals(this.minimum, metaAiApiLimitsTimeToLiveDeployments.minimum) && - Objects.equals(this.maximum, metaAiApiLimitsTimeToLiveDeployments.maximum); + final MetaAiApiLimitsTimeToLiveDeployments metaAiApiLimitsTimeToLiveDeployments = + (MetaAiApiLimitsTimeToLiveDeployments) o; + return Objects.equals( + this.cloudSdkCustomFields, metaAiApiLimitsTimeToLiveDeployments.cloudSdkCustomFields) + && Objects.equals(this.minimum, metaAiApiLimitsTimeToLiveDeployments.minimum) + && Objects.equals(this.maximum, metaAiApiLimitsTimeToLiveDeployments.maximum); } @Override @@ -166,19 +168,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaAiApiLimitsTimeToLiveDeployments {\n"); sb.append(" minimum: ").append(toIndentedString(minimum)).append("\n"); sb.append(" maximum: ").append(toIndentedString(maximum)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +191,10 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaAiApiLimitsTimeToLiveDeployments} instance. No arguments are required. - */ - public static MetaAiApiLimitsTimeToLiveDeployments create() { - return new MetaAiApiLimitsTimeToLiveDeployments(); - } - + /** + * Create a new {@link MetaAiApiLimitsTimeToLiveDeployments} instance. No arguments are required. + */ + public static MetaAiApiLimitsTimeToLiveDeployments create() { + return new MetaAiApiLimitsTimeToLiveDeployments(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java index 90444690..db69244b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaApiError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaApiError - */ +/** MetaApiError */ // CHECKSTYLE:OFF -public class MetaApiError +public class MetaApiError // CHECKSTYLE:ON { @JsonProperty("code") @@ -57,153 +44,169 @@ public class MetaApiError @JsonProperty("details") private Object details; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaApiError() { } - - /** - * Set the code of this {@link MetaApiError} instance and return the same instance. - * - * @param code Descriptive error code (not http status code) - * @return The same instance of this {@link MetaApiError} class - */ - @Nonnull public MetaApiError code(@Nonnull final String code) { + + protected MetaApiError() {} + + /** + * Set the code of this {@link MetaApiError} instance and return the same instance. + * + * @param code Descriptive error code (not http status code) + * @return The same instance of this {@link MetaApiError} class + */ + @Nonnull + public MetaApiError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code) - * @return code The code of this {@link MetaApiError} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code) + * + * @return code The code of this {@link MetaApiError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link MetaApiError} instance. * - * @param code Descriptive error code (not http status code) + * @param code Descriptive error code (not http status code) */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link MetaApiError} instance and return the same instance. - * - * @param message Plaintext error description - * @return The same instance of this {@link MetaApiError} class - */ - @Nonnull public MetaApiError message(@Nonnull final String message) { + /** + * Set the message of this {@link MetaApiError} instance and return the same instance. + * + * @param message Plaintext error description + * @return The same instance of this {@link MetaApiError} class + */ + @Nonnull + public MetaApiError message(@Nonnull final String message) { this.message = message; return this; } - /** - * Plaintext error description - * @return message The message of this {@link MetaApiError} instance. - */ - @Nonnull public String getMessage() { + /** + * Plaintext error description + * + * @return message The message of this {@link MetaApiError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link MetaApiError} instance. * - * @param message Plaintext error description + * @param message Plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the requestId of this {@link MetaApiError} instance and return the same instance. - * - * @param requestId ID of the individual request - * @return The same instance of this {@link MetaApiError} class - */ - @Nonnull public MetaApiError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link MetaApiError} instance and return the same instance. + * + * @param requestId ID of the individual request + * @return The same instance of this {@link MetaApiError} class + */ + @Nonnull + public MetaApiError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * ID of the individual request - * @return requestId The requestId of this {@link MetaApiError} instance. - */ - @Nonnull public String getRequestId() { + /** + * ID of the individual request + * + * @return requestId The requestId of this {@link MetaApiError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link MetaApiError} instance. * - * @param requestId ID of the individual request + * @param requestId ID of the individual request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the target of this {@link MetaApiError} instance and return the same instance. - * - * @param target Invoked URL - * @return The same instance of this {@link MetaApiError} class - */ - @Nonnull public MetaApiError target(@Nonnull final String target) { + /** + * Set the target of this {@link MetaApiError} instance and return the same instance. + * + * @param target Invoked URL + * @return The same instance of this {@link MetaApiError} class + */ + @Nonnull + public MetaApiError target(@Nonnull final String target) { this.target = target; return this; } - /** - * Invoked URL - * @return target The target of this {@link MetaApiError} instance. - */ - @Nonnull public String getTarget() { + /** + * Invoked URL + * + * @return target The target of this {@link MetaApiError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link MetaApiError} instance. * - * @param target Invoked URL + * @param target Invoked URL */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the details of this {@link MetaApiError} instance and return the same instance. - * - * @param details Optional details of the error message - * @return The same instance of this {@link MetaApiError} class - */ - @Nonnull public MetaApiError details(@Nonnull final Object details) { + /** + * Set the details of this {@link MetaApiError} instance and return the same instance. + * + * @param details Optional details of the error message + * @return The same instance of this {@link MetaApiError} class + */ + @Nonnull + public MetaApiError details(@Nonnull final Object details) { this.details = details; return this; } - /** - * Optional details of the error message - * @return details The details of this {@link MetaApiError} instance. - */ - @Nonnull public Object getDetails() { + /** + * Optional details of the error message + * + * @return details The details of this {@link MetaApiError} instance. + */ + @Nonnull + public Object getDetails() { return details; } /** * Set the details of this {@link MetaApiError} instance. * - * @param details Optional details of the error message + * @param details Optional details of the error message */ - public void setDetails( @Nonnull final Object details) { + public void setDetails(@Nonnull final Object details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link MetaApiError}. + * * @return The set of properties names */ @JsonIgnore @@ -214,31 +217,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaApiError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaApiError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaApiError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaApiError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaApiError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,12 +251,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaApiError metaApiError = (MetaApiError) o; - return Objects.equals(this.cloudSdkCustomFields, metaApiError.cloudSdkCustomFields) && - Objects.equals(this.code, metaApiError.code) && - Objects.equals(this.message, metaApiError.message) && - Objects.equals(this.requestId, metaApiError.requestId) && - Objects.equals(this.target, metaApiError.target) && - Objects.equals(this.details, metaApiError.details); + return Objects.equals(this.cloudSdkCustomFields, metaApiError.cloudSdkCustomFields) + && Objects.equals(this.code, metaApiError.code) + && Objects.equals(this.message, metaApiError.message) + && Objects.equals(this.requestId, metaApiError.requestId) + && Objects.equals(this.target, metaApiError.target) + && Objects.equals(this.details, metaApiError.details); } @Override @@ -262,7 +265,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaApiError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -270,14 +274,15 @@ public int hashCode() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -286,36 +291,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaApiError} instance + * with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new MetaApiError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link MetaApiError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new MetaApiError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link MetaApiError} instance. - * - * @param code Descriptive error code (not http status code) - * @return The MetaApiError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link MetaApiError} instance. - * - * @param message Plaintext error description - * @return The MetaApiError instance. - */ - MetaApiError message( @Nonnull final String message); - } + * Set the code of this {@link MetaApiError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The MetaApiError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link MetaApiError} instance. + * + * @param message Plaintext error description + * @return The MetaApiError instance. + */ + MetaApiError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java index 0cecedd3..e81e2458 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaCapabilities.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaAiApi; -import com.sap.ai.sdk.core.client.model.MetaExtensions; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaCapabilities - */ +/** MetaCapabilities */ // CHECKSTYLE:OFF -public class MetaCapabilities +public class MetaCapabilities // CHECKSTYLE:ON { @JsonProperty("runtimeIdentifier") @@ -59,153 +44,171 @@ public class MetaCapabilities @JsonProperty("extensions") private MetaExtensions extensions; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaCapabilities() { } - - /** - * Set the runtimeIdentifier of this {@link MetaCapabilities} instance and return the same instance. - * - * @param runtimeIdentifier The name of the runtime - * @return The same instance of this {@link MetaCapabilities} class - */ - @Nonnull public MetaCapabilities runtimeIdentifier(@Nonnull final String runtimeIdentifier) { + + protected MetaCapabilities() {} + + /** + * Set the runtimeIdentifier of this {@link MetaCapabilities} instance and return the same + * instance. + * + * @param runtimeIdentifier The name of the runtime + * @return The same instance of this {@link MetaCapabilities} class + */ + @Nonnull + public MetaCapabilities runtimeIdentifier(@Nonnull final String runtimeIdentifier) { this.runtimeIdentifier = runtimeIdentifier; return this; } - /** - * The name of the runtime - * @return runtimeIdentifier The runtimeIdentifier of this {@link MetaCapabilities} instance. - */ - @Nonnull public String getRuntimeIdentifier() { + /** + * The name of the runtime + * + * @return runtimeIdentifier The runtimeIdentifier of this {@link MetaCapabilities} instance. + */ + @Nonnull + public String getRuntimeIdentifier() { return runtimeIdentifier; } /** * Set the runtimeIdentifier of this {@link MetaCapabilities} instance. * - * @param runtimeIdentifier The name of the runtime + * @param runtimeIdentifier The name of the runtime */ - public void setRuntimeIdentifier( @Nonnull final String runtimeIdentifier) { + public void setRuntimeIdentifier(@Nonnull final String runtimeIdentifier) { this.runtimeIdentifier = runtimeIdentifier; } - /** - * Set the runtimeApiVersion of this {@link MetaCapabilities} instance and return the same instance. - * - * @param runtimeApiVersion The runtimeApiVersion of this {@link MetaCapabilities} - * @return The same instance of this {@link MetaCapabilities} class - */ - @Nonnull public MetaCapabilities runtimeApiVersion(@Nonnull final String runtimeApiVersion) { + /** + * Set the runtimeApiVersion of this {@link MetaCapabilities} instance and return the same + * instance. + * + * @param runtimeApiVersion The runtimeApiVersion of this {@link MetaCapabilities} + * @return The same instance of this {@link MetaCapabilities} class + */ + @Nonnull + public MetaCapabilities runtimeApiVersion(@Nonnull final String runtimeApiVersion) { this.runtimeApiVersion = runtimeApiVersion; return this; } - /** - * Get runtimeApiVersion - * @return runtimeApiVersion The runtimeApiVersion of this {@link MetaCapabilities} instance. - */ - @Nonnull public String getRuntimeApiVersion() { + /** + * Get runtimeApiVersion + * + * @return runtimeApiVersion The runtimeApiVersion of this {@link MetaCapabilities} instance. + */ + @Nonnull + public String getRuntimeApiVersion() { return runtimeApiVersion; } /** * Set the runtimeApiVersion of this {@link MetaCapabilities} instance. * - * @param runtimeApiVersion The runtimeApiVersion of this {@link MetaCapabilities} + * @param runtimeApiVersion The runtimeApiVersion of this {@link MetaCapabilities} */ - public void setRuntimeApiVersion( @Nonnull final String runtimeApiVersion) { + public void setRuntimeApiVersion(@Nonnull final String runtimeApiVersion) { this.runtimeApiVersion = runtimeApiVersion; } - /** - * Set the description of this {@link MetaCapabilities} instance and return the same instance. - * - * @param description The description of this {@link MetaCapabilities} - * @return The same instance of this {@link MetaCapabilities} class - */ - @Nonnull public MetaCapabilities description(@Nonnull final String description) { + /** + * Set the description of this {@link MetaCapabilities} instance and return the same instance. + * + * @param description The description of this {@link MetaCapabilities} + * @return The same instance of this {@link MetaCapabilities} class + */ + @Nonnull + public MetaCapabilities description(@Nonnull final String description) { this.description = description; return this; } - /** - * Get description - * @return description The description of this {@link MetaCapabilities} instance. - */ - @Nonnull public String getDescription() { + /** + * Get description + * + * @return description The description of this {@link MetaCapabilities} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link MetaCapabilities} instance. * - * @param description The description of this {@link MetaCapabilities} + * @param description The description of this {@link MetaCapabilities} */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the aiApi of this {@link MetaCapabilities} instance and return the same instance. - * - * @param aiApi The aiApi of this {@link MetaCapabilities} - * @return The same instance of this {@link MetaCapabilities} class - */ - @Nonnull public MetaCapabilities aiApi(@Nonnull final MetaAiApi aiApi) { + /** + * Set the aiApi of this {@link MetaCapabilities} instance and return the same instance. + * + * @param aiApi The aiApi of this {@link MetaCapabilities} + * @return The same instance of this {@link MetaCapabilities} class + */ + @Nonnull + public MetaCapabilities aiApi(@Nonnull final MetaAiApi aiApi) { this.aiApi = aiApi; return this; } - /** - * Get aiApi - * @return aiApi The aiApi of this {@link MetaCapabilities} instance. - */ - @Nonnull public MetaAiApi getAiApi() { + /** + * Get aiApi + * + * @return aiApi The aiApi of this {@link MetaCapabilities} instance. + */ + @Nonnull + public MetaAiApi getAiApi() { return aiApi; } /** * Set the aiApi of this {@link MetaCapabilities} instance. * - * @param aiApi The aiApi of this {@link MetaCapabilities} + * @param aiApi The aiApi of this {@link MetaCapabilities} */ - public void setAiApi( @Nonnull final MetaAiApi aiApi) { + public void setAiApi(@Nonnull final MetaAiApi aiApi) { this.aiApi = aiApi; } - /** - * Set the extensions of this {@link MetaCapabilities} instance and return the same instance. - * - * @param extensions The extensions of this {@link MetaCapabilities} - * @return The same instance of this {@link MetaCapabilities} class - */ - @Nonnull public MetaCapabilities extensions(@Nonnull final MetaExtensions extensions) { + /** + * Set the extensions of this {@link MetaCapabilities} instance and return the same instance. + * + * @param extensions The extensions of this {@link MetaCapabilities} + * @return The same instance of this {@link MetaCapabilities} class + */ + @Nonnull + public MetaCapabilities extensions(@Nonnull final MetaExtensions extensions) { this.extensions = extensions; return this; } - /** - * Get extensions - * @return extensions The extensions of this {@link MetaCapabilities} instance. - */ - @Nonnull public MetaExtensions getExtensions() { + /** + * Get extensions + * + * @return extensions The extensions of this {@link MetaCapabilities} instance. + */ + @Nonnull + public MetaExtensions getExtensions() { return extensions; } /** * Set the extensions of this {@link MetaCapabilities} instance. * - * @param extensions The extensions of this {@link MetaCapabilities} + * @param extensions The extensions of this {@link MetaCapabilities} */ - public void setExtensions( @Nonnull final MetaExtensions extensions) { + public void setExtensions(@Nonnull final MetaExtensions extensions) { this.extensions = extensions; } /** * Get the names of the unrecognizable properties of the {@link MetaCapabilities}. + * * @return The set of properties names */ @JsonIgnore @@ -216,31 +219,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaCapabilities} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaCapabilities has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaCapabilities has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaCapabilities} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaCapabilities} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -250,21 +253,23 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaCapabilities metaCapabilities = (MetaCapabilities) o; - return Objects.equals(this.cloudSdkCustomFields, metaCapabilities.cloudSdkCustomFields) && - Objects.equals(this.runtimeIdentifier, metaCapabilities.runtimeIdentifier) && - Objects.equals(this.runtimeApiVersion, metaCapabilities.runtimeApiVersion) && - Objects.equals(this.description, metaCapabilities.description) && - Objects.equals(this.aiApi, metaCapabilities.aiApi) && - Objects.equals(this.extensions, metaCapabilities.extensions); + return Objects.equals(this.cloudSdkCustomFields, metaCapabilities.cloudSdkCustomFields) + && Objects.equals(this.runtimeIdentifier, metaCapabilities.runtimeIdentifier) + && Objects.equals(this.runtimeApiVersion, metaCapabilities.runtimeApiVersion) + && Objects.equals(this.description, metaCapabilities.description) + && Objects.equals(this.aiApi, metaCapabilities.aiApi) + && Objects.equals(this.extensions, metaCapabilities.extensions); } @Override public int hashCode() { - return Objects.hash(runtimeIdentifier, runtimeApiVersion, description, aiApi, extensions, cloudSdkCustomFields); + return Objects.hash( + runtimeIdentifier, runtimeApiVersion, description, aiApi, extensions, cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaCapabilities {\n"); sb.append(" runtimeIdentifier: ").append(toIndentedString(runtimeIdentifier)).append("\n"); @@ -272,14 +277,15 @@ public int hashCode() { sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" aiApi: ").append(toIndentedString(aiApi)).append("\n"); sb.append(" extensions: ").append(toIndentedString(extensions)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -288,24 +294,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link MetaCapabilities} instance with all required arguments. - */ - public static Builder create() { - return (aiApi) -> new MetaCapabilities().aiApi(aiApi); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the aiApi of this {@link MetaCapabilities} instance. - * - * @param aiApi The aiApi of this {@link MetaCapabilities} - * @return The MetaCapabilities instance. - */ - MetaCapabilities aiApi( @Nonnull final MetaAiApi aiApi); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaCapabilities} + * instance with all required arguments. + */ + public static Builder create() { + return (aiApi) -> new MetaCapabilities().aiApi(aiApi); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the aiApi of this {@link MetaCapabilities} instance. + * + * @param aiApi The aiApi of this {@link MetaCapabilities} + * @return The MetaCapabilities instance. + */ + MetaCapabilities aiApi(@Nonnull final MetaAiApi aiApi); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java index 4436e841..2a8db48e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensions.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaExtensionsAnalytics; -import com.sap.ai.sdk.core.client.model.MetaExtensionsDataset; -import com.sap.ai.sdk.core.client.model.MetaExtensionsMetrics; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaExtensions - */ +/** MetaExtensions */ // CHECKSTYLE:OFF -public class MetaExtensions +public class MetaExtensions // CHECKSTYLE:ON { @JsonProperty("analytics") @@ -57,125 +41,138 @@ public class MetaExtensions @JsonProperty("metrics") private MetaExtensionsMetrics metrics; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensions() { } - /** - * Set the analytics of this {@link MetaExtensions} instance and return the same instance. - * - * @param analytics The analytics of this {@link MetaExtensions} - * @return The same instance of this {@link MetaExtensions} class - */ - @Nonnull public MetaExtensions analytics(@Nonnull final MetaExtensionsAnalytics analytics) { + protected MetaExtensions() {} + + /** + * Set the analytics of this {@link MetaExtensions} instance and return the same instance. + * + * @param analytics The analytics of this {@link MetaExtensions} + * @return The same instance of this {@link MetaExtensions} class + */ + @Nonnull + public MetaExtensions analytics(@Nonnull final MetaExtensionsAnalytics analytics) { this.analytics = analytics; return this; } - /** - * Get analytics - * @return analytics The analytics of this {@link MetaExtensions} instance. - */ - @Nonnull public MetaExtensionsAnalytics getAnalytics() { + /** + * Get analytics + * + * @return analytics The analytics of this {@link MetaExtensions} instance. + */ + @Nonnull + public MetaExtensionsAnalytics getAnalytics() { return analytics; } /** * Set the analytics of this {@link MetaExtensions} instance. * - * @param analytics The analytics of this {@link MetaExtensions} + * @param analytics The analytics of this {@link MetaExtensions} */ - public void setAnalytics( @Nonnull final MetaExtensionsAnalytics analytics) { + public void setAnalytics(@Nonnull final MetaExtensionsAnalytics analytics) { this.analytics = analytics; } - /** - * Set the resourceGroups of this {@link MetaExtensions} instance and return the same instance. - * - * @param resourceGroups The resourceGroups of this {@link MetaExtensions} - * @return The same instance of this {@link MetaExtensions} class - */ - @Nonnull public MetaExtensions resourceGroups(@Nonnull final MetaExtensionsAnalytics resourceGroups) { + /** + * Set the resourceGroups of this {@link MetaExtensions} instance and return the same instance. + * + * @param resourceGroups The resourceGroups of this {@link MetaExtensions} + * @return The same instance of this {@link MetaExtensions} class + */ + @Nonnull + public MetaExtensions resourceGroups(@Nonnull final MetaExtensionsAnalytics resourceGroups) { this.resourceGroups = resourceGroups; return this; } - /** - * Get resourceGroups - * @return resourceGroups The resourceGroups of this {@link MetaExtensions} instance. - */ - @Nonnull public MetaExtensionsAnalytics getResourceGroups() { + /** + * Get resourceGroups + * + * @return resourceGroups The resourceGroups of this {@link MetaExtensions} instance. + */ + @Nonnull + public MetaExtensionsAnalytics getResourceGroups() { return resourceGroups; } /** * Set the resourceGroups of this {@link MetaExtensions} instance. * - * @param resourceGroups The resourceGroups of this {@link MetaExtensions} + * @param resourceGroups The resourceGroups of this {@link MetaExtensions} */ - public void setResourceGroups( @Nonnull final MetaExtensionsAnalytics resourceGroups) { + public void setResourceGroups(@Nonnull final MetaExtensionsAnalytics resourceGroups) { this.resourceGroups = resourceGroups; } - /** - * Set the dataset of this {@link MetaExtensions} instance and return the same instance. - * - * @param dataset The dataset of this {@link MetaExtensions} - * @return The same instance of this {@link MetaExtensions} class - */ - @Nonnull public MetaExtensions dataset(@Nonnull final MetaExtensionsDataset dataset) { + /** + * Set the dataset of this {@link MetaExtensions} instance and return the same instance. + * + * @param dataset The dataset of this {@link MetaExtensions} + * @return The same instance of this {@link MetaExtensions} class + */ + @Nonnull + public MetaExtensions dataset(@Nonnull final MetaExtensionsDataset dataset) { this.dataset = dataset; return this; } - /** - * Get dataset - * @return dataset The dataset of this {@link MetaExtensions} instance. - */ - @Nonnull public MetaExtensionsDataset getDataset() { + /** + * Get dataset + * + * @return dataset The dataset of this {@link MetaExtensions} instance. + */ + @Nonnull + public MetaExtensionsDataset getDataset() { return dataset; } /** * Set the dataset of this {@link MetaExtensions} instance. * - * @param dataset The dataset of this {@link MetaExtensions} + * @param dataset The dataset of this {@link MetaExtensions} */ - public void setDataset( @Nonnull final MetaExtensionsDataset dataset) { + public void setDataset(@Nonnull final MetaExtensionsDataset dataset) { this.dataset = dataset; } - /** - * Set the metrics of this {@link MetaExtensions} instance and return the same instance. - * - * @param metrics The metrics of this {@link MetaExtensions} - * @return The same instance of this {@link MetaExtensions} class - */ - @Nonnull public MetaExtensions metrics(@Nonnull final MetaExtensionsMetrics metrics) { + /** + * Set the metrics of this {@link MetaExtensions} instance and return the same instance. + * + * @param metrics The metrics of this {@link MetaExtensions} + * @return The same instance of this {@link MetaExtensions} class + */ + @Nonnull + public MetaExtensions metrics(@Nonnull final MetaExtensionsMetrics metrics) { this.metrics = metrics; return this; } - /** - * Get metrics - * @return metrics The metrics of this {@link MetaExtensions} instance. - */ - @Nonnull public MetaExtensionsMetrics getMetrics() { + /** + * Get metrics + * + * @return metrics The metrics of this {@link MetaExtensions} instance. + */ + @Nonnull + public MetaExtensionsMetrics getMetrics() { return metrics; } /** * Set the metrics of this {@link MetaExtensions} instance. * - * @param metrics The metrics of this {@link MetaExtensions} + * @param metrics The metrics of this {@link MetaExtensions} */ - public void setMetrics( @Nonnull final MetaExtensionsMetrics metrics) { + public void setMetrics(@Nonnull final MetaExtensionsMetrics metrics) { this.metrics = metrics; } /** * Get the names of the unrecognizable properties of the {@link MetaExtensions}. + * * @return The set of properties names */ @JsonIgnore @@ -186,31 +183,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaExtensions} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensions has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaExtensions has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensions} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensions} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -220,11 +217,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaExtensions metaExtensions = (MetaExtensions) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensions.cloudSdkCustomFields) && - Objects.equals(this.analytics, metaExtensions.analytics) && - Objects.equals(this.resourceGroups, metaExtensions.resourceGroups) && - Objects.equals(this.dataset, metaExtensions.dataset) && - Objects.equals(this.metrics, metaExtensions.metrics); + return Objects.equals(this.cloudSdkCustomFields, metaExtensions.cloudSdkCustomFields) + && Objects.equals(this.analytics, metaExtensions.analytics) + && Objects.equals(this.resourceGroups, metaExtensions.resourceGroups) + && Objects.equals(this.dataset, metaExtensions.dataset) + && Objects.equals(this.metrics, metaExtensions.metrics); } @Override @@ -233,21 +230,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensions {\n"); sb.append(" analytics: ").append(toIndentedString(analytics)).append("\n"); sb.append(" resourceGroups: ").append(toIndentedString(resourceGroups)).append("\n"); sb.append(" dataset: ").append(toIndentedString(dataset)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -256,12 +255,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaExtensions} instance. No arguments are required. - */ - public static MetaExtensions create() { - return new MetaExtensions(); - } - + /** Create a new {@link MetaExtensions} instance. No arguments are required. */ + public static MetaExtensions create() { + return new MetaExtensions(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java index 14888b5b..a084d4b0 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsAnalytics.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaExtensionsAnalytics - */ +/** MetaExtensionsAnalytics */ // CHECKSTYLE:OFF -public class MetaExtensionsAnalytics +public class MetaExtensionsAnalytics // CHECKSTYLE:ON { @JsonProperty("version") private String version; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensionsAnalytics() { } - - /** - * Set the version of this {@link MetaExtensionsAnalytics} instance and return the same instance. - * - * @param version The version of this {@link MetaExtensionsAnalytics} - * @return The same instance of this {@link MetaExtensionsAnalytics} class - */ - @Nonnull public MetaExtensionsAnalytics version(@Nonnull final String version) { + + protected MetaExtensionsAnalytics() {} + + /** + * Set the version of this {@link MetaExtensionsAnalytics} instance and return the same instance. + * + * @param version The version of this {@link MetaExtensionsAnalytics} + * @return The same instance of this {@link MetaExtensionsAnalytics} class + */ + @Nonnull + public MetaExtensionsAnalytics version(@Nonnull final String version) { this.version = version; return this; } - /** - * Get version - * @return version The version of this {@link MetaExtensionsAnalytics} instance. - */ - @Nonnull public String getVersion() { + /** + * Get version + * + * @return version The version of this {@link MetaExtensionsAnalytics} instance. + */ + @Nonnull + public String getVersion() { return version; } /** * Set the version of this {@link MetaExtensionsAnalytics} instance. * - * @param version The version of this {@link MetaExtensionsAnalytics} + * @param version The version of this {@link MetaExtensionsAnalytics} */ - public void setVersion( @Nonnull final String version) { + public void setVersion(@Nonnull final String version) { this.version = version; } /** * Get the names of the unrecognizable properties of the {@link MetaExtensionsAnalytics}. + * * @return The set of properties names */ @JsonIgnore @@ -90,31 +81,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaExtensionsAnalytics} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensionsAnalytics has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaExtensionsAnalytics has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensionsAnalytics} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensionsAnalytics} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +116,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaExtensionsAnalytics metaExtensionsAnalytics = (MetaExtensionsAnalytics) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensionsAnalytics.cloudSdkCustomFields) && - Objects.equals(this.version, metaExtensionsAnalytics.version); + return Objects.equals(this.cloudSdkCustomFields, metaExtensionsAnalytics.cloudSdkCustomFields) + && Objects.equals(this.version, metaExtensionsAnalytics.version); } @Override @@ -134,18 +126,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensionsAnalytics {\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,24 +148,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsAnalytics} instance with all required arguments. - */ - public static Builder create() { - return (version) -> new MetaExtensionsAnalytics().version(version); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the version of this {@link MetaExtensionsAnalytics} instance. - * - * @param version The version of this {@link MetaExtensionsAnalytics} - * @return The MetaExtensionsAnalytics instance. - */ - MetaExtensionsAnalytics version( @Nonnull final String version); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * MetaExtensionsAnalytics} instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaExtensionsAnalytics().version(version); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the version of this {@link MetaExtensionsAnalytics} instance. + * + * @param version The version of this {@link MetaExtensionsAnalytics} + * @return The MetaExtensionsAnalytics instance. + */ + MetaExtensionsAnalytics version(@Nonnull final String version); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java index 66477cb2..bace1ba4 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDataset.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaExtensionsDatasetCapabilities; -import com.sap.ai.sdk.core.client.model.MetaExtensionsDatasetLimits; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaExtensionsDataset - */ +/** MetaExtensionsDataset */ // CHECKSTYLE:OFF -public class MetaExtensionsDataset +public class MetaExtensionsDataset // CHECKSTYLE:ON { @JsonProperty("version") @@ -53,97 +38,109 @@ public class MetaExtensionsDataset @JsonProperty("limits") private MetaExtensionsDatasetLimits limits; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensionsDataset() { } - - /** - * Set the version of this {@link MetaExtensionsDataset} instance and return the same instance. - * - * @param version The version of this {@link MetaExtensionsDataset} - * @return The same instance of this {@link MetaExtensionsDataset} class - */ - @Nonnull public MetaExtensionsDataset version(@Nonnull final String version) { + + protected MetaExtensionsDataset() {} + + /** + * Set the version of this {@link MetaExtensionsDataset} instance and return the same instance. + * + * @param version The version of this {@link MetaExtensionsDataset} + * @return The same instance of this {@link MetaExtensionsDataset} class + */ + @Nonnull + public MetaExtensionsDataset version(@Nonnull final String version) { this.version = version; return this; } - /** - * Get version - * @return version The version of this {@link MetaExtensionsDataset} instance. - */ - @Nonnull public String getVersion() { + /** + * Get version + * + * @return version The version of this {@link MetaExtensionsDataset} instance. + */ + @Nonnull + public String getVersion() { return version; } /** * Set the version of this {@link MetaExtensionsDataset} instance. * - * @param version The version of this {@link MetaExtensionsDataset} + * @param version The version of this {@link MetaExtensionsDataset} */ - public void setVersion( @Nonnull final String version) { + public void setVersion(@Nonnull final String version) { this.version = version; } - /** - * Set the capabilities of this {@link MetaExtensionsDataset} instance and return the same instance. - * - * @param capabilities The capabilities of this {@link MetaExtensionsDataset} - * @return The same instance of this {@link MetaExtensionsDataset} class - */ - @Nonnull public MetaExtensionsDataset capabilities(@Nonnull final MetaExtensionsDatasetCapabilities capabilities) { + /** + * Set the capabilities of this {@link MetaExtensionsDataset} instance and return the same + * instance. + * + * @param capabilities The capabilities of this {@link MetaExtensionsDataset} + * @return The same instance of this {@link MetaExtensionsDataset} class + */ + @Nonnull + public MetaExtensionsDataset capabilities( + @Nonnull final MetaExtensionsDatasetCapabilities capabilities) { this.capabilities = capabilities; return this; } - /** - * Get capabilities - * @return capabilities The capabilities of this {@link MetaExtensionsDataset} instance. - */ - @Nonnull public MetaExtensionsDatasetCapabilities getCapabilities() { + /** + * Get capabilities + * + * @return capabilities The capabilities of this {@link MetaExtensionsDataset} instance. + */ + @Nonnull + public MetaExtensionsDatasetCapabilities getCapabilities() { return capabilities; } /** * Set the capabilities of this {@link MetaExtensionsDataset} instance. * - * @param capabilities The capabilities of this {@link MetaExtensionsDataset} + * @param capabilities The capabilities of this {@link MetaExtensionsDataset} */ - public void setCapabilities( @Nonnull final MetaExtensionsDatasetCapabilities capabilities) { + public void setCapabilities(@Nonnull final MetaExtensionsDatasetCapabilities capabilities) { this.capabilities = capabilities; } - /** - * Set the limits of this {@link MetaExtensionsDataset} instance and return the same instance. - * - * @param limits The limits of this {@link MetaExtensionsDataset} - * @return The same instance of this {@link MetaExtensionsDataset} class - */ - @Nonnull public MetaExtensionsDataset limits(@Nonnull final MetaExtensionsDatasetLimits limits) { + /** + * Set the limits of this {@link MetaExtensionsDataset} instance and return the same instance. + * + * @param limits The limits of this {@link MetaExtensionsDataset} + * @return The same instance of this {@link MetaExtensionsDataset} class + */ + @Nonnull + public MetaExtensionsDataset limits(@Nonnull final MetaExtensionsDatasetLimits limits) { this.limits = limits; return this; } - /** - * Get limits - * @return limits The limits of this {@link MetaExtensionsDataset} instance. - */ - @Nonnull public MetaExtensionsDatasetLimits getLimits() { + /** + * Get limits + * + * @return limits The limits of this {@link MetaExtensionsDataset} instance. + */ + @Nonnull + public MetaExtensionsDatasetLimits getLimits() { return limits; } /** * Set the limits of this {@link MetaExtensionsDataset} instance. * - * @param limits The limits of this {@link MetaExtensionsDataset} + * @param limits The limits of this {@link MetaExtensionsDataset} */ - public void setLimits( @Nonnull final MetaExtensionsDatasetLimits limits) { + public void setLimits(@Nonnull final MetaExtensionsDatasetLimits limits) { this.limits = limits; } /** * Get the names of the unrecognizable properties of the {@link MetaExtensionsDataset}. + * * @return The set of properties names */ @JsonIgnore @@ -154,31 +151,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaExtensionsDataset} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensionsDataset has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaExtensionsDataset has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensionsDataset} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensionsDataset} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -188,10 +186,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaExtensionsDataset metaExtensionsDataset = (MetaExtensionsDataset) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensionsDataset.cloudSdkCustomFields) && - Objects.equals(this.version, metaExtensionsDataset.version) && - Objects.equals(this.capabilities, metaExtensionsDataset.capabilities) && - Objects.equals(this.limits, metaExtensionsDataset.limits); + return Objects.equals(this.cloudSdkCustomFields, metaExtensionsDataset.cloudSdkCustomFields) + && Objects.equals(this.version, metaExtensionsDataset.version) + && Objects.equals(this.capabilities, metaExtensionsDataset.capabilities) + && Objects.equals(this.limits, metaExtensionsDataset.limits); } @Override @@ -200,20 +198,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensionsDataset {\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -222,24 +222,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsDataset} instance with all required arguments. - */ - public static Builder create() { - return (version) -> new MetaExtensionsDataset().version(version); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the version of this {@link MetaExtensionsDataset} instance. - * - * @param version The version of this {@link MetaExtensionsDataset} - * @return The MetaExtensionsDataset instance. - */ - MetaExtensionsDataset version( @Nonnull final String version); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsDataset} + * instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaExtensionsDataset().version(version); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the version of this {@link MetaExtensionsDataset} instance. + * + * @param version The version of this {@link MetaExtensionsDataset} + * @return The MetaExtensionsDataset instance. + */ + MetaExtensionsDataset version(@Nonnull final String version); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java index 02bac765..8c40ca23 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetCapabilities.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * List of Dataset extension capabilities - */ +/** List of Dataset extension capabilities */ // CHECKSTYLE:OFF -public class MetaExtensionsDatasetCapabilities +public class MetaExtensionsDatasetCapabilities // CHECKSTYLE:ON { @JsonProperty("upload") @@ -51,97 +38,111 @@ public class MetaExtensionsDatasetCapabilities @JsonProperty("delete") private Boolean delete = true; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensionsDatasetCapabilities() { } - - /** - * Set the upload of this {@link MetaExtensionsDatasetCapabilities} instance and return the same instance. - * - * @param upload Support for uploading of files - * @return The same instance of this {@link MetaExtensionsDatasetCapabilities} class - */ - @Nonnull public MetaExtensionsDatasetCapabilities upload(@Nonnull final Boolean upload) { + + protected MetaExtensionsDatasetCapabilities() {} + + /** + * Set the upload of this {@link MetaExtensionsDatasetCapabilities} instance and return the same + * instance. + * + * @param upload Support for uploading of files + * @return The same instance of this {@link MetaExtensionsDatasetCapabilities} class + */ + @Nonnull + public MetaExtensionsDatasetCapabilities upload(@Nonnull final Boolean upload) { this.upload = upload; return this; } - /** - * Support for uploading of files - * @return upload The upload of this {@link MetaExtensionsDatasetCapabilities} instance. - */ - @Nonnull public Boolean isUpload() { + /** + * Support for uploading of files + * + * @return upload The upload of this {@link MetaExtensionsDatasetCapabilities} instance. + */ + @Nonnull + public Boolean isUpload() { return upload; } /** * Set the upload of this {@link MetaExtensionsDatasetCapabilities} instance. * - * @param upload Support for uploading of files + * @param upload Support for uploading of files */ - public void setUpload( @Nonnull final Boolean upload) { + public void setUpload(@Nonnull final Boolean upload) { this.upload = upload; } - /** - * Set the download of this {@link MetaExtensionsDatasetCapabilities} instance and return the same instance. - * - * @param download Support for downloading of files - * @return The same instance of this {@link MetaExtensionsDatasetCapabilities} class - */ - @Nonnull public MetaExtensionsDatasetCapabilities download(@Nonnull final Boolean download) { + /** + * Set the download of this {@link MetaExtensionsDatasetCapabilities} instance and return the same + * instance. + * + * @param download Support for downloading of files + * @return The same instance of this {@link MetaExtensionsDatasetCapabilities} class + */ + @Nonnull + public MetaExtensionsDatasetCapabilities download(@Nonnull final Boolean download) { this.download = download; return this; } - /** - * Support for downloading of files - * @return download The download of this {@link MetaExtensionsDatasetCapabilities} instance. - */ - @Nonnull public Boolean isDownload() { + /** + * Support for downloading of files + * + * @return download The download of this {@link MetaExtensionsDatasetCapabilities} instance. + */ + @Nonnull + public Boolean isDownload() { return download; } /** * Set the download of this {@link MetaExtensionsDatasetCapabilities} instance. * - * @param download Support for downloading of files + * @param download Support for downloading of files */ - public void setDownload( @Nonnull final Boolean download) { + public void setDownload(@Nonnull final Boolean download) { this.download = download; } - /** - * Set the delete of this {@link MetaExtensionsDatasetCapabilities} instance and return the same instance. - * - * @param delete Support for deletion of files - * @return The same instance of this {@link MetaExtensionsDatasetCapabilities} class - */ - @Nonnull public MetaExtensionsDatasetCapabilities delete(@Nonnull final Boolean delete) { + /** + * Set the delete of this {@link MetaExtensionsDatasetCapabilities} instance and return the same + * instance. + * + * @param delete Support for deletion of files + * @return The same instance of this {@link MetaExtensionsDatasetCapabilities} class + */ + @Nonnull + public MetaExtensionsDatasetCapabilities delete(@Nonnull final Boolean delete) { this.delete = delete; return this; } - /** - * Support for deletion of files - * @return delete The delete of this {@link MetaExtensionsDatasetCapabilities} instance. - */ - @Nonnull public Boolean isDelete() { + /** + * Support for deletion of files + * + * @return delete The delete of this {@link MetaExtensionsDatasetCapabilities} instance. + */ + @Nonnull + public Boolean isDelete() { return delete; } /** * Set the delete of this {@link MetaExtensionsDatasetCapabilities} instance. * - * @param delete Support for deletion of files + * @param delete Support for deletion of files */ - public void setDelete( @Nonnull final Boolean delete) { + public void setDelete(@Nonnull final Boolean delete) { this.delete = delete; } /** - * Get the names of the unrecognizable properties of the {@link MetaExtensionsDatasetCapabilities}. + * Get the names of the unrecognizable properties of the {@link + * MetaExtensionsDatasetCapabilities}. + * * @return The set of properties names */ @JsonIgnore @@ -151,32 +152,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link MetaExtensionsDatasetCapabilities} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link MetaExtensionsDatasetCapabilities} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensionsDatasetCapabilities has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaExtensionsDatasetCapabilities has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensionsDatasetCapabilities} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensionsDatasetCapabilities} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -185,11 +189,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final MetaExtensionsDatasetCapabilities metaExtensionsDatasetCapabilities = (MetaExtensionsDatasetCapabilities) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensionsDatasetCapabilities.cloudSdkCustomFields) && - Objects.equals(this.upload, metaExtensionsDatasetCapabilities.upload) && - Objects.equals(this.download, metaExtensionsDatasetCapabilities.download) && - Objects.equals(this.delete, metaExtensionsDatasetCapabilities.delete); + final MetaExtensionsDatasetCapabilities metaExtensionsDatasetCapabilities = + (MetaExtensionsDatasetCapabilities) o; + return Objects.equals( + this.cloudSdkCustomFields, metaExtensionsDatasetCapabilities.cloudSdkCustomFields) + && Objects.equals(this.upload, metaExtensionsDatasetCapabilities.upload) + && Objects.equals(this.download, metaExtensionsDatasetCapabilities.download) + && Objects.equals(this.delete, metaExtensionsDatasetCapabilities.delete); } @Override @@ -198,20 +204,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensionsDatasetCapabilities {\n"); sb.append(" upload: ").append(toIndentedString(upload)).append("\n"); sb.append(" download: ").append(toIndentedString(download)).append("\n"); sb.append(" delete: ").append(toIndentedString(delete)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,12 +228,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaExtensionsDatasetCapabilities} instance. No arguments are required. - */ - public static MetaExtensionsDatasetCapabilities create() { - return new MetaExtensionsDatasetCapabilities(); - } - + /** Create a new {@link MetaExtensionsDatasetCapabilities} instance. No arguments are required. */ + public static MetaExtensionsDatasetCapabilities create() { + return new MetaExtensionsDatasetCapabilities(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java index bbc506bd..ad9afd37 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsDatasetLimits.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaExtensionsDatasetLimits - */ +/** MetaExtensionsDatasetLimits */ // CHECKSTYLE:OFF -public class MetaExtensionsDatasetLimits +public class MetaExtensionsDatasetLimits // CHECKSTYLE:ON { @JsonProperty("maxUploadFileSize") @@ -54,83 +40,103 @@ public class MetaExtensionsDatasetLimits @JsonProperty("acceptedContentTypes") private List acceptedContentTypes = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensionsDatasetLimits() { } - - /** - * Set the maxUploadFileSize of this {@link MetaExtensionsDatasetLimits} instance and return the same instance. - * - * @param maxUploadFileSize Max size (in bytes) of a single uploaded file allowed by this runtime per resource group. - * @return The same instance of this {@link MetaExtensionsDatasetLimits} class - */ - @Nonnull public MetaExtensionsDatasetLimits maxUploadFileSize(@Nonnull final Integer maxUploadFileSize) { + + protected MetaExtensionsDatasetLimits() {} + + /** + * Set the maxUploadFileSize of this {@link MetaExtensionsDatasetLimits} instance and return the + * same instance. + * + * @param maxUploadFileSize Max size (in bytes) of a single uploaded file allowed by this runtime + * per resource group. + * @return The same instance of this {@link MetaExtensionsDatasetLimits} class + */ + @Nonnull + public MetaExtensionsDatasetLimits maxUploadFileSize(@Nonnull final Integer maxUploadFileSize) { this.maxUploadFileSize = maxUploadFileSize; return this; } - /** - * Max size (in bytes) of a single uploaded file allowed by this runtime per resource group. - * @return maxUploadFileSize The maxUploadFileSize of this {@link MetaExtensionsDatasetLimits} instance. - */ - @Nonnull public Integer getMaxUploadFileSize() { + /** + * Max size (in bytes) of a single uploaded file allowed by this runtime per resource group. + * + * @return maxUploadFileSize The maxUploadFileSize of this {@link MetaExtensionsDatasetLimits} + * instance. + */ + @Nonnull + public Integer getMaxUploadFileSize() { return maxUploadFileSize; } /** * Set the maxUploadFileSize of this {@link MetaExtensionsDatasetLimits} instance. * - * @param maxUploadFileSize Max size (in bytes) of a single uploaded file allowed by this runtime per resource group. + * @param maxUploadFileSize Max size (in bytes) of a single uploaded file allowed by this runtime + * per resource group. */ - public void setMaxUploadFileSize( @Nonnull final Integer maxUploadFileSize) { + public void setMaxUploadFileSize(@Nonnull final Integer maxUploadFileSize) { this.maxUploadFileSize = maxUploadFileSize; } - /** - * Set the maxFilesPerDataset of this {@link MetaExtensionsDatasetLimits} instance and return the same instance. - * - * @param maxFilesPerDataset Max number of files per dataset. <0 means unlimited. - * @return The same instance of this {@link MetaExtensionsDatasetLimits} class - */ - @Nonnull public MetaExtensionsDatasetLimits maxFilesPerDataset(@Nonnull final Integer maxFilesPerDataset) { + /** + * Set the maxFilesPerDataset of this {@link MetaExtensionsDatasetLimits} instance and return the + * same instance. + * + * @param maxFilesPerDataset Max number of files per dataset. <0 means unlimited. + * @return The same instance of this {@link MetaExtensionsDatasetLimits} class + */ + @Nonnull + public MetaExtensionsDatasetLimits maxFilesPerDataset(@Nonnull final Integer maxFilesPerDataset) { this.maxFilesPerDataset = maxFilesPerDataset; return this; } - /** - * Max number of files per dataset. <0 means unlimited. - * @return maxFilesPerDataset The maxFilesPerDataset of this {@link MetaExtensionsDatasetLimits} instance. - */ - @Nonnull public Integer getMaxFilesPerDataset() { + /** + * Max number of files per dataset. <0 means unlimited. + * + * @return maxFilesPerDataset The maxFilesPerDataset of this {@link MetaExtensionsDatasetLimits} + * instance. + */ + @Nonnull + public Integer getMaxFilesPerDataset() { return maxFilesPerDataset; } /** * Set the maxFilesPerDataset of this {@link MetaExtensionsDatasetLimits} instance. * - * @param maxFilesPerDataset Max number of files per dataset. <0 means unlimited. + * @param maxFilesPerDataset Max number of files per dataset. <0 means unlimited. */ - public void setMaxFilesPerDataset( @Nonnull final Integer maxFilesPerDataset) { + public void setMaxFilesPerDataset(@Nonnull final Integer maxFilesPerDataset) { this.maxFilesPerDataset = maxFilesPerDataset; } - /** - * Set the acceptedContentTypes of this {@link MetaExtensionsDatasetLimits} instance and return the same instance. - * - * @param acceptedContentTypes The acceptedContentTypes of this {@link MetaExtensionsDatasetLimits} - * @return The same instance of this {@link MetaExtensionsDatasetLimits} class - */ - @Nonnull public MetaExtensionsDatasetLimits acceptedContentTypes(@Nonnull final List acceptedContentTypes) { + /** + * Set the acceptedContentTypes of this {@link MetaExtensionsDatasetLimits} instance and return + * the same instance. + * + * @param acceptedContentTypes The acceptedContentTypes of this {@link + * MetaExtensionsDatasetLimits} + * @return The same instance of this {@link MetaExtensionsDatasetLimits} class + */ + @Nonnull + public MetaExtensionsDatasetLimits acceptedContentTypes( + @Nonnull final List acceptedContentTypes) { this.acceptedContentTypes = acceptedContentTypes; return this; } + /** * Add one acceptedContentTypes instance to this {@link MetaExtensionsDatasetLimits}. + * * @param acceptedContentTypesItem The acceptedContentTypes that should be added * @return The same instance of type {@link MetaExtensionsDatasetLimits} */ - @Nonnull public MetaExtensionsDatasetLimits addAcceptedContentTypesItem( @Nonnull final String acceptedContentTypesItem) { + @Nonnull + public MetaExtensionsDatasetLimits addAcceptedContentTypesItem( + @Nonnull final String acceptedContentTypesItem) { if (this.acceptedContentTypes == null) { this.acceptedContentTypes = new ArrayList<>(); } @@ -138,25 +144,30 @@ public void setMaxFilesPerDataset( @Nonnull final Integer maxFilesPerDataset) { return this; } - /** - * Get acceptedContentTypes - * @return acceptedContentTypes The acceptedContentTypes of this {@link MetaExtensionsDatasetLimits} instance. - */ - @Nonnull public List getAcceptedContentTypes() { + /** + * Get acceptedContentTypes + * + * @return acceptedContentTypes The acceptedContentTypes of this {@link + * MetaExtensionsDatasetLimits} instance. + */ + @Nonnull + public List getAcceptedContentTypes() { return acceptedContentTypes; } /** * Set the acceptedContentTypes of this {@link MetaExtensionsDatasetLimits} instance. * - * @param acceptedContentTypes The acceptedContentTypes of this {@link MetaExtensionsDatasetLimits} + * @param acceptedContentTypes The acceptedContentTypes of this {@link + * MetaExtensionsDatasetLimits} */ - public void setAcceptedContentTypes( @Nonnull final List acceptedContentTypes) { + public void setAcceptedContentTypes(@Nonnull final List acceptedContentTypes) { this.acceptedContentTypes = acceptedContentTypes; } /** * Get the names of the unrecognizable properties of the {@link MetaExtensionsDatasetLimits}. + * * @return The set of properties names */ @JsonIgnore @@ -166,32 +177,34 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link MetaExtensionsDatasetLimits} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link MetaExtensionsDatasetLimits} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensionsDatasetLimits has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaExtensionsDatasetLimits has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensionsDatasetLimits} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensionsDatasetLimits} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -201,32 +214,39 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaExtensionsDatasetLimits metaExtensionsDatasetLimits = (MetaExtensionsDatasetLimits) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensionsDatasetLimits.cloudSdkCustomFields) && - Objects.equals(this.maxUploadFileSize, metaExtensionsDatasetLimits.maxUploadFileSize) && - Objects.equals(this.maxFilesPerDataset, metaExtensionsDatasetLimits.maxFilesPerDataset) && - Objects.equals(this.acceptedContentTypes, metaExtensionsDatasetLimits.acceptedContentTypes); + return Objects.equals( + this.cloudSdkCustomFields, metaExtensionsDatasetLimits.cloudSdkCustomFields) + && Objects.equals(this.maxUploadFileSize, metaExtensionsDatasetLimits.maxUploadFileSize) + && Objects.equals(this.maxFilesPerDataset, metaExtensionsDatasetLimits.maxFilesPerDataset) + && Objects.equals( + this.acceptedContentTypes, metaExtensionsDatasetLimits.acceptedContentTypes); } @Override public int hashCode() { - return Objects.hash(maxUploadFileSize, maxFilesPerDataset, acceptedContentTypes, cloudSdkCustomFields); + return Objects.hash( + maxUploadFileSize, maxFilesPerDataset, acceptedContentTypes, cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensionsDatasetLimits {\n"); sb.append(" maxUploadFileSize: ").append(toIndentedString(maxUploadFileSize)).append("\n"); sb.append(" maxFilesPerDataset: ").append(toIndentedString(maxFilesPerDataset)).append("\n"); - sb.append(" acceptedContentTypes: ").append(toIndentedString(acceptedContentTypes)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" acceptedContentTypes: ") + .append(toIndentedString(acceptedContentTypes)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -235,12 +255,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaExtensionsDatasetLimits} instance. No arguments are required. - */ - public static MetaExtensionsDatasetLimits create() { - return new MetaExtensionsDatasetLimits(); - } - + /** Create a new {@link MetaExtensionsDatasetLimits} instance. No arguments are required. */ + public static MetaExtensionsDatasetLimits create() { + return new MetaExtensionsDatasetLimits(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java index aebe458f..6b1ac01a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetrics.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaExtensionsMetricsCapabilities; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaExtensionsMetrics - */ +/** MetaExtensionsMetrics */ // CHECKSTYLE:OFF -public class MetaExtensionsMetrics +public class MetaExtensionsMetrics // CHECKSTYLE:ON { @JsonProperty("version") @@ -49,69 +35,78 @@ public class MetaExtensionsMetrics @JsonProperty("capabilities") private MetaExtensionsMetricsCapabilities capabilities; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensionsMetrics() { } - - /** - * Set the version of this {@link MetaExtensionsMetrics} instance and return the same instance. - * - * @param version The version of this {@link MetaExtensionsMetrics} - * @return The same instance of this {@link MetaExtensionsMetrics} class - */ - @Nonnull public MetaExtensionsMetrics version(@Nonnull final String version) { + + protected MetaExtensionsMetrics() {} + + /** + * Set the version of this {@link MetaExtensionsMetrics} instance and return the same instance. + * + * @param version The version of this {@link MetaExtensionsMetrics} + * @return The same instance of this {@link MetaExtensionsMetrics} class + */ + @Nonnull + public MetaExtensionsMetrics version(@Nonnull final String version) { this.version = version; return this; } - /** - * Get version - * @return version The version of this {@link MetaExtensionsMetrics} instance. - */ - @Nonnull public String getVersion() { + /** + * Get version + * + * @return version The version of this {@link MetaExtensionsMetrics} instance. + */ + @Nonnull + public String getVersion() { return version; } /** * Set the version of this {@link MetaExtensionsMetrics} instance. * - * @param version The version of this {@link MetaExtensionsMetrics} + * @param version The version of this {@link MetaExtensionsMetrics} */ - public void setVersion( @Nonnull final String version) { + public void setVersion(@Nonnull final String version) { this.version = version; } - /** - * Set the capabilities of this {@link MetaExtensionsMetrics} instance and return the same instance. - * - * @param capabilities The capabilities of this {@link MetaExtensionsMetrics} - * @return The same instance of this {@link MetaExtensionsMetrics} class - */ - @Nonnull public MetaExtensionsMetrics capabilities(@Nonnull final MetaExtensionsMetricsCapabilities capabilities) { + /** + * Set the capabilities of this {@link MetaExtensionsMetrics} instance and return the same + * instance. + * + * @param capabilities The capabilities of this {@link MetaExtensionsMetrics} + * @return The same instance of this {@link MetaExtensionsMetrics} class + */ + @Nonnull + public MetaExtensionsMetrics capabilities( + @Nonnull final MetaExtensionsMetricsCapabilities capabilities) { this.capabilities = capabilities; return this; } - /** - * Get capabilities - * @return capabilities The capabilities of this {@link MetaExtensionsMetrics} instance. - */ - @Nonnull public MetaExtensionsMetricsCapabilities getCapabilities() { + /** + * Get capabilities + * + * @return capabilities The capabilities of this {@link MetaExtensionsMetrics} instance. + */ + @Nonnull + public MetaExtensionsMetricsCapabilities getCapabilities() { return capabilities; } /** * Set the capabilities of this {@link MetaExtensionsMetrics} instance. * - * @param capabilities The capabilities of this {@link MetaExtensionsMetrics} + * @param capabilities The capabilities of this {@link MetaExtensionsMetrics} */ - public void setCapabilities( @Nonnull final MetaExtensionsMetricsCapabilities capabilities) { + public void setCapabilities(@Nonnull final MetaExtensionsMetricsCapabilities capabilities) { this.capabilities = capabilities; } /** * Get the names of the unrecognizable properties of the {@link MetaExtensionsMetrics}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +117,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaExtensionsMetrics} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensionsMetrics has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaExtensionsMetrics has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensionsMetrics} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensionsMetrics} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +152,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaExtensionsMetrics metaExtensionsMetrics = (MetaExtensionsMetrics) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensionsMetrics.cloudSdkCustomFields) && - Objects.equals(this.version, metaExtensionsMetrics.version) && - Objects.equals(this.capabilities, metaExtensionsMetrics.capabilities); + return Objects.equals(this.cloudSdkCustomFields, metaExtensionsMetrics.cloudSdkCustomFields) + && Objects.equals(this.version, metaExtensionsMetrics.version) + && Objects.equals(this.capabilities, metaExtensionsMetrics.capabilities); } @Override @@ -167,19 +163,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensionsMetrics {\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,24 +186,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsMetrics} instance with all required arguments. - */ - public static Builder create() { - return (version) -> new MetaExtensionsMetrics().version(version); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the version of this {@link MetaExtensionsMetrics} instance. - * - * @param version The version of this {@link MetaExtensionsMetrics} - * @return The MetaExtensionsMetrics instance. - */ - MetaExtensionsMetrics version( @Nonnull final String version); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MetaExtensionsMetrics} + * instance with all required arguments. + */ + public static Builder create() { + return (version) -> new MetaExtensionsMetrics().version(version); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the version of this {@link MetaExtensionsMetrics} instance. + * + * @param version The version of this {@link MetaExtensionsMetrics} + * @return The MetaExtensionsMetrics instance. + */ + MetaExtensionsMetrics version(@Nonnull final String version); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java index d6c1909f..db87ca46 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaExtensionsMetricsCapabilities.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,68 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * List of Metrics extension capabilities - */ +/** List of Metrics extension capabilities */ // CHECKSTYLE:OFF -public class MetaExtensionsMetricsCapabilities +public class MetaExtensionsMetricsCapabilities // CHECKSTYLE:ON { @JsonProperty("extendedResults") private Boolean extendedResults = false; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaExtensionsMetricsCapabilities() { } - - /** - * Set the extendedResults of this {@link MetaExtensionsMetricsCapabilities} instance and return the same instance. - * - * @param extendedResults Support for returning extended results - * @return The same instance of this {@link MetaExtensionsMetricsCapabilities} class - */ - @Nonnull public MetaExtensionsMetricsCapabilities extendedResults(@Nonnull final Boolean extendedResults) { + + protected MetaExtensionsMetricsCapabilities() {} + + /** + * Set the extendedResults of this {@link MetaExtensionsMetricsCapabilities} instance and return + * the same instance. + * + * @param extendedResults Support for returning extended results + * @return The same instance of this {@link MetaExtensionsMetricsCapabilities} class + */ + @Nonnull + public MetaExtensionsMetricsCapabilities extendedResults(@Nonnull final Boolean extendedResults) { this.extendedResults = extendedResults; return this; } - /** - * Support for returning extended results - * @return extendedResults The extendedResults of this {@link MetaExtensionsMetricsCapabilities} instance. - */ - @Nonnull public Boolean isExtendedResults() { + /** + * Support for returning extended results + * + * @return extendedResults The extendedResults of this {@link MetaExtensionsMetricsCapabilities} + * instance. + */ + @Nonnull + public Boolean isExtendedResults() { return extendedResults; } /** * Set the extendedResults of this {@link MetaExtensionsMetricsCapabilities} instance. * - * @param extendedResults Support for returning extended results + * @param extendedResults Support for returning extended results */ - public void setExtendedResults( @Nonnull final Boolean extendedResults) { + public void setExtendedResults(@Nonnull final Boolean extendedResults) { this.extendedResults = extendedResults; } /** - * Get the names of the unrecognizable properties of the {@link MetaExtensionsMetricsCapabilities}. + * Get the names of the unrecognizable properties of the {@link + * MetaExtensionsMetricsCapabilities}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +83,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link MetaExtensionsMetricsCapabilities} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link MetaExtensionsMetricsCapabilities} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaExtensionsMetricsCapabilities has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetaExtensionsMetricsCapabilities has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaExtensionsMetricsCapabilities} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaExtensionsMetricsCapabilities} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +120,11 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final MetaExtensionsMetricsCapabilities metaExtensionsMetricsCapabilities = (MetaExtensionsMetricsCapabilities) o; - return Objects.equals(this.cloudSdkCustomFields, metaExtensionsMetricsCapabilities.cloudSdkCustomFields) && - Objects.equals(this.extendedResults, metaExtensionsMetricsCapabilities.extendedResults); + final MetaExtensionsMetricsCapabilities metaExtensionsMetricsCapabilities = + (MetaExtensionsMetricsCapabilities) o; + return Objects.equals( + this.cloudSdkCustomFields, metaExtensionsMetricsCapabilities.cloudSdkCustomFields) + && Objects.equals(this.extendedResults, metaExtensionsMetricsCapabilities.extendedResults); } @Override @@ -134,18 +133,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaExtensionsMetricsCapabilities {\n"); sb.append(" extendedResults: ").append(toIndentedString(extendedResults)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +155,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaExtensionsMetricsCapabilities} instance. No arguments are required. - */ - public static MetaExtensionsMetricsCapabilities create() { - return new MetaExtensionsMetricsCapabilities(); - } - + /** Create a new {@link MetaExtensionsMetricsCapabilities} instance. No arguments are required. */ + public static MetaExtensionsMetricsCapabilities create() { + return new MetaExtensionsMetricsCapabilities(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java index 3bb7730c..2ae9512f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetaGet404Response.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.MetaApiError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetaGet404Response - */ +/** MetaGet404Response */ // CHECKSTYLE:OFF -public class MetaGet404Response +public class MetaGet404Response // CHECKSTYLE:ON { @JsonProperty("error") private MetaApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetaGet404Response() { } - - /** - * Set the error of this {@link MetaGet404Response} instance and return the same instance. - * - * @param error The error of this {@link MetaGet404Response} - * @return The same instance of this {@link MetaGet404Response} class - */ - @Nonnull public MetaGet404Response error(@Nonnull final MetaApiError error) { + + protected MetaGet404Response() {} + + /** + * Set the error of this {@link MetaGet404Response} instance and return the same instance. + * + * @param error The error of this {@link MetaGet404Response} + * @return The same instance of this {@link MetaGet404Response} class + */ + @Nonnull + public MetaGet404Response error(@Nonnull final MetaApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link MetaGet404Response} instance. - */ - @Nonnull public MetaApiError getError() { + /** + * Get error + * + * @return error The error of this {@link MetaGet404Response} instance. + */ + @Nonnull + public MetaApiError getError() { return error; } /** * Set the error of this {@link MetaGet404Response} instance. * - * @param error The error of this {@link MetaGet404Response} + * @param error The error of this {@link MetaGet404Response} */ - public void setError( @Nonnull final MetaApiError error) { + public void setError(@Nonnull final MetaApiError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link MetaGet404Response}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetaGet404Response} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetaGet404Response has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("MetaGet404Response has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetaGet404Response} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetaGet404Response} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +115,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetaGet404Response metaGet404Response = (MetaGet404Response) o; - return Objects.equals(this.cloudSdkCustomFields, metaGet404Response.cloudSdkCustomFields) && - Objects.equals(this.error, metaGet404Response.error); + return Objects.equals(this.cloudSdkCustomFields, metaGet404Response.cloudSdkCustomFields) + && Objects.equals(this.error, metaGet404Response.error); } @Override @@ -135,18 +125,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetaGet404Response {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +147,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetaGet404Response} instance. No arguments are required. - */ - public static MetaGet404Response create() { - return new MetaGet404Response(); - } - + /** Create a new {@link MetaGet404Response} instance. No arguments are required. */ + public static MetaGet404Response create() { + return new MetaGet404Response(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java index 92bafd23..883a8192 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/MetricsFind400Response.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckApiError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MetricsFind400Response - */ +/** MetricsFind400Response */ // CHECKSTYLE:OFF -public class MetricsFind400Response +public class MetricsFind400Response // CHECKSTYLE:ON { @JsonProperty("error") private TrckApiError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MetricsFind400Response() { } - - /** - * Set the error of this {@link MetricsFind400Response} instance and return the same instance. - * - * @param error The error of this {@link MetricsFind400Response} - * @return The same instance of this {@link MetricsFind400Response} class - */ - @Nonnull public MetricsFind400Response error(@Nonnull final TrckApiError error) { + + protected MetricsFind400Response() {} + + /** + * Set the error of this {@link MetricsFind400Response} instance and return the same instance. + * + * @param error The error of this {@link MetricsFind400Response} + * @return The same instance of this {@link MetricsFind400Response} class + */ + @Nonnull + public MetricsFind400Response error(@Nonnull final TrckApiError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link MetricsFind400Response} instance. - */ - @Nonnull public TrckApiError getError() { + /** + * Get error + * + * @return error The error of this {@link MetricsFind400Response} instance. + */ + @Nonnull + public TrckApiError getError() { return error; } /** * Set the error of this {@link MetricsFind400Response} instance. * - * @param error The error of this {@link MetricsFind400Response} + * @param error The error of this {@link MetricsFind400Response} */ - public void setError( @Nonnull final TrckApiError error) { + public void setError(@Nonnull final TrckApiError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link MetricsFind400Response}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MetricsFind400Response} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MetricsFind400Response has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MetricsFind400Response has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MetricsFind400Response} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MetricsFind400Response} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +116,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MetricsFind400Response metricsFind400Response = (MetricsFind400Response) o; - return Objects.equals(this.cloudSdkCustomFields, metricsFind400Response.cloudSdkCustomFields) && - Objects.equals(this.error, metricsFind400Response.error); + return Objects.equals(this.cloudSdkCustomFields, metricsFind400Response.cloudSdkCustomFields) + && Objects.equals(this.error, metricsFind400Response.error); } @Override @@ -135,18 +126,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MetricsFind400Response {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +148,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MetricsFind400Response} instance. No arguments are required. - */ - public static MetricsFind400Response create() { - return new MetricsFind400Response(); - } - + /** Create a new {@link MetricsFind400Response} instance. No arguments are required. */ + public static MetricsFind400Response create() { + return new MetricsFind400Response(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java index 1696cf37..8f5ed7c1 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifact.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,26 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTALabel; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Entity having labels - */ +/** Entity having labels */ // CHECKSTYLE:OFF -public class RTAArtifact +public class RTAArtifact // CHECKSTYLE:ON { @JsonProperty("name") @@ -59,28 +46,18 @@ public class RTAArtifact @JsonProperty("signature") private String signature; - /** - * Kind of the artifact, i.e. model or dataset - */ + /** Kind of the artifact, i.e. model or dataset */ public enum KindEnum { - /** - * The MODEL option of this RTAArtifact - */ + /** The MODEL option of this RTAArtifact */ MODEL("model"), - - /** - * The DATASET option of this RTAArtifact - */ + + /** The DATASET option of this RTAArtifact */ DATASET("dataset"), - - /** - * The RESULTSET option of this RTAArtifact - */ + + /** The RESULTSET option of this RTAArtifact */ RESULTSET("resultset"), - - /** - * The OTHER option of this RTAArtifact - */ + + /** The OTHER option of this RTAArtifact */ OTHER("other"); private String value; @@ -90,30 +67,36 @@ public enum KindEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type RTAArtifact - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type RTAArtifact + */ @JsonCreator - @Nonnull public static KindEnum fromValue(@Nonnull final String value) { + @Nonnull + public static KindEnum fromValue(@Nonnull final String value) { for (KindEnum b : KindEnum.values()) { if (b.value.equals(value)) { return b; @@ -132,167 +115,191 @@ public enum KindEnum { @JsonProperty("createdAt") private OffsetDateTime createdAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAArtifact() { } - - /** - * Set the name of this {@link RTAArtifact} instance and return the same instance. - * - * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact name(@Nonnull final String name) { + + protected RTAArtifact() {} + + /** + * Set the name of this {@link RTAArtifact} instance and return the same instance. + * + * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the artifact; this is used for dependent pipelines to resolve an artifact - * @return name The name of this {@link RTAArtifact} instance. - */ - @Nonnull public String getName() { + /** + * Name of the artifact; this is used for dependent pipelines to resolve an artifact + * + * @return name The name of this {@link RTAArtifact} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAArtifact} instance. * - * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact + * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the executionId of this {@link RTAArtifact} instance and return the same instance. - * - * @param executionId ID of the execution - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact executionId(@Nonnull final String executionId) { + /** + * Set the executionId of this {@link RTAArtifact} instance and return the same instance. + * + * @param executionId ID of the execution + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact executionId(@Nonnull final String executionId) { this.executionId = executionId; return this; } - /** - * ID of the execution - * @return executionId The executionId of this {@link RTAArtifact} instance. - */ - @Nonnull public String getExecutionId() { + /** + * ID of the execution + * + * @return executionId The executionId of this {@link RTAArtifact} instance. + */ + @Nonnull + public String getExecutionId() { return executionId; } /** * Set the executionId of this {@link RTAArtifact} instance. * - * @param executionId ID of the execution + * @param executionId ID of the execution */ - public void setExecutionId( @Nonnull final String executionId) { + public void setExecutionId(@Nonnull final String executionId) { this.executionId = executionId; } - /** - * Set the url of this {@link RTAArtifact} instance and return the same instance. - * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact url(@Nonnull final String url) { + /** + * Set the url of this {@link RTAArtifact} instance and return the same instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in a + * secret called 'some_bucket-object_store_secret'. If not provided, a default will be + * assumed. + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact url(@Nonnull final String url) { this.url = url; return this; } - /** - * Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return url The url of this {@link RTAArtifact} instance. - */ - @Nonnull public String getUrl() { + /** + * Reference to the location of the artifact. Note, the credentials will be found in a secret + * called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * + * @return url The url of this {@link RTAArtifact} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link RTAArtifact} instance. * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * @param url Reference to the location of the artifact. Note, the credentials will be found in a + * secret called 'some_bucket-object_store_secret'. If not provided, a default will be + * assumed. */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the signature of this {@link RTAArtifact} instance and return the same instance. - * - * @param signature The signature of this {@link RTAArtifact} - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact signature(@Nonnull final String signature) { + /** + * Set the signature of this {@link RTAArtifact} instance and return the same instance. + * + * @param signature The signature of this {@link RTAArtifact} + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact signature(@Nonnull final String signature) { this.signature = signature; return this; } - /** - * Get signature - * @return signature The signature of this {@link RTAArtifact} instance. - */ - @Nonnull public String getSignature() { + /** + * Get signature + * + * @return signature The signature of this {@link RTAArtifact} instance. + */ + @Nonnull + public String getSignature() { return signature; } /** * Set the signature of this {@link RTAArtifact} instance. * - * @param signature The signature of this {@link RTAArtifact} + * @param signature The signature of this {@link RTAArtifact} */ - public void setSignature( @Nonnull final String signature) { + public void setSignature(@Nonnull final String signature) { this.signature = signature; } - /** - * Set the kind of this {@link RTAArtifact} instance and return the same instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact kind(@Nonnull final KindEnum kind) { + /** + * Set the kind of this {@link RTAArtifact} instance and return the same instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact kind(@Nonnull final KindEnum kind) { this.kind = kind; return this; } - /** - * Kind of the artifact, i.e. model or dataset - * @return kind The kind of this {@link RTAArtifact} instance. - */ - @Nonnull public KindEnum getKind() { + /** + * Kind of the artifact, i.e. model or dataset + * + * @return kind The kind of this {@link RTAArtifact} instance. + */ + @Nonnull + public KindEnum getKind() { return kind; } /** * Set the kind of this {@link RTAArtifact} instance. * - * @param kind Kind of the artifact, i.e. model or dataset + * @param kind Kind of the artifact, i.e. model or dataset */ - public void setKind( @Nonnull final KindEnum kind) { + public void setKind(@Nonnull final KindEnum kind) { this.kind = kind; } - /** - * Set the labels of this {@link RTAArtifact} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link RTAArtifact} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link RTAArtifact}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link RTAArtifact} */ - @Nonnull public RTAArtifact addLabelsItem( @Nonnull final RTALabel labelsItem) { + @Nonnull + public RTAArtifact addLabelsItem(@Nonnull final RTALabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -300,53 +307,59 @@ public void setKind( @Nonnull final KindEnum kind) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link RTAArtifact} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link RTAArtifact} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link RTAArtifact} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the createdAt of this {@link RTAArtifact} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link RTAArtifact} class - */ - @Nonnull public RTAArtifact createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link RTAArtifact} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link RTAArtifact} class + */ + @Nonnull + public RTAArtifact createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link RTAArtifact} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link RTAArtifact} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link RTAArtifact} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } /** * Get the names of the unrecognizable properties of the {@link RTAArtifact}. + * * @return The set of properties names */ @JsonIgnore @@ -357,31 +370,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAArtifact} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAArtifact has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAArtifact has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAArtifact} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAArtifact} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -391,23 +404,25 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAArtifact rtAArtifact = (RTAArtifact) o; - return Objects.equals(this.cloudSdkCustomFields, rtAArtifact.cloudSdkCustomFields) && - Objects.equals(this.name, rtAArtifact.name) && - Objects.equals(this.executionId, rtAArtifact.executionId) && - Objects.equals(this.url, rtAArtifact.url) && - Objects.equals(this.signature, rtAArtifact.signature) && - Objects.equals(this.kind, rtAArtifact.kind) && - Objects.equals(this.labels, rtAArtifact.labels) && - Objects.equals(this.createdAt, rtAArtifact.createdAt); + return Objects.equals(this.cloudSdkCustomFields, rtAArtifact.cloudSdkCustomFields) + && Objects.equals(this.name, rtAArtifact.name) + && Objects.equals(this.executionId, rtAArtifact.executionId) + && Objects.equals(this.url, rtAArtifact.url) + && Objects.equals(this.signature, rtAArtifact.signature) + && Objects.equals(this.kind, rtAArtifact.kind) + && Objects.equals(this.labels, rtAArtifact.labels) + && Objects.equals(this.createdAt, rtAArtifact.createdAt); } @Override public int hashCode() { - return Objects.hash(name, executionId, url, signature, kind, labels, createdAt, cloudSdkCustomFields); + return Objects.hash( + name, executionId, url, signature, kind, labels, createdAt, cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAArtifact {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -417,14 +432,15 @@ public int hashCode() { sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -433,72 +449,78 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAArtifact} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> + (executionId) -> + (url) -> + (kind) -> + (createdAt) -> + new RTAArtifact() + .name(name) + .executionId(executionId) + .url(url) + .kind(kind) + .createdAt(createdAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAArtifact} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (executionId) -> (url) -> (kind) -> (createdAt) -> new RTAArtifact().name(name).executionId(executionId).url(url).kind(kind).createdAt(createdAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link RTAArtifact} instance. - * - * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact - * @return The RTAArtifact builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executionId of this {@link RTAArtifact} instance. - * - * @param executionId ID of the execution - * @return The RTAArtifact builder. - */ - Builder2 executionId( @Nonnull final String executionId); - } + * Set the name of this {@link RTAArtifact} instance. + * + * @param name Name of the artifact; this is used for dependent pipelines to resolve an artifact + * @return The RTAArtifact builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the url of this {@link RTAArtifact} instance. - * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return The RTAArtifact builder. - */ - Builder3 url( @Nonnull final String url); - } + * Set the executionId of this {@link RTAArtifact} instance. + * + * @param executionId ID of the execution + * @return The RTAArtifact builder. + */ + Builder2 executionId(@Nonnull final String executionId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the kind of this {@link RTAArtifact} instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The RTAArtifact builder. - */ - Builder4 kind( @Nonnull final KindEnum kind); - } + * Set the url of this {@link RTAArtifact} instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in + * a secret called 'some_bucket-object_store_secret'. If not provided, a default + * will be assumed. + * @return The RTAArtifact builder. + */ + Builder3 url(@Nonnull final String url); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the createdAt of this {@link RTAArtifact} instance. - * - * @param createdAt Timestamp of resource creation - * @return The RTAArtifact instance. - */ - RTAArtifact createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the kind of this {@link RTAArtifact} instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The RTAArtifact builder. + */ + Builder4 kind(@Nonnull final KindEnum kind); + } + /** Builder helper class. */ + public interface Builder4 { + /** + * Set the createdAt of this {@link RTAArtifact} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAArtifact instance. + */ + RTAArtifact createdAt(@Nonnull final OffsetDateTime createdAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java index 41bf4d41..76fb9b4a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAArtifactLabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTAArtifactLabel - */ +/** RTAArtifactLabel */ // CHECKSTYLE:OFF -public class RTAArtifactLabel +public class RTAArtifactLabel // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,76 @@ public class RTAArtifactLabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAArtifactLabel() { } - - /** - * Set the key of this {@link RTAArtifactLabel} instance and return the same instance. - * - * @param key The key of this {@link RTAArtifactLabel} - * @return The same instance of this {@link RTAArtifactLabel} class - */ - @Nonnull public RTAArtifactLabel key(@Nonnull final String key) { + + protected RTAArtifactLabel() {} + + /** + * Set the key of this {@link RTAArtifactLabel} instance and return the same instance. + * + * @param key The key of this {@link RTAArtifactLabel} + * @return The same instance of this {@link RTAArtifactLabel} class + */ + @Nonnull + public RTAArtifactLabel key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link RTAArtifactLabel} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link RTAArtifactLabel} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link RTAArtifactLabel} instance. * - * @param key The key of this {@link RTAArtifactLabel} + * @param key The key of this {@link RTAArtifactLabel} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link RTAArtifactLabel} instance and return the same instance. - * - * @param value The value of this {@link RTAArtifactLabel} - * @return The same instance of this {@link RTAArtifactLabel} class - */ - @Nonnull public RTAArtifactLabel value(@Nonnull final String value) { + /** + * Set the value of this {@link RTAArtifactLabel} instance and return the same instance. + * + * @param value The value of this {@link RTAArtifactLabel} + * @return The same instance of this {@link RTAArtifactLabel} class + */ + @Nonnull + public RTAArtifactLabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link RTAArtifactLabel} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link RTAArtifactLabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link RTAArtifactLabel} instance. * - * @param value The value of this {@link RTAArtifactLabel} + * @param value The value of this {@link RTAArtifactLabel} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link RTAArtifactLabel}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAArtifactLabel} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAArtifactLabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAArtifactLabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAArtifactLabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAArtifactLabel} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAArtifactLabel rtAArtifactLabel = (RTAArtifactLabel) o; - return Objects.equals(this.cloudSdkCustomFields, rtAArtifactLabel.cloudSdkCustomFields) && - Objects.equals(this.key, rtAArtifactLabel.key) && - Objects.equals(this.value, rtAArtifactLabel.value); + return Objects.equals(this.cloudSdkCustomFields, rtAArtifactLabel.cloudSdkCustomFields) + && Objects.equals(this.key, rtAArtifactLabel.key) + && Objects.equals(this.value, rtAArtifactLabel.value); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAArtifactLabel {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAArtifactLabel} + * instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new RTAArtifactLabel().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAArtifactLabel} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new RTAArtifactLabel().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link RTAArtifactLabel} instance. - * - * @param key The key of this {@link RTAArtifactLabel} - * @return The RTAArtifactLabel builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link RTAArtifactLabel} instance. - * - * @param value The value of this {@link RTAArtifactLabel} - * @return The RTAArtifactLabel instance. - */ - RTAArtifactLabel value( @Nonnull final String value); - } + * Set the key of this {@link RTAArtifactLabel} instance. + * + * @param key The key of this {@link RTAArtifactLabel} + * @return The RTAArtifactLabel builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link RTAArtifactLabel} instance. + * + * @param value The value of this {@link RTAArtifactLabel} + * @return The RTAArtifactLabel instance. + */ + RTAArtifactLabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java index 977667f7..230b352e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTABackendDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTABackendDetails - */ +/** RTABackendDetails */ // CHECKSTYLE:OFF -public class RTABackendDetails +public class RTABackendDetails // CHECKSTYLE:ON { @JsonProperty("backendDetails") private Object backendDetails; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTABackendDetails() { } - - /** - * Set the backendDetails of this {@link RTABackendDetails} instance and return the same instance. - * - * @param backendDetails Current details of the deployment - * @return The same instance of this {@link RTABackendDetails} class - */ - @Nonnull public RTABackendDetails backendDetails(@Nonnull final Object backendDetails) { + + protected RTABackendDetails() {} + + /** + * Set the backendDetails of this {@link RTABackendDetails} instance and return the same instance. + * + * @param backendDetails Current details of the deployment + * @return The same instance of this {@link RTABackendDetails} class + */ + @Nonnull + public RTABackendDetails backendDetails(@Nonnull final Object backendDetails) { this.backendDetails = backendDetails; return this; } - /** - * Current details of the deployment - * @return backendDetails The backendDetails of this {@link RTABackendDetails} instance. - */ - @Nonnull public Object getBackendDetails() { + /** + * Current details of the deployment + * + * @return backendDetails The backendDetails of this {@link RTABackendDetails} instance. + */ + @Nonnull + public Object getBackendDetails() { return backendDetails; } /** * Set the backendDetails of this {@link RTABackendDetails} instance. * - * @param backendDetails Current details of the deployment + * @param backendDetails Current details of the deployment */ - public void setBackendDetails( @Nonnull final Object backendDetails) { + public void setBackendDetails(@Nonnull final Object backendDetails) { this.backendDetails = backendDetails; } /** * Get the names of the unrecognizable properties of the {@link RTABackendDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -90,31 +81,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTABackendDetails} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTABackendDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTABackendDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTABackendDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTABackendDetails} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -124,8 +115,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTABackendDetails rtABackendDetails = (RTABackendDetails) o; - return Objects.equals(this.cloudSdkCustomFields, rtABackendDetails.cloudSdkCustomFields) && - Objects.equals(this.backendDetails, rtABackendDetails.backendDetails); + return Objects.equals(this.cloudSdkCustomFields, rtABackendDetails.cloudSdkCustomFields) + && Objects.equals(this.backendDetails, rtABackendDetails.backendDetails); } @Override @@ -134,18 +125,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTABackendDetails {\n"); sb.append(" backendDetails: ").append(toIndentedString(backendDetails)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +147,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link RTABackendDetails} instance. No arguments are required. - */ - public static RTABackendDetails create() { - return new RTABackendDetails(); - } - + /** Create a new {@link RTABackendDetails} instance. No arguments are required. */ + public static RTABackendDetails create() { + return new RTABackendDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java index 304682d2..9cb9a39b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeployment.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Detailed data about an inference-pipeline deployment - */ +/** Detailed data about an inference-pipeline deployment */ // CHECKSTYLE:OFF -public class RTADeployment +public class RTADeployment // CHECKSTYLE:ON { @JsonProperty("scenarioId") @@ -64,38 +53,24 @@ public class RTADeployment @JsonProperty("ttl") private String ttl; - /** - * Deployment status - */ + /** Deployment status */ public enum StatusEnum { - /** - * The PENDING option of this RTADeployment - */ + /** The PENDING option of this RTADeployment */ PENDING("PENDING"), - - /** - * The RUNNING option of this RTADeployment - */ + + /** The RUNNING option of this RTADeployment */ RUNNING("RUNNING"), - - /** - * The COMPLETED option of this RTADeployment - */ + + /** The COMPLETED option of this RTADeployment */ COMPLETED("COMPLETED"), - - /** - * The DEAD option of this RTADeployment - */ + + /** The DEAD option of this RTADeployment */ DEAD("DEAD"), - - /** - * The UNKNOWN option of this RTADeployment - */ + + /** The UNKNOWN option of this RTADeployment */ UNKNOWN("UNKNOWN"), - - /** - * The DELETING option of this RTADeployment - */ + + /** The DELETING option of this RTADeployment */ DELETING("DELETING"); private String value; @@ -105,30 +80,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type RTADeployment - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type RTADeployment + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -145,27 +126,21 @@ public enum StatusEnum { private String statusMessage; /** - * Reflection of user's action on deployment. The value will be CREATE after user sends POST - create deployment, UPDATE after user sends PATCH - update deployment, and DELETE after user sends DELETE - delete deployment + * Reflection of user's action on deployment. The value will be CREATE after user sends POST - + * create deployment, UPDATE after user sends PATCH - update deployment, and DELETE after user + * sends DELETE - delete deployment */ public enum LastOperationEnum { - /** - * The CREATE option of this RTADeployment - */ + /** The CREATE option of this RTADeployment */ CREATE("CREATE"), - - /** - * The UPDATE option of this RTADeployment - */ + + /** The UPDATE option of this RTADeployment */ UPDATE("UPDATE"), - - /** - * The CASCADE_UPDATE option of this RTADeployment - */ + + /** The CASCADE_UPDATE option of this RTADeployment */ CASCADE_UPDATE("CASCADE-UPDATE"), - - /** - * The DELETE option of this RTADeployment - */ + + /** The DELETE option of this RTADeployment */ DELETE("DELETE"); private String value; @@ -175,30 +150,36 @@ public enum LastOperationEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type RTADeployment - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type RTADeployment + */ @JsonCreator - @Nonnull public static LastOperationEnum fromValue(@Nonnull final String value) { + @Nonnull + public static LastOperationEnum fromValue(@Nonnull final String value) { for (LastOperationEnum b : LastOperationEnum.values()) { if (b.value.equals(value)) { return b; @@ -217,349 +198,395 @@ public enum LastOperationEnum { @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTADeployment() { } - - /** - * Set the scenarioId of this {@link RTADeployment} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment scenarioId(@Nonnull final String scenarioId) { + + protected RTADeployment() {} + + /** + * Set the scenarioId of this {@link RTADeployment} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link RTADeployment} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link RTADeployment} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link RTADeployment} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the executableId of this {@link RTADeployment} instance and return the same instance. - * - * @param executableId ID of the executable - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment executableId(@Nonnull final String executableId) { + /** + * Set the executableId of this {@link RTADeployment} instance and return the same instance. + * + * @param executableId ID of the executable + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment executableId(@Nonnull final String executableId) { this.executableId = executableId; return this; } - /** - * ID of the executable - * @return executableId The executableId of this {@link RTADeployment} instance. - */ - @Nonnull public String getExecutableId() { + /** + * ID of the executable + * + * @return executableId The executableId of this {@link RTADeployment} instance. + */ + @Nonnull + public String getExecutableId() { return executableId; } /** * Set the executableId of this {@link RTADeployment} instance. * - * @param executableId ID of the executable + * @param executableId ID of the executable */ - public void setExecutableId( @Nonnull final String executableId) { + public void setExecutableId(@Nonnull final String executableId) { this.executableId = executableId; } - /** - * Set the id of this {@link RTADeployment} instance and return the same instance. - * - * @param id ID of the deployment - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment id(@Nonnull final String id) { + /** + * Set the id of this {@link RTADeployment} instance and return the same instance. + * + * @param id ID of the deployment + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the deployment - * @return id The id of this {@link RTADeployment} instance. - */ - @Nonnull public String getId() { + /** + * ID of the deployment + * + * @return id The id of this {@link RTADeployment} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link RTADeployment} instance. * - * @param id ID of the deployment + * @param id ID of the deployment */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the deploymentUrl of this {@link RTADeployment} instance and return the same instance. - * - * @param deploymentUrl Consumption URL of the pipeline deployment - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment deploymentUrl(@Nonnull final String deploymentUrl) { + /** + * Set the deploymentUrl of this {@link RTADeployment} instance and return the same instance. + * + * @param deploymentUrl Consumption URL of the pipeline deployment + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment deploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; return this; } - /** - * Consumption URL of the pipeline deployment - * @return deploymentUrl The deploymentUrl of this {@link RTADeployment} instance. - */ - @Nonnull public String getDeploymentUrl() { + /** + * Consumption URL of the pipeline deployment + * + * @return deploymentUrl The deploymentUrl of this {@link RTADeployment} instance. + */ + @Nonnull + public String getDeploymentUrl() { return deploymentUrl; } /** * Set the deploymentUrl of this {@link RTADeployment} instance. * - * @param deploymentUrl Consumption URL of the pipeline deployment + * @param deploymentUrl Consumption URL of the pipeline deployment */ - public void setDeploymentUrl( @Nonnull final String deploymentUrl) { + public void setDeploymentUrl(@Nonnull final String deploymentUrl) { this.deploymentUrl = deploymentUrl; } - /** - * Set the latestRunningTargetId of this {@link RTADeployment} instance and return the same instance. - * - * @param latestRunningTargetId Target ID of the latest running deployment - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment latestRunningTargetId(@Nonnull final String latestRunningTargetId) { + /** + * Set the latestRunningTargetId of this {@link RTADeployment} instance and return the same + * instance. + * + * @param latestRunningTargetId Target ID of the latest running deployment + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment latestRunningTargetId(@Nonnull final String latestRunningTargetId) { this.latestRunningTargetId = latestRunningTargetId; return this; } - /** - * Target ID of the latest running deployment - * @return latestRunningTargetId The latestRunningTargetId of this {@link RTADeployment} instance. - */ - @Nonnull public String getLatestRunningTargetId() { + /** + * Target ID of the latest running deployment + * + * @return latestRunningTargetId The latestRunningTargetId of this {@link RTADeployment} instance. + */ + @Nonnull + public String getLatestRunningTargetId() { return latestRunningTargetId; } /** * Set the latestRunningTargetId of this {@link RTADeployment} instance. * - * @param latestRunningTargetId Target ID of the latest running deployment + * @param latestRunningTargetId Target ID of the latest running deployment */ - public void setLatestRunningTargetId( @Nonnull final String latestRunningTargetId) { + public void setLatestRunningTargetId(@Nonnull final String latestRunningTargetId) { this.latestRunningTargetId = latestRunningTargetId; } - /** - * Set the targetId of this {@link RTADeployment} instance and return the same instance. - * - * @param targetId Client provided reference, with which the status of a PATCHed deployment can be tracked - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment targetId(@Nonnull final String targetId) { + /** + * Set the targetId of this {@link RTADeployment} instance and return the same instance. + * + * @param targetId Client provided reference, with which the status of a PATCHed deployment can be + * tracked + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment targetId(@Nonnull final String targetId) { this.targetId = targetId; return this; } - /** - * Client provided reference, with which the status of a PATCHed deployment can be tracked - * @return targetId The targetId of this {@link RTADeployment} instance. - */ - @Nonnull public String getTargetId() { + /** + * Client provided reference, with which the status of a PATCHed deployment can be tracked + * + * @return targetId The targetId of this {@link RTADeployment} instance. + */ + @Nonnull + public String getTargetId() { return targetId; } /** * Set the targetId of this {@link RTADeployment} instance. * - * @param targetId Client provided reference, with which the status of a PATCHed deployment can be tracked + * @param targetId Client provided reference, with which the status of a PATCHed deployment can be + * tracked */ - public void setTargetId( @Nonnull final String targetId) { + public void setTargetId(@Nonnull final String targetId) { this.targetId = targetId; } - /** - * Set the ttl of this {@link RTADeployment} instance and return the same instance. - * - * @param ttl TTL value of deployment - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment ttl(@Nonnull final String ttl) { + /** + * Set the ttl of this {@link RTADeployment} instance and return the same instance. + * + * @param ttl TTL value of deployment + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment ttl(@Nonnull final String ttl) { this.ttl = ttl; return this; } - /** - * TTL value of deployment - * @return ttl The ttl of this {@link RTADeployment} instance. - */ - @Nonnull public String getTtl() { + /** + * TTL value of deployment + * + * @return ttl The ttl of this {@link RTADeployment} instance. + */ + @Nonnull + public String getTtl() { return ttl; } /** * Set the ttl of this {@link RTADeployment} instance. * - * @param ttl TTL value of deployment + * @param ttl TTL value of deployment */ - public void setTtl( @Nonnull final String ttl) { + public void setTtl(@Nonnull final String ttl) { this.ttl = ttl; } - /** - * Set the status of this {@link RTADeployment} instance and return the same instance. - * - * @param status Deployment status - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link RTADeployment} instance and return the same instance. + * + * @param status Deployment status + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * Deployment status - * @return status The status of this {@link RTADeployment} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * Deployment status + * + * @return status The status of this {@link RTADeployment} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link RTADeployment} instance. * - * @param status Deployment status + * @param status Deployment status */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } - /** - * Set the statusMessage of this {@link RTADeployment} instance and return the same instance. - * - * @param statusMessage Deployment status message - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link RTADeployment} instance and return the same instance. + * + * @param statusMessage Deployment status message + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * Deployment status message - * @return statusMessage The statusMessage of this {@link RTADeployment} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * Deployment status message + * + * @return statusMessage The statusMessage of this {@link RTADeployment} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link RTADeployment} instance. * - * @param statusMessage Deployment status message + * @param statusMessage Deployment status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the lastOperation of this {@link RTADeployment} instance and return the same instance. - * - * @param lastOperation Reflection of user's action on deployment. The value will be CREATE after user sends POST - create deployment, UPDATE after user sends PATCH - update deployment, and DELETE after user sends DELETE - delete deployment - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment lastOperation(@Nonnull final LastOperationEnum lastOperation) { + /** + * Set the lastOperation of this {@link RTADeployment} instance and return the same instance. + * + * @param lastOperation Reflection of user's action on deployment. The value will be CREATE + * after user sends POST - create deployment, UPDATE after user sends PATCH - update + * deployment, and DELETE after user sends DELETE - delete deployment + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment lastOperation(@Nonnull final LastOperationEnum lastOperation) { this.lastOperation = lastOperation; return this; } - /** - * Reflection of user's action on deployment. The value will be CREATE after user sends POST - create deployment, UPDATE after user sends PATCH - update deployment, and DELETE after user sends DELETE - delete deployment - * @return lastOperation The lastOperation of this {@link RTADeployment} instance. - */ - @Nonnull public LastOperationEnum getLastOperation() { + /** + * Reflection of user's action on deployment. The value will be CREATE after user sends POST - + * create deployment, UPDATE after user sends PATCH - update deployment, and DELETE after user + * sends DELETE - delete deployment + * + * @return lastOperation The lastOperation of this {@link RTADeployment} instance. + */ + @Nonnull + public LastOperationEnum getLastOperation() { return lastOperation; } /** * Set the lastOperation of this {@link RTADeployment} instance. * - * @param lastOperation Reflection of user's action on deployment. The value will be CREATE after user sends POST - create deployment, UPDATE after user sends PATCH - update deployment, and DELETE after user sends DELETE - delete deployment + * @param lastOperation Reflection of user's action on deployment. The value will be CREATE + * after user sends POST - create deployment, UPDATE after user sends PATCH - update + * deployment, and DELETE after user sends DELETE - delete deployment */ - public void setLastOperation( @Nonnull final LastOperationEnum lastOperation) { + public void setLastOperation(@Nonnull final LastOperationEnum lastOperation) { this.lastOperation = lastOperation; } - /** - * Set the createdAt of this {@link RTADeployment} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link RTADeployment} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link RTADeployment} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link RTADeployment} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link RTADeployment} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link RTADeployment} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link RTADeployment} class - */ - @Nonnull public RTADeployment modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link RTADeployment} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link RTADeployment} class + */ + @Nonnull + public RTADeployment modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link RTADeployment} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link RTADeployment} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link RTADeployment} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link RTADeployment}. + * * @return The set of properties names */ @JsonIgnore @@ -570,31 +597,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTADeployment} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTADeployment has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTADeployment has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTADeployment} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTADeployment} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -604,35 +631,51 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTADeployment rtADeployment = (RTADeployment) o; - return Objects.equals(this.cloudSdkCustomFields, rtADeployment.cloudSdkCustomFields) && - Objects.equals(this.scenarioId, rtADeployment.scenarioId) && - Objects.equals(this.executableId, rtADeployment.executableId) && - Objects.equals(this.id, rtADeployment.id) && - Objects.equals(this.deploymentUrl, rtADeployment.deploymentUrl) && - Objects.equals(this.latestRunningTargetId, rtADeployment.latestRunningTargetId) && - Objects.equals(this.targetId, rtADeployment.targetId) && - Objects.equals(this.ttl, rtADeployment.ttl) && - Objects.equals(this.status, rtADeployment.status) && - Objects.equals(this.statusMessage, rtADeployment.statusMessage) && - Objects.equals(this.lastOperation, rtADeployment.lastOperation) && - Objects.equals(this.createdAt, rtADeployment.createdAt) && - Objects.equals(this.modifiedAt, rtADeployment.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, rtADeployment.cloudSdkCustomFields) + && Objects.equals(this.scenarioId, rtADeployment.scenarioId) + && Objects.equals(this.executableId, rtADeployment.executableId) + && Objects.equals(this.id, rtADeployment.id) + && Objects.equals(this.deploymentUrl, rtADeployment.deploymentUrl) + && Objects.equals(this.latestRunningTargetId, rtADeployment.latestRunningTargetId) + && Objects.equals(this.targetId, rtADeployment.targetId) + && Objects.equals(this.ttl, rtADeployment.ttl) + && Objects.equals(this.status, rtADeployment.status) + && Objects.equals(this.statusMessage, rtADeployment.statusMessage) + && Objects.equals(this.lastOperation, rtADeployment.lastOperation) + && Objects.equals(this.createdAt, rtADeployment.createdAt) + && Objects.equals(this.modifiedAt, rtADeployment.modifiedAt); } @Override public int hashCode() { - return Objects.hash(scenarioId, executableId, id, deploymentUrl, latestRunningTargetId, targetId, ttl, status, statusMessage, lastOperation, createdAt, modifiedAt, cloudSdkCustomFields); + return Objects.hash( + scenarioId, + executableId, + id, + deploymentUrl, + latestRunningTargetId, + targetId, + ttl, + status, + statusMessage, + lastOperation, + createdAt, + modifiedAt, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTADeployment {\n"); sb.append(" scenarioId: ").append(toIndentedString(scenarioId)).append("\n"); sb.append(" executableId: ").append(toIndentedString(executableId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" deploymentUrl: ").append(toIndentedString(deploymentUrl)).append("\n"); - sb.append(" latestRunningTargetId: ").append(toIndentedString(latestRunningTargetId)).append("\n"); + sb.append(" latestRunningTargetId: ") + .append(toIndentedString(latestRunningTargetId)) + .append("\n"); sb.append(" targetId: ").append(toIndentedString(targetId)).append("\n"); sb.append(" ttl: ").append(toIndentedString(ttl)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -640,14 +683,15 @@ public int hashCode() { sb.append(" lastOperation: ").append(toIndentedString(lastOperation)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -656,60 +700,63 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTADeployment} instance + * with all required arguments. + */ + public static Builder create() { + return (scenarioId) -> + (executableId) -> + (createdAt) -> + (modifiedAt) -> + new RTADeployment() + .scenarioId(scenarioId) + .executableId(executableId) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTADeployment} instance with all required arguments. - */ - public static Builder create() { - return (scenarioId) -> (executableId) -> (createdAt) -> (modifiedAt) -> new RTADeployment().scenarioId(scenarioId).executableId(executableId).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the scenarioId of this {@link RTADeployment} instance. - * - * @param scenarioId ID of the scenario - * @return The RTADeployment builder. - */ - Builder1 scenarioId( @Nonnull final String scenarioId); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executableId of this {@link RTADeployment} instance. - * - * @param executableId ID of the executable - * @return The RTADeployment builder. - */ - Builder2 executableId( @Nonnull final String executableId); - } + * Set the scenarioId of this {@link RTADeployment} instance. + * + * @param scenarioId ID of the scenario + * @return The RTADeployment builder. + */ + Builder1 scenarioId(@Nonnull final String scenarioId); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the createdAt of this {@link RTADeployment} instance. - * - * @param createdAt Timestamp of resource creation - * @return The RTADeployment builder. - */ - Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the executableId of this {@link RTADeployment} instance. + * + * @param executableId ID of the executable + * @return The RTADeployment builder. + */ + Builder2 executableId(@Nonnull final String executableId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the modifiedAt of this {@link RTADeployment} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The RTADeployment instance. - */ - RTADeployment modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link RTADeployment} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTADeployment builder. + */ + Builder3 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link RTADeployment} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTADeployment instance. + */ + RTADeployment modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java index 6f128555..92b8a92c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTADeploymentDetails.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTABackendDetails; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTADeploymentDetails - */ +/** RTADeploymentDetails */ // CHECKSTYLE:OFF -public class RTADeploymentDetails +public class RTADeploymentDetails // CHECKSTYLE:ON { @JsonProperty("scaling") @@ -49,69 +35,76 @@ public class RTADeploymentDetails @JsonProperty("resources") private RTABackendDetails resources; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTADeploymentDetails() { } - - /** - * Set the scaling of this {@link RTADeploymentDetails} instance and return the same instance. - * - * @param scaling The scaling of this {@link RTADeploymentDetails} - * @return The same instance of this {@link RTADeploymentDetails} class - */ - @Nonnull public RTADeploymentDetails scaling(@Nonnull final RTABackendDetails scaling) { + + protected RTADeploymentDetails() {} + + /** + * Set the scaling of this {@link RTADeploymentDetails} instance and return the same instance. + * + * @param scaling The scaling of this {@link RTADeploymentDetails} + * @return The same instance of this {@link RTADeploymentDetails} class + */ + @Nonnull + public RTADeploymentDetails scaling(@Nonnull final RTABackendDetails scaling) { this.scaling = scaling; return this; } - /** - * Get scaling - * @return scaling The scaling of this {@link RTADeploymentDetails} instance. - */ - @Nonnull public RTABackendDetails getScaling() { + /** + * Get scaling + * + * @return scaling The scaling of this {@link RTADeploymentDetails} instance. + */ + @Nonnull + public RTABackendDetails getScaling() { return scaling; } /** * Set the scaling of this {@link RTADeploymentDetails} instance. * - * @param scaling The scaling of this {@link RTADeploymentDetails} + * @param scaling The scaling of this {@link RTADeploymentDetails} */ - public void setScaling( @Nonnull final RTABackendDetails scaling) { + public void setScaling(@Nonnull final RTABackendDetails scaling) { this.scaling = scaling; } - /** - * Set the resources of this {@link RTADeploymentDetails} instance and return the same instance. - * - * @param resources The resources of this {@link RTADeploymentDetails} - * @return The same instance of this {@link RTADeploymentDetails} class - */ - @Nonnull public RTADeploymentDetails resources(@Nonnull final RTABackendDetails resources) { + /** + * Set the resources of this {@link RTADeploymentDetails} instance and return the same instance. + * + * @param resources The resources of this {@link RTADeploymentDetails} + * @return The same instance of this {@link RTADeploymentDetails} class + */ + @Nonnull + public RTADeploymentDetails resources(@Nonnull final RTABackendDetails resources) { this.resources = resources; return this; } - /** - * Get resources - * @return resources The resources of this {@link RTADeploymentDetails} instance. - */ - @Nonnull public RTABackendDetails getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link RTADeploymentDetails} instance. + */ + @Nonnull + public RTABackendDetails getResources() { return resources; } /** * Set the resources of this {@link RTADeploymentDetails} instance. * - * @param resources The resources of this {@link RTADeploymentDetails} + * @param resources The resources of this {@link RTADeploymentDetails} */ - public void setResources( @Nonnull final RTABackendDetails resources) { + public void setResources(@Nonnull final RTABackendDetails resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link RTADeploymentDetails}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTADeploymentDetails} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTADeploymentDetails has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTADeploymentDetails has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTADeploymentDetails} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTADeploymentDetails} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTADeploymentDetails rtADeploymentDetails = (RTADeploymentDetails) o; - return Objects.equals(this.cloudSdkCustomFields, rtADeploymentDetails.cloudSdkCustomFields) && - Objects.equals(this.scaling, rtADeploymentDetails.scaling) && - Objects.equals(this.resources, rtADeploymentDetails.resources); + return Objects.equals(this.cloudSdkCustomFields, rtADeploymentDetails.cloudSdkCustomFields) + && Objects.equals(this.scaling, rtADeploymentDetails.scaling) + && Objects.equals(this.resources, rtADeploymentDetails.resources); } @Override @@ -167,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTADeploymentDetails {\n"); sb.append(" scaling: ").append(toIndentedString(scaling)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +184,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link RTADeploymentDetails} instance. No arguments are required. - */ - public static RTADeploymentDetails create() { - return new RTADeploymentDetails(); - } - + /** Create a new {@link RTADeploymentDetails} instance. No arguments are required. */ + public static RTADeploymentDetails create() { + return new RTADeploymentDetails(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java index 1873f600..e69cf2ac 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTAError - */ +/** RTAError */ // CHECKSTYLE:OFF -public class RTAError +public class RTAError // CHECKSTYLE:ON { @JsonProperty("code") @@ -57,153 +44,169 @@ public class RTAError @JsonProperty("details") private Object details; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAError() { } - - /** - * Set the code of this {@link RTAError} instance and return the same instance. - * - * @param code Descriptive error code (not http status code) - * @return The same instance of this {@link RTAError} class - */ - @Nonnull public RTAError code(@Nonnull final String code) { + + protected RTAError() {} + + /** + * Set the code of this {@link RTAError} instance and return the same instance. + * + * @param code Descriptive error code (not http status code) + * @return The same instance of this {@link RTAError} class + */ + @Nonnull + public RTAError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code) - * @return code The code of this {@link RTAError} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code) + * + * @return code The code of this {@link RTAError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link RTAError} instance. * - * @param code Descriptive error code (not http status code) + * @param code Descriptive error code (not http status code) */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link RTAError} instance and return the same instance. - * - * @param message Plaintext error description - * @return The same instance of this {@link RTAError} class - */ - @Nonnull public RTAError message(@Nonnull final String message) { + /** + * Set the message of this {@link RTAError} instance and return the same instance. + * + * @param message Plaintext error description + * @return The same instance of this {@link RTAError} class + */ + @Nonnull + public RTAError message(@Nonnull final String message) { this.message = message; return this; } - /** - * Plaintext error description - * @return message The message of this {@link RTAError} instance. - */ - @Nonnull public String getMessage() { + /** + * Plaintext error description + * + * @return message The message of this {@link RTAError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link RTAError} instance. * - * @param message Plaintext error description + * @param message Plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the requestId of this {@link RTAError} instance and return the same instance. - * - * @param requestId ID of the individual request - * @return The same instance of this {@link RTAError} class - */ - @Nonnull public RTAError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link RTAError} instance and return the same instance. + * + * @param requestId ID of the individual request + * @return The same instance of this {@link RTAError} class + */ + @Nonnull + public RTAError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * ID of the individual request - * @return requestId The requestId of this {@link RTAError} instance. - */ - @Nonnull public String getRequestId() { + /** + * ID of the individual request + * + * @return requestId The requestId of this {@link RTAError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link RTAError} instance. * - * @param requestId ID of the individual request + * @param requestId ID of the individual request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the target of this {@link RTAError} instance and return the same instance. - * - * @param target Invoked URL - * @return The same instance of this {@link RTAError} class - */ - @Nonnull public RTAError target(@Nonnull final String target) { + /** + * Set the target of this {@link RTAError} instance and return the same instance. + * + * @param target Invoked URL + * @return The same instance of this {@link RTAError} class + */ + @Nonnull + public RTAError target(@Nonnull final String target) { this.target = target; return this; } - /** - * Invoked URL - * @return target The target of this {@link RTAError} instance. - */ - @Nonnull public String getTarget() { + /** + * Invoked URL + * + * @return target The target of this {@link RTAError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link RTAError} instance. * - * @param target Invoked URL + * @param target Invoked URL */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the details of this {@link RTAError} instance and return the same instance. - * - * @param details Optional details of the error message - * @return The same instance of this {@link RTAError} class - */ - @Nonnull public RTAError details(@Nonnull final Object details) { + /** + * Set the details of this {@link RTAError} instance and return the same instance. + * + * @param details Optional details of the error message + * @return The same instance of this {@link RTAError} class + */ + @Nonnull + public RTAError details(@Nonnull final Object details) { this.details = details; return this; } - /** - * Optional details of the error message - * @return details The details of this {@link RTAError} instance. - */ - @Nonnull public Object getDetails() { + /** + * Optional details of the error message + * + * @return details The details of this {@link RTAError} instance. + */ + @Nonnull + public Object getDetails() { return details; } /** * Set the details of this {@link RTAError} instance. * - * @param details Optional details of the error message + * @param details Optional details of the error message */ - public void setDetails( @Nonnull final Object details) { + public void setDetails(@Nonnull final Object details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link RTAError}. + * * @return The set of properties names */ @JsonIgnore @@ -214,31 +217,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -248,12 +251,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAError rtAError = (RTAError) o; - return Objects.equals(this.cloudSdkCustomFields, rtAError.cloudSdkCustomFields) && - Objects.equals(this.code, rtAError.code) && - Objects.equals(this.message, rtAError.message) && - Objects.equals(this.requestId, rtAError.requestId) && - Objects.equals(this.target, rtAError.target) && - Objects.equals(this.details, rtAError.details); + return Objects.equals(this.cloudSdkCustomFields, rtAError.cloudSdkCustomFields) + && Objects.equals(this.code, rtAError.code) + && Objects.equals(this.message, rtAError.message) + && Objects.equals(this.requestId, rtAError.requestId) + && Objects.equals(this.target, rtAError.target) + && Objects.equals(this.details, rtAError.details); } @Override @@ -262,7 +265,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -270,14 +274,15 @@ public int hashCode() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -286,36 +291,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAError} instance with + * all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new RTAError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new RTAError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link RTAError} instance. - * - * @param code Descriptive error code (not http status code) - * @return The RTAError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link RTAError} instance. - * - * @param message Plaintext error description - * @return The RTAError instance. - */ - RTAError message( @Nonnull final String message); - } + * Set the code of this {@link RTAError} instance. + * + * @param code Descriptive error code (not http status code) + * @return The RTAError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link RTAError} instance. + * + * @param message Plaintext error description + * @return The RTAError instance. + */ + RTAError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java index c76f0a8e..0dca9b9f 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAErrorResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTAError; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTAErrorResponse - */ +/** RTAErrorResponse */ // CHECKSTYLE:OFF -public class RTAErrorResponse +public class RTAErrorResponse // CHECKSTYLE:ON { @JsonProperty("error") private RTAError error; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAErrorResponse() { } - - /** - * Set the error of this {@link RTAErrorResponse} instance and return the same instance. - * - * @param error The error of this {@link RTAErrorResponse} - * @return The same instance of this {@link RTAErrorResponse} class - */ - @Nonnull public RTAErrorResponse error(@Nonnull final RTAError error) { + + protected RTAErrorResponse() {} + + /** + * Set the error of this {@link RTAErrorResponse} instance and return the same instance. + * + * @param error The error of this {@link RTAErrorResponse} + * @return The same instance of this {@link RTAErrorResponse} class + */ + @Nonnull + public RTAErrorResponse error(@Nonnull final RTAError error) { this.error = error; return this; } - /** - * Get error - * @return error The error of this {@link RTAErrorResponse} instance. - */ - @Nonnull public RTAError getError() { + /** + * Get error + * + * @return error The error of this {@link RTAErrorResponse} instance. + */ + @Nonnull + public RTAError getError() { return error; } /** * Set the error of this {@link RTAErrorResponse} instance. * - * @param error The error of this {@link RTAErrorResponse} + * @param error The error of this {@link RTAErrorResponse} */ - public void setError( @Nonnull final RTAError error) { + public void setError(@Nonnull final RTAError error) { this.error = error; } /** * Get the names of the unrecognizable properties of the {@link RTAErrorResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAErrorResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAErrorResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAErrorResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAErrorResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAErrorResponse} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +115,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAErrorResponse rtAErrorResponse = (RTAErrorResponse) o; - return Objects.equals(this.cloudSdkCustomFields, rtAErrorResponse.cloudSdkCustomFields) && - Objects.equals(this.error, rtAErrorResponse.error); + return Objects.equals(this.cloudSdkCustomFields, rtAErrorResponse.cloudSdkCustomFields) + && Objects.equals(this.error, rtAErrorResponse.error); } @Override @@ -135,18 +125,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAErrorResponse {\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +147,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link RTAErrorResponse} instance. No arguments are required. - */ - public static RTAErrorResponse create() { - return new RTAErrorResponse(); - } - + /** Create a new {@link RTAErrorResponse} instance. No arguments are required. */ + public static RTAErrorResponse create() { + return new RTAErrorResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java index 8c727cfd..459cd5a5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutable.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTAExecutableArtifact; -import com.sap.ai.sdk.core.client.model.RTAExecutableParameter; -import com.sap.ai.sdk.core.client.model.RTALabel; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Entity having labels - */ +/** Entity having labels */ // CHECKSTYLE:OFF -public class RTAExecutable +public class RTAExecutable // CHECKSTYLE:ON { @JsonProperty("id") @@ -82,139 +65,156 @@ public class RTAExecutable @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAExecutable() { } - - /** - * Set the id of this {@link RTAExecutable} instance and return the same instance. - * - * @param id ID of the executable - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable id(@Nonnull final String id) { + + protected RTAExecutable() {} + + /** + * Set the id of this {@link RTAExecutable} instance and return the same instance. + * + * @param id ID of the executable + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the executable - * @return id The id of this {@link RTAExecutable} instance. - */ - @Nonnull public String getId() { + /** + * ID of the executable + * + * @return id The id of this {@link RTAExecutable} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link RTAExecutable} instance. * - * @param id ID of the executable + * @param id ID of the executable */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the name of this {@link RTAExecutable} instance and return the same instance. - * - * @param name Name of the executable - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable name(@Nonnull final String name) { + /** + * Set the name of this {@link RTAExecutable} instance and return the same instance. + * + * @param name Name of the executable + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the executable - * @return name The name of this {@link RTAExecutable} instance. - */ - @Nonnull public String getName() { + /** + * Name of the executable + * + * @return name The name of this {@link RTAExecutable} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAExecutable} instance. * - * @param name Name of the executable + * @param name Name of the executable */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link RTAExecutable} instance and return the same instance. - * - * @param description Description of the executable - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable description(@Nonnull final String description) { + /** + * Set the description of this {@link RTAExecutable} instance and return the same instance. + * + * @param description Description of the executable + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the executable - * @return description The description of this {@link RTAExecutable} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the executable + * + * @return description The description of this {@link RTAExecutable} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link RTAExecutable} instance. * - * @param description Description of the executable + * @param description Description of the executable */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the scenarioId of this {@link RTAExecutable} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable scenarioId(@Nonnull final String scenarioId) { + /** + * Set the scenarioId of this {@link RTAExecutable} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link RTAExecutable} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link RTAExecutable} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link RTAExecutable} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the inputArtifacts of this {@link RTAExecutable} instance and return the same instance. - * - * @param inputArtifacts List of Artifacts that the executable expects as input artifacts - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable inputArtifacts(@Nonnull final List inputArtifacts) { + /** + * Set the inputArtifacts of this {@link RTAExecutable} instance and return the same instance. + * + * @param inputArtifacts List of Artifacts that the executable expects as input artifacts + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable inputArtifacts(@Nonnull final List inputArtifacts) { this.inputArtifacts = inputArtifacts; return this; } + /** * Add one inputArtifacts instance to this {@link RTAExecutable}. + * * @param inputArtifactsItem The inputArtifacts that should be added * @return The same instance of type {@link RTAExecutable} */ - @Nonnull public RTAExecutable addInputArtifactsItem( @Nonnull final RTAExecutableArtifact inputArtifactsItem) { + @Nonnull + public RTAExecutable addInputArtifactsItem( + @Nonnull final RTAExecutableArtifact inputArtifactsItem) { if (this.inputArtifacts == null) { this.inputArtifacts = new ArrayList<>(); } @@ -222,39 +222,48 @@ public void setScenarioId( @Nonnull final String scenarioId) { return this; } - /** - * List of Artifacts that the executable expects as input artifacts - * @return inputArtifacts The inputArtifacts of this {@link RTAExecutable} instance. - */ - @Nonnull public List getInputArtifacts() { + /** + * List of Artifacts that the executable expects as input artifacts + * + * @return inputArtifacts The inputArtifacts of this {@link RTAExecutable} instance. + */ + @Nonnull + public List getInputArtifacts() { return inputArtifacts; } /** * Set the inputArtifacts of this {@link RTAExecutable} instance. * - * @param inputArtifacts List of Artifacts that the executable expects as input artifacts + * @param inputArtifacts List of Artifacts that the executable expects as input artifacts */ - public void setInputArtifacts( @Nonnull final List inputArtifacts) { + public void setInputArtifacts(@Nonnull final List inputArtifacts) { this.inputArtifacts = inputArtifacts; } - /** - * Set the outputArtifacts of this {@link RTAExecutable} instance and return the same instance. - * - * @param outputArtifacts List of Artifacts that the executable will produce. If storage is not managed internally, a storage location will have to be specified when triggering an execution - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable outputArtifacts(@Nonnull final List outputArtifacts) { + /** + * Set the outputArtifacts of this {@link RTAExecutable} instance and return the same instance. + * + * @param outputArtifacts List of Artifacts that the executable will produce. If storage is not + * managed internally, a storage location will have to be specified when triggering an + * execution + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable outputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; return this; } + /** * Add one outputArtifacts instance to this {@link RTAExecutable}. + * * @param outputArtifactsItem The outputArtifacts that should be added * @return The same instance of type {@link RTAExecutable} */ - @Nonnull public RTAExecutable addOutputArtifactsItem( @Nonnull final RTAExecutableArtifact outputArtifactsItem) { + @Nonnull + public RTAExecutable addOutputArtifactsItem( + @Nonnull final RTAExecutableArtifact outputArtifactsItem) { if (this.outputArtifacts == null) { this.outputArtifacts = new ArrayList<>(); } @@ -262,39 +271,48 @@ public void setInputArtifacts( @Nonnull final List inputA return this; } - /** - * List of Artifacts that the executable will produce. If storage is not managed internally, a storage location will have to be specified when triggering an execution - * @return outputArtifacts The outputArtifacts of this {@link RTAExecutable} instance. - */ - @Nonnull public List getOutputArtifacts() { + /** + * List of Artifacts that the executable will produce. If storage is not managed internally, a + * storage location will have to be specified when triggering an execution + * + * @return outputArtifacts The outputArtifacts of this {@link RTAExecutable} instance. + */ + @Nonnull + public List getOutputArtifacts() { return outputArtifacts; } /** * Set the outputArtifacts of this {@link RTAExecutable} instance. * - * @param outputArtifacts List of Artifacts that the executable will produce. If storage is not managed internally, a storage location will have to be specified when triggering an execution + * @param outputArtifacts List of Artifacts that the executable will produce. If storage is not + * managed internally, a storage location will have to be specified when triggering an + * execution */ - public void setOutputArtifacts( @Nonnull final List outputArtifacts) { + public void setOutputArtifacts(@Nonnull final List outputArtifacts) { this.outputArtifacts = outputArtifacts; } - /** - * Set the parameters of this {@link RTAExecutable} instance and return the same instance. - * - * @param parameters Executable parameters - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable parameters(@Nonnull final List parameters) { + /** + * Set the parameters of this {@link RTAExecutable} instance and return the same instance. + * + * @param parameters Executable parameters + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable parameters(@Nonnull final List parameters) { this.parameters = parameters; return this; } + /** * Add one parameters instance to this {@link RTAExecutable}. + * * @param parametersItem The parameters that should be added * @return The same instance of type {@link RTAExecutable} */ - @Nonnull public RTAExecutable addParametersItem( @Nonnull final RTAExecutableParameter parametersItem) { + @Nonnull + public RTAExecutable addParametersItem(@Nonnull final RTAExecutableParameter parametersItem) { if (this.parameters == null) { this.parameters = new ArrayList<>(); } @@ -302,67 +320,76 @@ public void setOutputArtifacts( @Nonnull final List outpu return this; } - /** - * Executable parameters - * @return parameters The parameters of this {@link RTAExecutable} instance. - */ - @Nonnull public List getParameters() { + /** + * Executable parameters + * + * @return parameters The parameters of this {@link RTAExecutable} instance. + */ + @Nonnull + public List getParameters() { return parameters; } /** * Set the parameters of this {@link RTAExecutable} instance. * - * @param parameters Executable parameters + * @param parameters Executable parameters */ - public void setParameters( @Nonnull final List parameters) { + public void setParameters(@Nonnull final List parameters) { this.parameters = parameters; } - /** - * Set the deployable of this {@link RTAExecutable} instance and return the same instance. - * - * @param deployable Whether this pipeline is deployable - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable deployable(@Nonnull final Boolean deployable) { + /** + * Set the deployable of this {@link RTAExecutable} instance and return the same instance. + * + * @param deployable Whether this pipeline is deployable + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable deployable(@Nonnull final Boolean deployable) { this.deployable = deployable; return this; } - /** - * Whether this pipeline is deployable - * @return deployable The deployable of this {@link RTAExecutable} instance. - */ - @Nonnull public Boolean isDeployable() { + /** + * Whether this pipeline is deployable + * + * @return deployable The deployable of this {@link RTAExecutable} instance. + */ + @Nonnull + public Boolean isDeployable() { return deployable; } /** * Set the deployable of this {@link RTAExecutable} instance. * - * @param deployable Whether this pipeline is deployable + * @param deployable Whether this pipeline is deployable */ - public void setDeployable( @Nonnull final Boolean deployable) { + public void setDeployable(@Nonnull final Boolean deployable) { this.deployable = deployable; } - /** - * Set the labels of this {@link RTAExecutable} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link RTAExecutable} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link RTAExecutable}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link RTAExecutable} */ - @Nonnull public RTAExecutable addLabelsItem( @Nonnull final RTALabel labelsItem) { + @Nonnull + public RTAExecutable addLabelsItem(@Nonnull final RTALabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -370,81 +397,90 @@ public void setDeployable( @Nonnull final Boolean deployable) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link RTAExecutable} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link RTAExecutable} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link RTAExecutable} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the createdAt of this {@link RTAExecutable} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link RTAExecutable} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link RTAExecutable} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link RTAExecutable} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link RTAExecutable} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link RTAExecutable} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link RTAExecutable} class - */ - @Nonnull public RTAExecutable modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link RTAExecutable} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link RTAExecutable} class + */ + @Nonnull + public RTAExecutable modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link RTAExecutable} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link RTAExecutable} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link RTAExecutable} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link RTAExecutable}. + * * @return The set of properties names */ @JsonIgnore @@ -455,31 +491,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAExecutable} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAExecutable has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAExecutable has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAExecutable} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAExecutable} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -489,27 +525,40 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAExecutable rtAExecutable = (RTAExecutable) o; - return Objects.equals(this.cloudSdkCustomFields, rtAExecutable.cloudSdkCustomFields) && - Objects.equals(this.id, rtAExecutable.id) && - Objects.equals(this.name, rtAExecutable.name) && - Objects.equals(this.description, rtAExecutable.description) && - Objects.equals(this.scenarioId, rtAExecutable.scenarioId) && - Objects.equals(this.inputArtifacts, rtAExecutable.inputArtifacts) && - Objects.equals(this.outputArtifacts, rtAExecutable.outputArtifacts) && - Objects.equals(this.parameters, rtAExecutable.parameters) && - Objects.equals(this.deployable, rtAExecutable.deployable) && - Objects.equals(this.labels, rtAExecutable.labels) && - Objects.equals(this.createdAt, rtAExecutable.createdAt) && - Objects.equals(this.modifiedAt, rtAExecutable.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, rtAExecutable.cloudSdkCustomFields) + && Objects.equals(this.id, rtAExecutable.id) + && Objects.equals(this.name, rtAExecutable.name) + && Objects.equals(this.description, rtAExecutable.description) + && Objects.equals(this.scenarioId, rtAExecutable.scenarioId) + && Objects.equals(this.inputArtifacts, rtAExecutable.inputArtifacts) + && Objects.equals(this.outputArtifacts, rtAExecutable.outputArtifacts) + && Objects.equals(this.parameters, rtAExecutable.parameters) + && Objects.equals(this.deployable, rtAExecutable.deployable) + && Objects.equals(this.labels, rtAExecutable.labels) + && Objects.equals(this.createdAt, rtAExecutable.createdAt) + && Objects.equals(this.modifiedAt, rtAExecutable.modifiedAt); } @Override public int hashCode() { - return Objects.hash(id, name, description, scenarioId, inputArtifacts, outputArtifacts, parameters, deployable, labels, createdAt, modifiedAt, cloudSdkCustomFields); + return Objects.hash( + id, + name, + description, + scenarioId, + inputArtifacts, + outputArtifacts, + parameters, + deployable, + labels, + createdAt, + modifiedAt, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAExecutable {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -523,14 +572,15 @@ public int hashCode() { sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -539,84 +589,89 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutable} instance + * with all required arguments. + */ + public static Builder create() { + return (id) -> + (name) -> + (scenarioId) -> + (deployable) -> + (createdAt) -> + (modifiedAt) -> + new RTAExecutable() + .id(id) + .name(name) + .scenarioId(scenarioId) + .deployable(deployable) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutable} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (name) -> (scenarioId) -> (deployable) -> (createdAt) -> (modifiedAt) -> new RTAExecutable().id(id).name(name).scenarioId(scenarioId).deployable(deployable).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link RTAExecutable} instance. - * - * @param id ID of the executable - * @return The RTAExecutable builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the name of this {@link RTAExecutable} instance. - * - * @param name Name of the executable - * @return The RTAExecutable builder. - */ - Builder2 name( @Nonnull final String name); - } + * Set the id of this {@link RTAExecutable} instance. + * + * @param id ID of the executable + * @return The RTAExecutable builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the scenarioId of this {@link RTAExecutable} instance. - * - * @param scenarioId ID of the scenario - * @return The RTAExecutable builder. - */ - Builder3 scenarioId( @Nonnull final String scenarioId); - } + * Set the name of this {@link RTAExecutable} instance. + * + * @param name Name of the executable + * @return The RTAExecutable builder. + */ + Builder2 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the deployable of this {@link RTAExecutable} instance. - * - * @param deployable Whether this pipeline is deployable - * @return The RTAExecutable builder. - */ - Builder4 deployable( @Nonnull final Boolean deployable); - } + * Set the scenarioId of this {@link RTAExecutable} instance. + * + * @param scenarioId ID of the scenario + * @return The RTAExecutable builder. + */ + Builder3 scenarioId(@Nonnull final String scenarioId); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the createdAt of this {@link RTAExecutable} instance. - * - * @param createdAt Timestamp of resource creation - * @return The RTAExecutable builder. - */ - Builder5 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the deployable of this {@link RTAExecutable} instance. + * + * @param deployable Whether this pipeline is deployable + * @return The RTAExecutable builder. + */ + Builder4 deployable(@Nonnull final Boolean deployable); + } + + /** Builder helper class. */ + public interface Builder4 { /** - * Builder helper class. - */ - public interface Builder5 { - /** - * Set the modifiedAt of this {@link RTAExecutable} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The RTAExecutable instance. - */ - RTAExecutable modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link RTAExecutable} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAExecutable builder. + */ + Builder5 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder5 { + /** + * Set the modifiedAt of this {@link RTAExecutable} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTAExecutable instance. + */ + RTAExecutable modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java index 4a4f2272..b48772a7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArgumentBinding.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Required for execution Result of activation - */ +/** Required for execution Result of activation */ // CHECKSTYLE:OFF -public class RTAExecutableArgumentBinding +public class RTAExecutableArgumentBinding // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,77 @@ public class RTAExecutableArgumentBinding @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAExecutableArgumentBinding() { } - - /** - * Set the key of this {@link RTAExecutableArgumentBinding} instance and return the same instance. - * - * @param key The key of this {@link RTAExecutableArgumentBinding} - * @return The same instance of this {@link RTAExecutableArgumentBinding} class - */ - @Nonnull public RTAExecutableArgumentBinding key(@Nonnull final String key) { + + protected RTAExecutableArgumentBinding() {} + + /** + * Set the key of this {@link RTAExecutableArgumentBinding} instance and return the same instance. + * + * @param key The key of this {@link RTAExecutableArgumentBinding} + * @return The same instance of this {@link RTAExecutableArgumentBinding} class + */ + @Nonnull + public RTAExecutableArgumentBinding key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link RTAExecutableArgumentBinding} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link RTAExecutableArgumentBinding} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link RTAExecutableArgumentBinding} instance. * - * @param key The key of this {@link RTAExecutableArgumentBinding} + * @param key The key of this {@link RTAExecutableArgumentBinding} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link RTAExecutableArgumentBinding} instance and return the same instance. - * - * @param value The value of this {@link RTAExecutableArgumentBinding} - * @return The same instance of this {@link RTAExecutableArgumentBinding} class - */ - @Nonnull public RTAExecutableArgumentBinding value(@Nonnull final String value) { + /** + * Set the value of this {@link RTAExecutableArgumentBinding} instance and return the same + * instance. + * + * @param value The value of this {@link RTAExecutableArgumentBinding} + * @return The same instance of this {@link RTAExecutableArgumentBinding} class + */ + @Nonnull + public RTAExecutableArgumentBinding value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link RTAExecutableArgumentBinding} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link RTAExecutableArgumentBinding} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link RTAExecutableArgumentBinding} instance. * - * @param value The value of this {@link RTAExecutableArgumentBinding} + * @param value The value of this {@link RTAExecutableArgumentBinding} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link RTAExecutableArgumentBinding}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +115,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link RTAExecutableArgumentBinding} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link RTAExecutableArgumentBinding} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAExecutableArgumentBinding has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTAExecutableArgumentBinding has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAExecutableArgumentBinding} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAExecutableArgumentBinding} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +152,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final RTAExecutableArgumentBinding rtAExecutableArgumentBinding = (RTAExecutableArgumentBinding) o; - return Objects.equals(this.cloudSdkCustomFields, rtAExecutableArgumentBinding.cloudSdkCustomFields) && - Objects.equals(this.key, rtAExecutableArgumentBinding.key) && - Objects.equals(this.value, rtAExecutableArgumentBinding.value); + final RTAExecutableArgumentBinding rtAExecutableArgumentBinding = + (RTAExecutableArgumentBinding) o; + return Objects.equals( + this.cloudSdkCustomFields, rtAExecutableArgumentBinding.cloudSdkCustomFields) + && Objects.equals(this.key, rtAExecutableArgumentBinding.key) + && Objects.equals(this.value, rtAExecutableArgumentBinding.value); } @Override @@ -166,19 +166,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAExecutableArgumentBinding {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +189,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * RTAExecutableArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new RTAExecutableArgumentBinding().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableArgumentBinding} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new RTAExecutableArgumentBinding().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link RTAExecutableArgumentBinding} instance. - * - * @param key The key of this {@link RTAExecutableArgumentBinding} - * @return The RTAExecutableArgumentBinding builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link RTAExecutableArgumentBinding} instance. - * - * @param value The value of this {@link RTAExecutableArgumentBinding} - * @return The RTAExecutableArgumentBinding instance. - */ - RTAExecutableArgumentBinding value( @Nonnull final String value); - } + * Set the key of this {@link RTAExecutableArgumentBinding} instance. + * + * @param key The key of this {@link RTAExecutableArgumentBinding} + * @return The RTAExecutableArgumentBinding builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link RTAExecutableArgumentBinding} instance. + * + * @param value The value of this {@link RTAExecutableArgumentBinding} + * @return The RTAExecutableArgumentBinding instance. + */ + RTAExecutableArgumentBinding value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java index f3f9c643..614d4b5b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableArtifact.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTAArtifactLabel; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Input or output artifact - */ +/** Input or output artifact */ // CHECKSTYLE:OFF -public class RTAExecutableArtifact +public class RTAExecutableArtifact // CHECKSTYLE:ON { @JsonProperty("name") @@ -58,111 +43,125 @@ public class RTAExecutableArtifact @JsonProperty("labels") private List labels = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAExecutableArtifact() { } - /** - * Set the name of this {@link RTAExecutableArtifact} instance and return the same instance. - * - * @param name Name of the signature argument - * @return The same instance of this {@link RTAExecutableArtifact} class - */ - @Nonnull public RTAExecutableArtifact name(@Nonnull final String name) { + protected RTAExecutableArtifact() {} + + /** + * Set the name of this {@link RTAExecutableArtifact} instance and return the same instance. + * + * @param name Name of the signature argument + * @return The same instance of this {@link RTAExecutableArtifact} class + */ + @Nonnull + public RTAExecutableArtifact name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the signature argument - * @return name The name of this {@link RTAExecutableArtifact} instance. - */ - @Nonnull public String getName() { + /** + * Name of the signature argument + * + * @return name The name of this {@link RTAExecutableArtifact} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAExecutableArtifact} instance. * - * @param name Name of the signature argument + * @param name Name of the signature argument */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link RTAExecutableArtifact} instance and return the same instance. - * - * @param description Description of the signature argument - * @return The same instance of this {@link RTAExecutableArtifact} class - */ - @Nonnull public RTAExecutableArtifact description(@Nonnull final String description) { + /** + * Set the description of this {@link RTAExecutableArtifact} instance and return the same + * instance. + * + * @param description Description of the signature argument + * @return The same instance of this {@link RTAExecutableArtifact} class + */ + @Nonnull + public RTAExecutableArtifact description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the signature argument - * @return description The description of this {@link RTAExecutableArtifact} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the signature argument + * + * @return description The description of this {@link RTAExecutableArtifact} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link RTAExecutableArtifact} instance. * - * @param description Description of the signature argument + * @param description Description of the signature argument */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the kind of this {@link RTAExecutableArtifact} instance and return the same instance. - * - * @param kind Kind of the artifact, i.e. model or dataset - * @return The same instance of this {@link RTAExecutableArtifact} class - */ - @Nonnull public RTAExecutableArtifact kind(@Nonnull final String kind) { + /** + * Set the kind of this {@link RTAExecutableArtifact} instance and return the same instance. + * + * @param kind Kind of the artifact, i.e. model or dataset + * @return The same instance of this {@link RTAExecutableArtifact} class + */ + @Nonnull + public RTAExecutableArtifact kind(@Nonnull final String kind) { this.kind = kind; return this; } - /** - * Kind of the artifact, i.e. model or dataset - * @return kind The kind of this {@link RTAExecutableArtifact} instance. - */ - @Nonnull public String getKind() { + /** + * Kind of the artifact, i.e. model or dataset + * + * @return kind The kind of this {@link RTAExecutableArtifact} instance. + */ + @Nonnull + public String getKind() { return kind; } /** * Set the kind of this {@link RTAExecutableArtifact} instance. * - * @param kind Kind of the artifact, i.e. model or dataset + * @param kind Kind of the artifact, i.e. model or dataset */ - public void setKind( @Nonnull final String kind) { + public void setKind(@Nonnull final String kind) { this.kind = kind; } - /** - * Set the labels of this {@link RTAExecutableArtifact} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link RTAExecutableArtifact} class - */ - @Nonnull public RTAExecutableArtifact labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link RTAExecutableArtifact} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link RTAExecutableArtifact} class + */ + @Nonnull + public RTAExecutableArtifact labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link RTAExecutableArtifact}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link RTAExecutableArtifact} */ - @Nonnull public RTAExecutableArtifact addLabelsItem( @Nonnull final RTAArtifactLabel labelsItem) { + @Nonnull + public RTAExecutableArtifact addLabelsItem(@Nonnull final RTAArtifactLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -170,25 +169,28 @@ public void setKind( @Nonnull final String kind) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link RTAExecutableArtifact} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link RTAExecutableArtifact} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link RTAExecutableArtifact} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } /** * Get the names of the unrecognizable properties of the {@link RTAExecutableArtifact}. + * * @return The set of properties names */ @JsonIgnore @@ -199,31 +201,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAExecutableArtifact} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAExecutableArtifact has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTAExecutableArtifact has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAExecutableArtifact} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAExecutableArtifact} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -233,11 +236,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAExecutableArtifact rtAExecutableArtifact = (RTAExecutableArtifact) o; - return Objects.equals(this.cloudSdkCustomFields, rtAExecutableArtifact.cloudSdkCustomFields) && - Objects.equals(this.name, rtAExecutableArtifact.name) && - Objects.equals(this.description, rtAExecutableArtifact.description) && - Objects.equals(this.kind, rtAExecutableArtifact.kind) && - Objects.equals(this.labels, rtAExecutableArtifact.labels); + return Objects.equals(this.cloudSdkCustomFields, rtAExecutableArtifact.cloudSdkCustomFields) + && Objects.equals(this.name, rtAExecutableArtifact.name) + && Objects.equals(this.description, rtAExecutableArtifact.description) + && Objects.equals(this.kind, rtAExecutableArtifact.kind) + && Objects.equals(this.labels, rtAExecutableArtifact.labels); } @Override @@ -246,21 +249,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAExecutableArtifact {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -269,24 +274,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableArtifact} instance with all required arguments. - */ - public static Builder create() { - return (name) -> new RTAExecutableArtifact().name(name); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link RTAExecutableArtifact} instance. - * - * @param name Name of the signature argument - * @return The RTAExecutableArtifact instance. - */ - RTAExecutableArtifact name( @Nonnull final String name); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableArtifact} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> new RTAExecutableArtifact().name(name); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the name of this {@link RTAExecutableArtifact} instance. + * + * @param name Name of the signature argument + * @return The RTAExecutableArtifact instance. + */ + RTAExecutableArtifact name(@Nonnull final String name); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java index a8d23622..fae3c863 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecutableParameter.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Argument of an executable - */ +/** Argument of an executable */ // CHECKSTYLE:OFF -public class RTAExecutableParameter +public class RTAExecutableParameter // CHECKSTYLE:ON { @JsonProperty("name") @@ -51,13 +40,9 @@ public class RTAExecutableParameter @JsonProperty("default") private String _default; - /** - * Type of the signature argument - */ + /** Type of the signature argument */ public enum TypeEnum { - /** - * The STRING option of this RTAExecutableParameter - */ + /** The STRING option of this RTAExecutableParameter */ STRING("string"); private String value; @@ -67,30 +52,36 @@ public enum TypeEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type RTAExecutableParameter - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type RTAExecutableParameter + */ @JsonCreator - @Nonnull public static TypeEnum fromValue(@Nonnull final String value) { + @Nonnull + public static TypeEnum fromValue(@Nonnull final String value) { for (TypeEnum b : TypeEnum.values()) { if (b.value.equals(value)) { return b; @@ -103,125 +94,139 @@ public enum TypeEnum { @JsonProperty("type") private TypeEnum type; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAExecutableParameter() { } - - /** - * Set the name of this {@link RTAExecutableParameter} instance and return the same instance. - * - * @param name Name of the signature argument - * @return The same instance of this {@link RTAExecutableParameter} class - */ - @Nonnull public RTAExecutableParameter name(@Nonnull final String name) { + + protected RTAExecutableParameter() {} + + /** + * Set the name of this {@link RTAExecutableParameter} instance and return the same instance. + * + * @param name Name of the signature argument + * @return The same instance of this {@link RTAExecutableParameter} class + */ + @Nonnull + public RTAExecutableParameter name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the signature argument - * @return name The name of this {@link RTAExecutableParameter} instance. - */ - @Nonnull public String getName() { + /** + * Name of the signature argument + * + * @return name The name of this {@link RTAExecutableParameter} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAExecutableParameter} instance. * - * @param name Name of the signature argument + * @param name Name of the signature argument */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link RTAExecutableParameter} instance and return the same instance. - * - * @param description Description of the signature argument - * @return The same instance of this {@link RTAExecutableParameter} class - */ - @Nonnull public RTAExecutableParameter description(@Nonnull final String description) { + /** + * Set the description of this {@link RTAExecutableParameter} instance and return the same + * instance. + * + * @param description Description of the signature argument + * @return The same instance of this {@link RTAExecutableParameter} class + */ + @Nonnull + public RTAExecutableParameter description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the signature argument - * @return description The description of this {@link RTAExecutableParameter} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the signature argument + * + * @return description The description of this {@link RTAExecutableParameter} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link RTAExecutableParameter} instance. * - * @param description Description of the signature argument + * @param description Description of the signature argument */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the _default of this {@link RTAExecutableParameter} instance and return the same instance. - * - * @param _default Default value of the signature argument - * @return The same instance of this {@link RTAExecutableParameter} class - */ - @Nonnull public RTAExecutableParameter _default(@Nonnull final String _default) { + /** + * Set the _default of this {@link RTAExecutableParameter} instance and return the same instance. + * + * @param _default Default value of the signature argument + * @return The same instance of this {@link RTAExecutableParameter} class + */ + @Nonnull + public RTAExecutableParameter _default(@Nonnull final String _default) { this._default = _default; return this; } - /** - * Default value of the signature argument - * @return _default The _default of this {@link RTAExecutableParameter} instance. - */ - @Nonnull public String getDefault() { + /** + * Default value of the signature argument + * + * @return _default The _default of this {@link RTAExecutableParameter} instance. + */ + @Nonnull + public String getDefault() { return _default; } /** * Set the _default of this {@link RTAExecutableParameter} instance. * - * @param _default Default value of the signature argument + * @param _default Default value of the signature argument */ - public void setDefault( @Nonnull final String _default) { + public void setDefault(@Nonnull final String _default) { this._default = _default; } - /** - * Set the type of this {@link RTAExecutableParameter} instance and return the same instance. - * - * @param type Type of the signature argument - * @return The same instance of this {@link RTAExecutableParameter} class - */ - @Nonnull public RTAExecutableParameter type(@Nonnull final TypeEnum type) { + /** + * Set the type of this {@link RTAExecutableParameter} instance and return the same instance. + * + * @param type Type of the signature argument + * @return The same instance of this {@link RTAExecutableParameter} class + */ + @Nonnull + public RTAExecutableParameter type(@Nonnull final TypeEnum type) { this.type = type; return this; } - /** - * Type of the signature argument - * @return type The type of this {@link RTAExecutableParameter} instance. - */ - @Nonnull public TypeEnum getType() { + /** + * Type of the signature argument + * + * @return type The type of this {@link RTAExecutableParameter} instance. + */ + @Nonnull + public TypeEnum getType() { return type; } /** * Set the type of this {@link RTAExecutableParameter} instance. * - * @param type Type of the signature argument + * @param type Type of the signature argument */ - public void setType( @Nonnull final TypeEnum type) { + public void setType(@Nonnull final TypeEnum type) { this.type = type; } /** * Get the names of the unrecognizable properties of the {@link RTAExecutableParameter}. + * * @return The set of properties names */ @JsonIgnore @@ -232,31 +237,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAExecutableParameter} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAExecutableParameter has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTAExecutableParameter has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAExecutableParameter} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAExecutableParameter} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -266,11 +272,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAExecutableParameter rtAExecutableParameter = (RTAExecutableParameter) o; - return Objects.equals(this.cloudSdkCustomFields, rtAExecutableParameter.cloudSdkCustomFields) && - Objects.equals(this.name, rtAExecutableParameter.name) && - Objects.equals(this.description, rtAExecutableParameter.description) && - Objects.equals(this._default, rtAExecutableParameter._default) && - Objects.equals(this.type, rtAExecutableParameter.type); + return Objects.equals(this.cloudSdkCustomFields, rtAExecutableParameter.cloudSdkCustomFields) + && Objects.equals(this.name, rtAExecutableParameter.name) + && Objects.equals(this.description, rtAExecutableParameter.description) + && Objects.equals(this._default, rtAExecutableParameter._default) + && Objects.equals(this.type, rtAExecutableParameter.type); } @Override @@ -279,21 +285,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAExecutableParameter {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -302,24 +310,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableParameter} instance with all required arguments. - */ - public static Builder create() { - return (name) -> new RTAExecutableParameter().name(name); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link RTAExecutableParameter} instance. - * - * @param name Name of the signature argument - * @return The RTAExecutableParameter instance. - */ - RTAExecutableParameter name( @Nonnull final String name); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecutableParameter} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> new RTAExecutableParameter().name(name); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the name of this {@link RTAExecutableParameter} instance. + * + * @param name Name of the signature argument + * @return The RTAExecutableParameter instance. + */ + RTAExecutableParameter name(@Nonnull final String name); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java index 0df3ddf3..25c9b44e 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAExecution.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Execution - */ +/** Execution */ // CHECKSTYLE:OFF -public class RTAExecution +public class RTAExecution // CHECKSTYLE:ON { @JsonProperty("scenarioId") @@ -52,43 +41,27 @@ public class RTAExecution @JsonProperty("id") private String id; - /** - * Status of the execution - */ + /** Status of the execution */ public enum StatusEnum { - /** - * The PENDING option of this RTAExecution - */ + /** The PENDING option of this RTAExecution */ PENDING("PENDING"), - - /** - * The RUNNING option of this RTAExecution - */ + + /** The RUNNING option of this RTAExecution */ RUNNING("RUNNING"), - - /** - * The COMPLETED option of this RTAExecution - */ + + /** The COMPLETED option of this RTAExecution */ COMPLETED("COMPLETED"), - - /** - * The DEAD option of this RTAExecution - */ + + /** The DEAD option of this RTAExecution */ DEAD("DEAD"), - - /** - * The STOPPING option of this RTAExecution - */ + + /** The STOPPING option of this RTAExecution */ STOPPING("STOPPING"), - - /** - * The STOPPED option of this RTAExecution - */ + + /** The STOPPED option of this RTAExecution */ STOPPED("STOPPED"), - - /** - * The UNKNOWN option of this RTAExecution - */ + + /** The UNKNOWN option of this RTAExecution */ UNKNOWN("UNKNOWN"); private String value; @@ -98,30 +71,36 @@ public enum StatusEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type RTAExecution - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type RTAExecution + */ @JsonCreator - @Nonnull public static StatusEnum fromValue(@Nonnull final String value) { + @Nonnull + public static StatusEnum fromValue(@Nonnull final String value) { for (StatusEnum b : StatusEnum.values()) { if (b.value.equals(value)) { return b; @@ -152,293 +131,324 @@ public enum StatusEnum { @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAExecution() { } - - /** - * Set the scenarioId of this {@link RTAExecution} instance and return the same instance. - * - * @param scenarioId ID of the scenario - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution scenarioId(@Nonnull final String scenarioId) { + + protected RTAExecution() {} + + /** + * Set the scenarioId of this {@link RTAExecution} instance and return the same instance. + * + * @param scenarioId ID of the scenario + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution scenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; return this; } - /** - * ID of the scenario - * @return scenarioId The scenarioId of this {@link RTAExecution} instance. - */ - @Nonnull public String getScenarioId() { + /** + * ID of the scenario + * + * @return scenarioId The scenarioId of this {@link RTAExecution} instance. + */ + @Nonnull + public String getScenarioId() { return scenarioId; } /** * Set the scenarioId of this {@link RTAExecution} instance. * - * @param scenarioId ID of the scenario + * @param scenarioId ID of the scenario */ - public void setScenarioId( @Nonnull final String scenarioId) { + public void setScenarioId(@Nonnull final String scenarioId) { this.scenarioId = scenarioId; } - /** - * Set the executableId of this {@link RTAExecution} instance and return the same instance. - * - * @param executableId ID of the executable - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution executableId(@Nonnull final String executableId) { + /** + * Set the executableId of this {@link RTAExecution} instance and return the same instance. + * + * @param executableId ID of the executable + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution executableId(@Nonnull final String executableId) { this.executableId = executableId; return this; } - /** - * ID of the executable - * @return executableId The executableId of this {@link RTAExecution} instance. - */ - @Nonnull public String getExecutableId() { + /** + * ID of the executable + * + * @return executableId The executableId of this {@link RTAExecution} instance. + */ + @Nonnull + public String getExecutableId() { return executableId; } /** * Set the executableId of this {@link RTAExecution} instance. * - * @param executableId ID of the executable + * @param executableId ID of the executable */ - public void setExecutableId( @Nonnull final String executableId) { + public void setExecutableId(@Nonnull final String executableId) { this.executableId = executableId; } - /** - * Set the id of this {@link RTAExecution} instance and return the same instance. - * - * @param id ID of the execution - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution id(@Nonnull final String id) { + /** + * Set the id of this {@link RTAExecution} instance and return the same instance. + * + * @param id ID of the execution + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the execution - * @return id The id of this {@link RTAExecution} instance. - */ - @Nonnull public String getId() { + /** + * ID of the execution + * + * @return id The id of this {@link RTAExecution} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link RTAExecution} instance. * - * @param id ID of the execution + * @param id ID of the execution */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the status of this {@link RTAExecution} instance and return the same instance. - * - * @param status Status of the execution - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution status(@Nonnull final StatusEnum status) { + /** + * Set the status of this {@link RTAExecution} instance and return the same instance. + * + * @param status Status of the execution + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution status(@Nonnull final StatusEnum status) { this.status = status; return this; } - /** - * Status of the execution - * @return status The status of this {@link RTAExecution} instance. - */ - @Nonnull public StatusEnum getStatus() { + /** + * Status of the execution + * + * @return status The status of this {@link RTAExecution} instance. + */ + @Nonnull + public StatusEnum getStatus() { return status; } /** * Set the status of this {@link RTAExecution} instance. * - * @param status Status of the execution + * @param status Status of the execution */ - public void setStatus( @Nonnull final StatusEnum status) { + public void setStatus(@Nonnull final StatusEnum status) { this.status = status; } - /** - * Set the statusMessage of this {@link RTAExecution} instance and return the same instance. - * - * @param statusMessage Execution status message - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution statusMessage(@Nonnull final String statusMessage) { + /** + * Set the statusMessage of this {@link RTAExecution} instance and return the same instance. + * + * @param statusMessage Execution status message + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution statusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; return this; } - /** - * Execution status message - * @return statusMessage The statusMessage of this {@link RTAExecution} instance. - */ - @Nonnull public String getStatusMessage() { + /** + * Execution status message + * + * @return statusMessage The statusMessage of this {@link RTAExecution} instance. + */ + @Nonnull + public String getStatusMessage() { return statusMessage; } /** * Set the statusMessage of this {@link RTAExecution} instance. * - * @param statusMessage Execution status message + * @param statusMessage Execution status message */ - public void setStatusMessage( @Nonnull final String statusMessage) { + public void setStatusMessage(@Nonnull final String statusMessage) { this.statusMessage = statusMessage; } - /** - * Set the submissionTimestamp of this {@link RTAExecution} instance and return the same instance. - * - * @param submissionTimestamp Timestamp of execution submission - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution submissionTimestamp(@Nonnull final OffsetDateTime submissionTimestamp) { + /** + * Set the submissionTimestamp of this {@link RTAExecution} instance and return the same instance. + * + * @param submissionTimestamp Timestamp of execution submission + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution submissionTimestamp(@Nonnull final OffsetDateTime submissionTimestamp) { this.submissionTimestamp = submissionTimestamp; return this; } - /** - * Timestamp of execution submission - * @return submissionTimestamp The submissionTimestamp of this {@link RTAExecution} instance. - */ - @Nonnull public OffsetDateTime getSubmissionTimestamp() { + /** + * Timestamp of execution submission + * + * @return submissionTimestamp The submissionTimestamp of this {@link RTAExecution} instance. + */ + @Nonnull + public OffsetDateTime getSubmissionTimestamp() { return submissionTimestamp; } /** * Set the submissionTimestamp of this {@link RTAExecution} instance. * - * @param submissionTimestamp Timestamp of execution submission + * @param submissionTimestamp Timestamp of execution submission */ - public void setSubmissionTimestamp( @Nonnull final OffsetDateTime submissionTimestamp) { + public void setSubmissionTimestamp(@Nonnull final OffsetDateTime submissionTimestamp) { this.submissionTimestamp = submissionTimestamp; } - /** - * Set the startTimestamp of this {@link RTAExecution} instance and return the same instance. - * - * @param startTimestamp Timestamp of execution start - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution startTimestamp(@Nonnull final OffsetDateTime startTimestamp) { + /** + * Set the startTimestamp of this {@link RTAExecution} instance and return the same instance. + * + * @param startTimestamp Timestamp of execution start + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution startTimestamp(@Nonnull final OffsetDateTime startTimestamp) { this.startTimestamp = startTimestamp; return this; } - /** - * Timestamp of execution start - * @return startTimestamp The startTimestamp of this {@link RTAExecution} instance. - */ - @Nonnull public OffsetDateTime getStartTimestamp() { + /** + * Timestamp of execution start + * + * @return startTimestamp The startTimestamp of this {@link RTAExecution} instance. + */ + @Nonnull + public OffsetDateTime getStartTimestamp() { return startTimestamp; } /** * Set the startTimestamp of this {@link RTAExecution} instance. * - * @param startTimestamp Timestamp of execution start + * @param startTimestamp Timestamp of execution start */ - public void setStartTimestamp( @Nonnull final OffsetDateTime startTimestamp) { + public void setStartTimestamp(@Nonnull final OffsetDateTime startTimestamp) { this.startTimestamp = startTimestamp; } - /** - * Set the finishTimestamp of this {@link RTAExecution} instance and return the same instance. - * - * @param finishTimestamp Timestamp of execution finish - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution finishTimestamp(@Nonnull final OffsetDateTime finishTimestamp) { + /** + * Set the finishTimestamp of this {@link RTAExecution} instance and return the same instance. + * + * @param finishTimestamp Timestamp of execution finish + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution finishTimestamp(@Nonnull final OffsetDateTime finishTimestamp) { this.finishTimestamp = finishTimestamp; return this; } - /** - * Timestamp of execution finish - * @return finishTimestamp The finishTimestamp of this {@link RTAExecution} instance. - */ - @Nonnull public OffsetDateTime getFinishTimestamp() { + /** + * Timestamp of execution finish + * + * @return finishTimestamp The finishTimestamp of this {@link RTAExecution} instance. + */ + @Nonnull + public OffsetDateTime getFinishTimestamp() { return finishTimestamp; } /** * Set the finishTimestamp of this {@link RTAExecution} instance. * - * @param finishTimestamp Timestamp of execution finish + * @param finishTimestamp Timestamp of execution finish */ - public void setFinishTimestamp( @Nonnull final OffsetDateTime finishTimestamp) { + public void setFinishTimestamp(@Nonnull final OffsetDateTime finishTimestamp) { this.finishTimestamp = finishTimestamp; } - /** - * Set the createdAt of this {@link RTAExecution} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link RTAExecution} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link RTAExecution} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link RTAExecution} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link RTAExecution} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link RTAExecution} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link RTAExecution} class - */ - @Nonnull public RTAExecution modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link RTAExecution} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link RTAExecution} class + */ + @Nonnull + public RTAExecution modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link RTAExecution} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link RTAExecution} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link RTAExecution} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link RTAExecution}. + * * @return The set of properties names */ @JsonIgnore @@ -449,31 +459,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAExecution} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAExecution has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAExecution has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAExecution} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAExecution} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -483,26 +493,38 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAExecution rtAExecution = (RTAExecution) o; - return Objects.equals(this.cloudSdkCustomFields, rtAExecution.cloudSdkCustomFields) && - Objects.equals(this.scenarioId, rtAExecution.scenarioId) && - Objects.equals(this.executableId, rtAExecution.executableId) && - Objects.equals(this.id, rtAExecution.id) && - Objects.equals(this.status, rtAExecution.status) && - Objects.equals(this.statusMessage, rtAExecution.statusMessage) && - Objects.equals(this.submissionTimestamp, rtAExecution.submissionTimestamp) && - Objects.equals(this.startTimestamp, rtAExecution.startTimestamp) && - Objects.equals(this.finishTimestamp, rtAExecution.finishTimestamp) && - Objects.equals(this.createdAt, rtAExecution.createdAt) && - Objects.equals(this.modifiedAt, rtAExecution.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, rtAExecution.cloudSdkCustomFields) + && Objects.equals(this.scenarioId, rtAExecution.scenarioId) + && Objects.equals(this.executableId, rtAExecution.executableId) + && Objects.equals(this.id, rtAExecution.id) + && Objects.equals(this.status, rtAExecution.status) + && Objects.equals(this.statusMessage, rtAExecution.statusMessage) + && Objects.equals(this.submissionTimestamp, rtAExecution.submissionTimestamp) + && Objects.equals(this.startTimestamp, rtAExecution.startTimestamp) + && Objects.equals(this.finishTimestamp, rtAExecution.finishTimestamp) + && Objects.equals(this.createdAt, rtAExecution.createdAt) + && Objects.equals(this.modifiedAt, rtAExecution.modifiedAt); } @Override public int hashCode() { - return Objects.hash(scenarioId, executableId, id, status, statusMessage, submissionTimestamp, startTimestamp, finishTimestamp, createdAt, modifiedAt, cloudSdkCustomFields); + return Objects.hash( + scenarioId, + executableId, + id, + status, + statusMessage, + submissionTimestamp, + startTimestamp, + finishTimestamp, + createdAt, + modifiedAt, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAExecution {\n"); sb.append(" scenarioId: ").append(toIndentedString(scenarioId)).append("\n"); @@ -510,19 +532,22 @@ public int hashCode() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); - sb.append(" submissionTimestamp: ").append(toIndentedString(submissionTimestamp)).append("\n"); + sb.append(" submissionTimestamp: ") + .append(toIndentedString(submissionTimestamp)) + .append("\n"); sb.append(" startTimestamp: ").append(toIndentedString(startTimestamp)).append("\n"); sb.append(" finishTimestamp: ").append(toIndentedString(finishTimestamp)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -531,60 +556,63 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecution} instance + * with all required arguments. + */ + public static Builder create() { + return (scenarioId) -> + (executableId) -> + (createdAt) -> + (modifiedAt) -> + new RTAExecution() + .scenarioId(scenarioId) + .executableId(executableId) + .createdAt(createdAt) + .modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAExecution} instance with all required arguments. - */ - public static Builder create() { - return (scenarioId) -> (executableId) -> (createdAt) -> (modifiedAt) -> new RTAExecution().scenarioId(scenarioId).executableId(executableId).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the scenarioId of this {@link RTAExecution} instance. - * - * @param scenarioId ID of the scenario - * @return The RTAExecution builder. - */ - Builder1 scenarioId( @Nonnull final String scenarioId); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executableId of this {@link RTAExecution} instance. - * - * @param executableId ID of the executable - * @return The RTAExecution builder. - */ - Builder2 executableId( @Nonnull final String executableId); - } + * Set the scenarioId of this {@link RTAExecution} instance. + * + * @param scenarioId ID of the scenario + * @return The RTAExecution builder. + */ + Builder1 scenarioId(@Nonnull final String scenarioId); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the createdAt of this {@link RTAExecution} instance. - * - * @param createdAt Timestamp of resource creation - * @return The RTAExecution builder. - */ - Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the executableId of this {@link RTAExecution} instance. + * + * @param executableId ID of the executable + * @return The RTAExecution builder. + */ + Builder2 executableId(@Nonnull final String executableId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the modifiedAt of this {@link RTAExecution} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The RTAExecution instance. - */ - RTAExecution modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link RTAExecution} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAExecution builder. + */ + Builder3 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link RTAExecution} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTAExecution instance. + */ + RTAExecution modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java index 5db7b8ec..4267c9f7 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAInputArtifactArgumentBinding.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Required for execution - */ +/** Required for execution */ // CHECKSTYLE:OFF -public class RTAInputArtifactArgumentBinding +public class RTAInputArtifactArgumentBinding // CHECKSTYLE:ON { @JsonProperty("name") @@ -51,97 +38,115 @@ public class RTAInputArtifactArgumentBinding @JsonProperty("signature") private String signature; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAInputArtifactArgumentBinding() { } - - /** - * Set the name of this {@link RTAInputArtifactArgumentBinding} instance and return the same instance. - * - * @param name The name of this {@link RTAInputArtifactArgumentBinding} - * @return The same instance of this {@link RTAInputArtifactArgumentBinding} class - */ - @Nonnull public RTAInputArtifactArgumentBinding name(@Nonnull final String name) { + + protected RTAInputArtifactArgumentBinding() {} + + /** + * Set the name of this {@link RTAInputArtifactArgumentBinding} instance and return the same + * instance. + * + * @param name The name of this {@link RTAInputArtifactArgumentBinding} + * @return The same instance of this {@link RTAInputArtifactArgumentBinding} class + */ + @Nonnull + public RTAInputArtifactArgumentBinding name(@Nonnull final String name) { this.name = name; return this; } - /** - * Get name - * @return name The name of this {@link RTAInputArtifactArgumentBinding} instance. - */ - @Nonnull public String getName() { + /** + * Get name + * + * @return name The name of this {@link RTAInputArtifactArgumentBinding} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAInputArtifactArgumentBinding} instance. * - * @param name The name of this {@link RTAInputArtifactArgumentBinding} + * @param name The name of this {@link RTAInputArtifactArgumentBinding} */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the url of this {@link RTAInputArtifactArgumentBinding} instance and return the same instance. - * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return The same instance of this {@link RTAInputArtifactArgumentBinding} class - */ - @Nonnull public RTAInputArtifactArgumentBinding url(@Nonnull final String url) { + /** + * Set the url of this {@link RTAInputArtifactArgumentBinding} instance and return the same + * instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in a + * secret called 'some_bucket-object_store_secret'. If not provided, a default will be + * assumed. + * @return The same instance of this {@link RTAInputArtifactArgumentBinding} class + */ + @Nonnull + public RTAInputArtifactArgumentBinding url(@Nonnull final String url) { this.url = url; return this; } - /** - * Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return url The url of this {@link RTAInputArtifactArgumentBinding} instance. - */ - @Nonnull public String getUrl() { + /** + * Reference to the location of the artifact. Note, the credentials will be found in a secret + * called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * + * @return url The url of this {@link RTAInputArtifactArgumentBinding} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link RTAInputArtifactArgumentBinding} instance. * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * @param url Reference to the location of the artifact. Note, the credentials will be found in a + * secret called 'some_bucket-object_store_secret'. If not provided, a default will be + * assumed. */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } - /** - * Set the signature of this {@link RTAInputArtifactArgumentBinding} instance and return the same instance. - * - * @param signature The signature of this {@link RTAInputArtifactArgumentBinding} - * @return The same instance of this {@link RTAInputArtifactArgumentBinding} class - */ - @Nonnull public RTAInputArtifactArgumentBinding signature(@Nonnull final String signature) { + /** + * Set the signature of this {@link RTAInputArtifactArgumentBinding} instance and return the same + * instance. + * + * @param signature The signature of this {@link RTAInputArtifactArgumentBinding} + * @return The same instance of this {@link RTAInputArtifactArgumentBinding} class + */ + @Nonnull + public RTAInputArtifactArgumentBinding signature(@Nonnull final String signature) { this.signature = signature; return this; } - /** - * Get signature - * @return signature The signature of this {@link RTAInputArtifactArgumentBinding} instance. - */ - @Nonnull public String getSignature() { + /** + * Get signature + * + * @return signature The signature of this {@link RTAInputArtifactArgumentBinding} instance. + */ + @Nonnull + public String getSignature() { return signature; } /** * Set the signature of this {@link RTAInputArtifactArgumentBinding} instance. * - * @param signature The signature of this {@link RTAInputArtifactArgumentBinding} + * @param signature The signature of this {@link RTAInputArtifactArgumentBinding} */ - public void setSignature( @Nonnull final String signature) { + public void setSignature(@Nonnull final String signature) { this.signature = signature; } /** * Get the names of the unrecognizable properties of the {@link RTAInputArtifactArgumentBinding}. + * * @return The set of properties names */ @JsonIgnore @@ -151,32 +156,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link RTAInputArtifactArgumentBinding} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link RTAInputArtifactArgumentBinding} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAInputArtifactArgumentBinding has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTAInputArtifactArgumentBinding has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAInputArtifactArgumentBinding} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAInputArtifactArgumentBinding} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -185,11 +193,13 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final RTAInputArtifactArgumentBinding rtAInputArtifactArgumentBinding = (RTAInputArtifactArgumentBinding) o; - return Objects.equals(this.cloudSdkCustomFields, rtAInputArtifactArgumentBinding.cloudSdkCustomFields) && - Objects.equals(this.name, rtAInputArtifactArgumentBinding.name) && - Objects.equals(this.url, rtAInputArtifactArgumentBinding.url) && - Objects.equals(this.signature, rtAInputArtifactArgumentBinding.signature); + final RTAInputArtifactArgumentBinding rtAInputArtifactArgumentBinding = + (RTAInputArtifactArgumentBinding) o; + return Objects.equals( + this.cloudSdkCustomFields, rtAInputArtifactArgumentBinding.cloudSdkCustomFields) + && Objects.equals(this.name, rtAInputArtifactArgumentBinding.name) + && Objects.equals(this.url, rtAInputArtifactArgumentBinding.url) + && Objects.equals(this.signature, rtAInputArtifactArgumentBinding.signature); } @Override @@ -198,20 +208,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAInputArtifactArgumentBinding {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,36 +232,35 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * RTAInputArtifactArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (name) -> (url) -> new RTAInputArtifactArgumentBinding().name(name).url(url); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAInputArtifactArgumentBinding} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (url) -> new RTAInputArtifactArgumentBinding().name(name).url(url); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link RTAInputArtifactArgumentBinding} instance. - * - * @param name The name of this {@link RTAInputArtifactArgumentBinding} - * @return The RTAInputArtifactArgumentBinding builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the url of this {@link RTAInputArtifactArgumentBinding} instance. - * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return The RTAInputArtifactArgumentBinding instance. - */ - RTAInputArtifactArgumentBinding url( @Nonnull final String url); - } + * Set the name of this {@link RTAInputArtifactArgumentBinding} instance. + * + * @param name The name of this {@link RTAInputArtifactArgumentBinding} + * @return The RTAInputArtifactArgumentBinding builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the url of this {@link RTAInputArtifactArgumentBinding} instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in + * a secret called 'some_bucket-object_store_secret'. If not provided, a default + * will be assumed. + * @return The RTAInputArtifactArgumentBinding instance. + */ + RTAInputArtifactArgumentBinding url(@Nonnull final String url); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java index ba47e965..2be9539a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTALabel - */ +/** RTALabel */ // CHECKSTYLE:OFF -public class RTALabel +public class RTALabel // CHECKSTYLE:ON { @JsonProperty("key") @@ -48,69 +35,76 @@ public class RTALabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTALabel() { } - - /** - * Set the key of this {@link RTALabel} instance and return the same instance. - * - * @param key The key of this {@link RTALabel} - * @return The same instance of this {@link RTALabel} class - */ - @Nonnull public RTALabel key(@Nonnull final String key) { + + protected RTALabel() {} + + /** + * Set the key of this {@link RTALabel} instance and return the same instance. + * + * @param key The key of this {@link RTALabel} + * @return The same instance of this {@link RTALabel} class + */ + @Nonnull + public RTALabel key(@Nonnull final String key) { this.key = key; return this; } - /** - * Get key - * @return key The key of this {@link RTALabel} instance. - */ - @Nonnull public String getKey() { + /** + * Get key + * + * @return key The key of this {@link RTALabel} instance. + */ + @Nonnull + public String getKey() { return key; } /** * Set the key of this {@link RTALabel} instance. * - * @param key The key of this {@link RTALabel} + * @param key The key of this {@link RTALabel} */ - public void setKey( @Nonnull final String key) { + public void setKey(@Nonnull final String key) { this.key = key; } - /** - * Set the value of this {@link RTALabel} instance and return the same instance. - * - * @param value The value of this {@link RTALabel} - * @return The same instance of this {@link RTALabel} class - */ - @Nonnull public RTALabel value(@Nonnull final String value) { + /** + * Set the value of this {@link RTALabel} instance and return the same instance. + * + * @param value The value of this {@link RTALabel} + * @return The same instance of this {@link RTALabel} class + */ + @Nonnull + public RTALabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Get value - * @return value The value of this {@link RTALabel} instance. - */ - @Nonnull public String getValue() { + /** + * Get value + * + * @return value The value of this {@link RTALabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link RTALabel} instance. * - * @param value The value of this {@link RTALabel} + * @param value The value of this {@link RTALabel} */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link RTALabel}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTALabel} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTALabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTALabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTALabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTALabel} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTALabel rtALabel = (RTALabel) o; - return Objects.equals(this.cloudSdkCustomFields, rtALabel.cloudSdkCustomFields) && - Objects.equals(this.key, rtALabel.key) && - Objects.equals(this.value, rtALabel.value); + return Objects.equals(this.cloudSdkCustomFields, rtALabel.cloudSdkCustomFields) + && Objects.equals(this.key, rtALabel.key) + && Objects.equals(this.value, rtALabel.value); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTALabel {\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTALabel} instance with + * all required arguments. + */ + public static Builder create() { + return (key) -> (value) -> new RTALabel().key(key).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTALabel} instance with all required arguments. - */ - public static Builder create() { - return (key) -> (value) -> new RTALabel().key(key).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the key of this {@link RTALabel} instance. - * - * @param key The key of this {@link RTALabel} - * @return The RTALabel builder. - */ - Builder1 key( @Nonnull final String key); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link RTALabel} instance. - * - * @param value The value of this {@link RTALabel} - * @return The RTALabel instance. - */ - RTALabel value( @Nonnull final String value); - } + * Set the key of this {@link RTALabel} instance. + * + * @param key The key of this {@link RTALabel} + * @return The RTALabel builder. + */ + Builder1 key(@Nonnull final String key); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link RTALabel} instance. + * + * @param value The value of this {@link RTALabel} + * @return The RTALabel instance. + */ + RTALabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java index dc8f1ce7..aab96252 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,53 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTALogCommonResultItem; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTALogCommonData - */ +/** RTALogCommonData */ // CHECKSTYLE:OFF -public class RTALogCommonData +public class RTALogCommonData // CHECKSTYLE:ON { @JsonProperty("result") private List result = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTALogCommonData() { } - - /** - * Set the result of this {@link RTALogCommonData} instance and return the same instance. - * - * @param result The result of this {@link RTALogCommonData} - * @return The same instance of this {@link RTALogCommonData} class - */ - @Nonnull public RTALogCommonData result(@Nonnull final List result) { + + protected RTALogCommonData() {} + + /** + * Set the result of this {@link RTALogCommonData} instance and return the same instance. + * + * @param result The result of this {@link RTALogCommonData} + * @return The same instance of this {@link RTALogCommonData} class + */ + @Nonnull + public RTALogCommonData result(@Nonnull final List result) { this.result = result; return this; } + /** * Add one result instance to this {@link RTALogCommonData}. + * * @param resultItem The result that should be added * @return The same instance of type {@link RTALogCommonData} */ - @Nonnull public RTALogCommonData addResultItem( @Nonnull final RTALogCommonResultItem resultItem) { + @Nonnull + public RTALogCommonData addResultItem(@Nonnull final RTALogCommonResultItem resultItem) { if (this.result == null) { this.result = new ArrayList<>(); } @@ -77,25 +66,28 @@ protected RTALogCommonData() { } return this; } - /** - * Get result - * @return result The result of this {@link RTALogCommonData} instance. - */ - @Nonnull public List getResult() { + /** + * Get result + * + * @return result The result of this {@link RTALogCommonData} instance. + */ + @Nonnull + public List getResult() { return result; } /** * Set the result of this {@link RTALogCommonData} instance. * - * @param result The result of this {@link RTALogCommonData} + * @param result The result of this {@link RTALogCommonData} */ - public void setResult( @Nonnull final List result) { + public void setResult(@Nonnull final List result) { this.result = result; } /** * Get the names of the unrecognizable properties of the {@link RTALogCommonData}. + * * @return The set of properties names */ @JsonIgnore @@ -106,31 +98,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTALogCommonData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTALogCommonData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTALogCommonData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTALogCommonData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTALogCommonData} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -140,8 +132,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTALogCommonData rtALogCommonData = (RTALogCommonData) o; - return Objects.equals(this.cloudSdkCustomFields, rtALogCommonData.cloudSdkCustomFields) && - Objects.equals(this.result, rtALogCommonData.result); + return Objects.equals(this.cloudSdkCustomFields, rtALogCommonData.cloudSdkCustomFields) + && Objects.equals(this.result, rtALogCommonData.result); } @Override @@ -150,18 +142,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTALogCommonData {\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,12 +164,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link RTALogCommonData} instance. No arguments are required. - */ - public static RTALogCommonData create() { - return new RTALogCommonData(); - } - + /** Create a new {@link RTALogCommonData} instance. No arguments are required. */ + public static RTALogCommonData create() { + return new RTALogCommonData(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java index 5dc7d62c..255f088d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,65 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTALogCommonData; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * A common log query response. - */ +/** A common log query response. */ // CHECKSTYLE:OFF -public class RTALogCommonResponse +public class RTALogCommonResponse // CHECKSTYLE:ON { @JsonProperty("data") private RTALogCommonData data; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTALogCommonResponse() { } - - /** - * Set the data of this {@link RTALogCommonResponse} instance and return the same instance. - * - * @param data The data of this {@link RTALogCommonResponse} - * @return The same instance of this {@link RTALogCommonResponse} class - */ - @Nonnull public RTALogCommonResponse data(@Nonnull final RTALogCommonData data) { + + protected RTALogCommonResponse() {} + + /** + * Set the data of this {@link RTALogCommonResponse} instance and return the same instance. + * + * @param data The data of this {@link RTALogCommonResponse} + * @return The same instance of this {@link RTALogCommonResponse} class + */ + @Nonnull + public RTALogCommonResponse data(@Nonnull final RTALogCommonData data) { this.data = data; return this; } - /** - * Get data - * @return data The data of this {@link RTALogCommonResponse} instance. - */ - @Nonnull public RTALogCommonData getData() { + /** + * Get data + * + * @return data The data of this {@link RTALogCommonResponse} instance. + */ + @Nonnull + public RTALogCommonData getData() { return data; } /** * Set the data of this {@link RTALogCommonResponse} instance. * - * @param data The data of this {@link RTALogCommonResponse} + * @param data The data of this {@link RTALogCommonResponse} */ - public void setData( @Nonnull final RTALogCommonData data) { + public void setData(@Nonnull final RTALogCommonData data) { this.data = data; } /** * Get the names of the unrecognizable properties of the {@link RTALogCommonResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +81,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTALogCommonResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTALogCommonResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTALogCommonResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTALogCommonResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTALogCommonResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +116,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTALogCommonResponse rtALogCommonResponse = (RTALogCommonResponse) o; - return Objects.equals(this.cloudSdkCustomFields, rtALogCommonResponse.cloudSdkCustomFields) && - Objects.equals(this.data, rtALogCommonResponse.data); + return Objects.equals(this.cloudSdkCustomFields, rtALogCommonResponse.cloudSdkCustomFields) + && Objects.equals(this.data, rtALogCommonResponse.data); } @Override @@ -135,18 +126,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTALogCommonResponse {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,12 +148,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link RTALogCommonResponse} instance. No arguments are required. - */ - public static RTALogCommonResponse create() { - return new RTALogCommonResponse(); - } - + /** Create a new {@link RTALogCommonResponse} instance. No arguments are required. */ + public static RTALogCommonResponse create() { + return new RTALogCommonResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java index 9027bda9..3e26ad98 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTALogCommonResultItem.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,22 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.time.OffsetDateTime; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Common log record. - */ +/** Common log record. */ // CHECKSTYLE:OFF -public class RTALogCommonResultItem +public class RTALogCommonResultItem // CHECKSTYLE:ON { @JsonProperty("timestamp") @@ -49,69 +36,76 @@ public class RTALogCommonResultItem @JsonProperty("msg") private String msg; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTALogCommonResultItem() { } - - /** - * Set the timestamp of this {@link RTALogCommonResultItem} instance and return the same instance. - * - * @param timestamp Datetime in RFC 3339. - * @return The same instance of this {@link RTALogCommonResultItem} class - */ - @Nonnull public RTALogCommonResultItem timestamp(@Nonnull final OffsetDateTime timestamp) { + + protected RTALogCommonResultItem() {} + + /** + * Set the timestamp of this {@link RTALogCommonResultItem} instance and return the same instance. + * + * @param timestamp Datetime in RFC 3339. + * @return The same instance of this {@link RTALogCommonResultItem} class + */ + @Nonnull + public RTALogCommonResultItem timestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; return this; } - /** - * Datetime in RFC 3339. - * @return timestamp The timestamp of this {@link RTALogCommonResultItem} instance. - */ - @Nonnull public OffsetDateTime getTimestamp() { + /** + * Datetime in RFC 3339. + * + * @return timestamp The timestamp of this {@link RTALogCommonResultItem} instance. + */ + @Nonnull + public OffsetDateTime getTimestamp() { return timestamp; } /** * Set the timestamp of this {@link RTALogCommonResultItem} instance. * - * @param timestamp Datetime in RFC 3339. + * @param timestamp Datetime in RFC 3339. */ - public void setTimestamp( @Nonnull final OffsetDateTime timestamp) { + public void setTimestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; } - /** - * Set the msg of this {@link RTALogCommonResultItem} instance and return the same instance. - * - * @param msg message content. - * @return The same instance of this {@link RTALogCommonResultItem} class - */ - @Nonnull public RTALogCommonResultItem msg(@Nonnull final String msg) { + /** + * Set the msg of this {@link RTALogCommonResultItem} instance and return the same instance. + * + * @param msg message content. + * @return The same instance of this {@link RTALogCommonResultItem} class + */ + @Nonnull + public RTALogCommonResultItem msg(@Nonnull final String msg) { this.msg = msg; return this; } - /** - * message content. - * @return msg The msg of this {@link RTALogCommonResultItem} instance. - */ - @Nonnull public String getMsg() { + /** + * message content. + * + * @return msg The msg of this {@link RTALogCommonResultItem} instance. + */ + @Nonnull + public String getMsg() { return msg; } /** * Set the msg of this {@link RTALogCommonResultItem} instance. * - * @param msg message content. + * @param msg message content. */ - public void setMsg( @Nonnull final String msg) { + public void setMsg(@Nonnull final String msg) { this.msg = msg; } /** * Get the names of the unrecognizable properties of the {@link RTALogCommonResultItem}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +116,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTALogCommonResultItem} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTALogCommonResultItem has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTALogCommonResultItem has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTALogCommonResultItem} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTALogCommonResultItem} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +151,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTALogCommonResultItem rtALogCommonResultItem = (RTALogCommonResultItem) o; - return Objects.equals(this.cloudSdkCustomFields, rtALogCommonResultItem.cloudSdkCustomFields) && - Objects.equals(this.timestamp, rtALogCommonResultItem.timestamp) && - Objects.equals(this.msg, rtALogCommonResultItem.msg); + return Objects.equals(this.cloudSdkCustomFields, rtALogCommonResultItem.cloudSdkCustomFields) + && Objects.equals(this.timestamp, rtALogCommonResultItem.timestamp) + && Objects.equals(this.msg, rtALogCommonResultItem.msg); } @Override @@ -167,19 +162,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTALogCommonResultItem {\n"); sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +185,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link RTALogCommonResultItem} instance. No arguments are required. - */ - public static RTALogCommonResultItem create() { - return new RTALogCommonResultItem(); - } - + /** Create a new {@link RTALogCommonResultItem} instance. No arguments are required. */ + public static RTALogCommonResultItem create() { + return new RTALogCommonResultItem(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java index d97a5c72..e1e9eadc 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelBaseData.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTAModelVersion; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * RTAModelBaseData - */ +/** RTAModelBaseData */ // CHECKSTYLE:OFF -public class RTAModelBaseData +public class RTAModelBaseData // CHECKSTYLE:ON { @JsonProperty("model") @@ -58,111 +44,124 @@ public class RTAModelBaseData @JsonProperty("versions") private List versions = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAModelBaseData() { } - - /** - * Set the model of this {@link RTAModelBaseData} instance and return the same instance. - * - * @param model Name of the model - * @return The same instance of this {@link RTAModelBaseData} class - */ - @Nonnull public RTAModelBaseData model(@Nonnull final String model) { + + protected RTAModelBaseData() {} + + /** + * Set the model of this {@link RTAModelBaseData} instance and return the same instance. + * + * @param model Name of the model + * @return The same instance of this {@link RTAModelBaseData} class + */ + @Nonnull + public RTAModelBaseData model(@Nonnull final String model) { this.model = model; return this; } - /** - * Name of the model - * @return model The model of this {@link RTAModelBaseData} instance. - */ - @Nonnull public String getModel() { + /** + * Name of the model + * + * @return model The model of this {@link RTAModelBaseData} instance. + */ + @Nonnull + public String getModel() { return model; } /** * Set the model of this {@link RTAModelBaseData} instance. * - * @param model Name of the model + * @param model Name of the model */ - public void setModel( @Nonnull final String model) { + public void setModel(@Nonnull final String model) { this.model = model; } - /** - * Set the executableId of this {@link RTAModelBaseData} instance and return the same instance. - * - * @param executableId ID of the executable - * @return The same instance of this {@link RTAModelBaseData} class - */ - @Nonnull public RTAModelBaseData executableId(@Nonnull final String executableId) { + /** + * Set the executableId of this {@link RTAModelBaseData} instance and return the same instance. + * + * @param executableId ID of the executable + * @return The same instance of this {@link RTAModelBaseData} class + */ + @Nonnull + public RTAModelBaseData executableId(@Nonnull final String executableId) { this.executableId = executableId; return this; } - /** - * ID of the executable - * @return executableId The executableId of this {@link RTAModelBaseData} instance. - */ - @Nonnull public String getExecutableId() { + /** + * ID of the executable + * + * @return executableId The executableId of this {@link RTAModelBaseData} instance. + */ + @Nonnull + public String getExecutableId() { return executableId; } /** * Set the executableId of this {@link RTAModelBaseData} instance. * - * @param executableId ID of the executable + * @param executableId ID of the executable */ - public void setExecutableId( @Nonnull final String executableId) { + public void setExecutableId(@Nonnull final String executableId) { this.executableId = executableId; } - /** - * Set the description of this {@link RTAModelBaseData} instance and return the same instance. - * - * @param description Description of the model and its capabilities - * @return The same instance of this {@link RTAModelBaseData} class - */ - @Nonnull public RTAModelBaseData description(@Nonnull final String description) { + /** + * Set the description of this {@link RTAModelBaseData} instance and return the same instance. + * + * @param description Description of the model and its capabilities + * @return The same instance of this {@link RTAModelBaseData} class + */ + @Nonnull + public RTAModelBaseData description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the model and its capabilities - * @return description The description of this {@link RTAModelBaseData} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the model and its capabilities + * + * @return description The description of this {@link RTAModelBaseData} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link RTAModelBaseData} instance. * - * @param description Description of the model and its capabilities + * @param description Description of the model and its capabilities */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the versions of this {@link RTAModelBaseData} instance and return the same instance. - * - * @param versions List of model versions that the model object has - * @return The same instance of this {@link RTAModelBaseData} class - */ - @Nonnull public RTAModelBaseData versions(@Nonnull final List versions) { + /** + * Set the versions of this {@link RTAModelBaseData} instance and return the same instance. + * + * @param versions List of model versions that the model object has + * @return The same instance of this {@link RTAModelBaseData} class + */ + @Nonnull + public RTAModelBaseData versions(@Nonnull final List versions) { this.versions = versions; return this; } + /** * Add one versions instance to this {@link RTAModelBaseData}. + * * @param versionsItem The versions that should be added * @return The same instance of type {@link RTAModelBaseData} */ - @Nonnull public RTAModelBaseData addVersionsItem( @Nonnull final RTAModelVersion versionsItem) { + @Nonnull + public RTAModelBaseData addVersionsItem(@Nonnull final RTAModelVersion versionsItem) { if (this.versions == null) { this.versions = new ArrayList<>(); } @@ -170,25 +169,28 @@ public void setDescription( @Nonnull final String description) { return this; } - /** - * List of model versions that the model object has - * @return versions The versions of this {@link RTAModelBaseData} instance. - */ - @Nonnull public List getVersions() { + /** + * List of model versions that the model object has + * + * @return versions The versions of this {@link RTAModelBaseData} instance. + */ + @Nonnull + public List getVersions() { return versions; } /** * Set the versions of this {@link RTAModelBaseData} instance. * - * @param versions List of model versions that the model object has + * @param versions List of model versions that the model object has */ - public void setVersions( @Nonnull final List versions) { + public void setVersions(@Nonnull final List versions) { this.versions = versions; } /** * Get the names of the unrecognizable properties of the {@link RTAModelBaseData}. + * * @return The set of properties names */ @JsonIgnore @@ -199,31 +201,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAModelBaseData} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAModelBaseData has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAModelBaseData has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAModelBaseData} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAModelBaseData} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -233,11 +235,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAModelBaseData rtAModelBaseData = (RTAModelBaseData) o; - return Objects.equals(this.cloudSdkCustomFields, rtAModelBaseData.cloudSdkCustomFields) && - Objects.equals(this.model, rtAModelBaseData.model) && - Objects.equals(this.executableId, rtAModelBaseData.executableId) && - Objects.equals(this.description, rtAModelBaseData.description) && - Objects.equals(this.versions, rtAModelBaseData.versions); + return Objects.equals(this.cloudSdkCustomFields, rtAModelBaseData.cloudSdkCustomFields) + && Objects.equals(this.model, rtAModelBaseData.model) + && Objects.equals(this.executableId, rtAModelBaseData.executableId) + && Objects.equals(this.description, rtAModelBaseData.description) + && Objects.equals(this.versions, rtAModelBaseData.versions); } @Override @@ -246,21 +248,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAModelBaseData {\n"); sb.append(" model: ").append(toIndentedString(model)).append("\n"); sb.append(" executableId: ").append(toIndentedString(executableId)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -269,69 +273,73 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAModelBaseData} + * instance with all required arguments. + */ + public static Builder create() { + return (model) -> + (executableId) -> + (description) -> + (versions) -> + new RTAModelBaseData() + .model(model) + .executableId(executableId) + .description(description) + .versions(versions); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAModelBaseData} instance with all required arguments. - */ - public static Builder create() { - return (model) -> (executableId) -> (description) -> (versions) -> new RTAModelBaseData().model(model).executableId(executableId).description(description).versions(versions); - } + * Set the model of this {@link RTAModelBaseData} instance. + * + * @param model Name of the model + * @return The RTAModelBaseData builder. + */ + Builder1 model(@Nonnull final String model); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the model of this {@link RTAModelBaseData} instance. - * - * @param model Name of the model - * @return The RTAModelBaseData builder. - */ - Builder1 model( @Nonnull final String model); - } + * Set the executableId of this {@link RTAModelBaseData} instance. + * + * @param executableId ID of the executable + * @return The RTAModelBaseData builder. + */ + Builder2 executableId(@Nonnull final String executableId); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the executableId of this {@link RTAModelBaseData} instance. - * - * @param executableId ID of the executable - * @return The RTAModelBaseData builder. - */ - Builder2 executableId( @Nonnull final String executableId); - } + * Set the description of this {@link RTAModelBaseData} instance. + * + * @param description Description of the model and its capabilities + * @return The RTAModelBaseData builder. + */ + Builder3 description(@Nonnull final String description); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the description of this {@link RTAModelBaseData} instance. - * - * @param description Description of the model and its capabilities - * @return The RTAModelBaseData builder. - */ - Builder3 description( @Nonnull final String description); - } + * Set the versions of this {@link RTAModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The RTAModelBaseData instance. + */ + RTAModelBaseData versions(@Nonnull final List versions); + /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the versions of this {@link RTAModelBaseData} instance. - * - * @param versions List of model versions that the model object has - * @return The RTAModelBaseData instance. - */ - RTAModelBaseData versions( @Nonnull final List versions); - /** - * Set the versions of this {@link RTAModelBaseData} instance. - * - * @param versions List of model versions that the model object has - * @return The RTAModelBaseData instance. - */ - default RTAModelBaseData versions( @Nonnull final RTAModelVersion... versions) { - return versions(Arrays.asList(versions)); - } + * Set the versions of this {@link RTAModelBaseData} instance. + * + * @param versions List of model versions that the model object has + * @return The RTAModelBaseData instance. + */ + default RTAModelBaseData versions(@Nonnull final RTAModelVersion... versions) { + return versions(Arrays.asList(versions)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java index 9aaa388a..4633459c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAModelVersion.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Model version information including whether it is latest version - */ +/** Model version information including whether it is latest version */ // CHECKSTYLE:OFF -public class RTAModelVersion +public class RTAModelVersion // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,69 +35,76 @@ public class RTAModelVersion @JsonProperty("isLatest") private Boolean isLatest; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAModelVersion() { } - - /** - * Set the name of this {@link RTAModelVersion} instance and return the same instance. - * - * @param name Name of model version - * @return The same instance of this {@link RTAModelVersion} class - */ - @Nonnull public RTAModelVersion name(@Nonnull final String name) { + + protected RTAModelVersion() {} + + /** + * Set the name of this {@link RTAModelVersion} instance and return the same instance. + * + * @param name Name of model version + * @return The same instance of this {@link RTAModelVersion} class + */ + @Nonnull + public RTAModelVersion name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of model version - * @return name The name of this {@link RTAModelVersion} instance. - */ - @Nonnull public String getName() { + /** + * Name of model version + * + * @return name The name of this {@link RTAModelVersion} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAModelVersion} instance. * - * @param name Name of model version + * @param name Name of model version */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the isLatest of this {@link RTAModelVersion} instance and return the same instance. - * - * @param isLatest Displays whether it is the latest version offered for the model - * @return The same instance of this {@link RTAModelVersion} class - */ - @Nonnull public RTAModelVersion isLatest(@Nonnull final Boolean isLatest) { + /** + * Set the isLatest of this {@link RTAModelVersion} instance and return the same instance. + * + * @param isLatest Displays whether it is the latest version offered for the model + * @return The same instance of this {@link RTAModelVersion} class + */ + @Nonnull + public RTAModelVersion isLatest(@Nonnull final Boolean isLatest) { this.isLatest = isLatest; return this; } - /** - * Displays whether it is the latest version offered for the model - * @return isLatest The isLatest of this {@link RTAModelVersion} instance. - */ - @Nonnull public Boolean isIsLatest() { + /** + * Displays whether it is the latest version offered for the model + * + * @return isLatest The isLatest of this {@link RTAModelVersion} instance. + */ + @Nonnull + public Boolean isIsLatest() { return isLatest; } /** * Set the isLatest of this {@link RTAModelVersion} instance. * - * @param isLatest Displays whether it is the latest version offered for the model + * @param isLatest Displays whether it is the latest version offered for the model */ - public void setIsLatest( @Nonnull final Boolean isLatest) { + public void setIsLatest(@Nonnull final Boolean isLatest) { this.isLatest = isLatest; } /** * Get the names of the unrecognizable properties of the {@link RTAModelVersion}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAModelVersion} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAModelVersion has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAModelVersion has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAModelVersion} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAModelVersion} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAModelVersion rtAModelVersion = (RTAModelVersion) o; - return Objects.equals(this.cloudSdkCustomFields, rtAModelVersion.cloudSdkCustomFields) && - Objects.equals(this.name, rtAModelVersion.name) && - Objects.equals(this.isLatest, rtAModelVersion.isLatest); + return Objects.equals(this.cloudSdkCustomFields, rtAModelVersion.cloudSdkCustomFields) + && Objects.equals(this.name, rtAModelVersion.name) + && Objects.equals(this.isLatest, rtAModelVersion.isLatest); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAModelVersion {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" isLatest: ").append(toIndentedString(isLatest)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAModelVersion} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> (isLatest) -> new RTAModelVersion().name(name).isLatest(isLatest); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAModelVersion} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (isLatest) -> new RTAModelVersion().name(name).isLatest(isLatest); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link RTAModelVersion} instance. - * - * @param name Name of model version - * @return The RTAModelVersion builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the isLatest of this {@link RTAModelVersion} instance. - * - * @param isLatest Displays whether it is the latest version offered for the model - * @return The RTAModelVersion instance. - */ - RTAModelVersion isLatest( @Nonnull final Boolean isLatest); - } + * Set the name of this {@link RTAModelVersion} instance. + * + * @param name Name of model version + * @return The RTAModelVersion builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the isLatest of this {@link RTAModelVersion} instance. + * + * @param isLatest Displays whether it is the latest version offered for the model + * @return The RTAModelVersion instance. + */ + RTAModelVersion isLatest(@Nonnull final Boolean isLatest); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java index bc36b64f..952e6f72 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAOutputArtifactArgumentBinding.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Result of execution - */ +/** Result of execution */ // CHECKSTYLE:OFF -public class RTAOutputArtifactArgumentBinding +public class RTAOutputArtifactArgumentBinding // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,69 +35,83 @@ public class RTAOutputArtifactArgumentBinding @JsonProperty("url") private String url; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAOutputArtifactArgumentBinding() { } - - /** - * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance and return the same instance. - * - * @param name The name of this {@link RTAOutputArtifactArgumentBinding} - * @return The same instance of this {@link RTAOutputArtifactArgumentBinding} class - */ - @Nonnull public RTAOutputArtifactArgumentBinding name(@Nonnull final String name) { + + protected RTAOutputArtifactArgumentBinding() {} + + /** + * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance and return the same + * instance. + * + * @param name The name of this {@link RTAOutputArtifactArgumentBinding} + * @return The same instance of this {@link RTAOutputArtifactArgumentBinding} class + */ + @Nonnull + public RTAOutputArtifactArgumentBinding name(@Nonnull final String name) { this.name = name; return this; } - /** - * Get name - * @return name The name of this {@link RTAOutputArtifactArgumentBinding} instance. - */ - @Nonnull public String getName() { + /** + * Get name + * + * @return name The name of this {@link RTAOutputArtifactArgumentBinding} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance. * - * @param name The name of this {@link RTAOutputArtifactArgumentBinding} + * @param name The name of this {@link RTAOutputArtifactArgumentBinding} */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the url of this {@link RTAOutputArtifactArgumentBinding} instance and return the same instance. - * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return The same instance of this {@link RTAOutputArtifactArgumentBinding} class - */ - @Nonnull public RTAOutputArtifactArgumentBinding url(@Nonnull final String url) { + /** + * Set the url of this {@link RTAOutputArtifactArgumentBinding} instance and return the same + * instance. + * + * @param url Reference to the location of the artifact. Note, the credentials will be found in a + * secret called 'some_bucket-object_store_secret'. If not provided, a default will be + * assumed. + * @return The same instance of this {@link RTAOutputArtifactArgumentBinding} class + */ + @Nonnull + public RTAOutputArtifactArgumentBinding url(@Nonnull final String url) { this.url = url; return this; } - /** - * Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. - * @return url The url of this {@link RTAOutputArtifactArgumentBinding} instance. - */ - @Nonnull public String getUrl() { + /** + * Reference to the location of the artifact. Note, the credentials will be found in a secret + * called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * + * @return url The url of this {@link RTAOutputArtifactArgumentBinding} instance. + */ + @Nonnull + public String getUrl() { return url; } /** * Set the url of this {@link RTAOutputArtifactArgumentBinding} instance. * - * @param url Reference to the location of the artifact. Note, the credentials will be found in a secret called 'some_bucket-object_store_secret'. If not provided, a default will be assumed. + * @param url Reference to the location of the artifact. Note, the credentials will be found in a + * secret called 'some_bucket-object_store_secret'. If not provided, a default will be + * assumed. */ - public void setUrl( @Nonnull final String url) { + public void setUrl(@Nonnull final String url) { this.url = url; } /** * Get the names of the unrecognizable properties of the {@link RTAOutputArtifactArgumentBinding}. + * * @return The set of properties names */ @JsonIgnore @@ -120,32 +121,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link RTAOutputArtifactArgumentBinding} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link RTAOutputArtifactArgumentBinding} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAOutputArtifactArgumentBinding has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "RTAOutputArtifactArgumentBinding has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAOutputArtifactArgumentBinding} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAOutputArtifactArgumentBinding} instance. If + * the map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -154,10 +158,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final RTAOutputArtifactArgumentBinding rtAOutputArtifactArgumentBinding = (RTAOutputArtifactArgumentBinding) o; - return Objects.equals(this.cloudSdkCustomFields, rtAOutputArtifactArgumentBinding.cloudSdkCustomFields) && - Objects.equals(this.name, rtAOutputArtifactArgumentBinding.name) && - Objects.equals(this.url, rtAOutputArtifactArgumentBinding.url); + final RTAOutputArtifactArgumentBinding rtAOutputArtifactArgumentBinding = + (RTAOutputArtifactArgumentBinding) o; + return Objects.equals( + this.cloudSdkCustomFields, rtAOutputArtifactArgumentBinding.cloudSdkCustomFields) + && Objects.equals(this.name, rtAOutputArtifactArgumentBinding.name) + && Objects.equals(this.url, rtAOutputArtifactArgumentBinding.url); } @Override @@ -166,19 +172,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAOutputArtifactArgumentBinding {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,24 +195,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAOutputArtifactArgumentBinding} instance with all required arguments. - */ - public static Builder create() { - return (name) -> new RTAOutputArtifactArgumentBinding().name(name); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance. - * - * @param name The name of this {@link RTAOutputArtifactArgumentBinding} - * @return The RTAOutputArtifactArgumentBinding instance. - */ - RTAOutputArtifactArgumentBinding name( @Nonnull final String name); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * RTAOutputArtifactArgumentBinding} instance with all required arguments. + */ + public static Builder create() { + return (name) -> new RTAOutputArtifactArgumentBinding().name(name); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the name of this {@link RTAOutputArtifactArgumentBinding} instance. + * + * @param name The name of this {@link RTAOutputArtifactArgumentBinding} + * @return The RTAOutputArtifactArgumentBinding instance. + */ + RTAOutputArtifactArgumentBinding name(@Nonnull final String name); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java index c5caf211..40cea20b 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/RTAScenario.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.time.OffsetDateTime; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.RTALabel; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Entity having labels - */ +/** Entity having labels */ // CHECKSTYLE:OFF -public class RTAScenario +public class RTAScenario // CHECKSTYLE:ON { @JsonProperty("id") @@ -65,111 +50,124 @@ public class RTAScenario @JsonProperty("modifiedAt") private OffsetDateTime modifiedAt; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected RTAScenario() { } - - /** - * Set the id of this {@link RTAScenario} instance and return the same instance. - * - * @param id ID of the scenario - * @return The same instance of this {@link RTAScenario} class - */ - @Nonnull public RTAScenario id(@Nonnull final String id) { + + protected RTAScenario() {} + + /** + * Set the id of this {@link RTAScenario} instance and return the same instance. + * + * @param id ID of the scenario + * @return The same instance of this {@link RTAScenario} class + */ + @Nonnull + public RTAScenario id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the scenario - * @return id The id of this {@link RTAScenario} instance. - */ - @Nonnull public String getId() { + /** + * ID of the scenario + * + * @return id The id of this {@link RTAScenario} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link RTAScenario} instance. * - * @param id ID of the scenario + * @param id ID of the scenario */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the name of this {@link RTAScenario} instance and return the same instance. - * - * @param name Name of the scenario - * @return The same instance of this {@link RTAScenario} class - */ - @Nonnull public RTAScenario name(@Nonnull final String name) { + /** + * Set the name of this {@link RTAScenario} instance and return the same instance. + * + * @param name Name of the scenario + * @return The same instance of this {@link RTAScenario} class + */ + @Nonnull + public RTAScenario name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the scenario - * @return name The name of this {@link RTAScenario} instance. - */ - @Nonnull public String getName() { + /** + * Name of the scenario + * + * @return name The name of this {@link RTAScenario} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link RTAScenario} instance. * - * @param name Name of the scenario + * @param name Name of the scenario */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the description of this {@link RTAScenario} instance and return the same instance. - * - * @param description Description of the scenario - * @return The same instance of this {@link RTAScenario} class - */ - @Nonnull public RTAScenario description(@Nonnull final String description) { + /** + * Set the description of this {@link RTAScenario} instance and return the same instance. + * + * @param description Description of the scenario + * @return The same instance of this {@link RTAScenario} class + */ + @Nonnull + public RTAScenario description(@Nonnull final String description) { this.description = description; return this; } - /** - * Description of the scenario - * @return description The description of this {@link RTAScenario} instance. - */ - @Nonnull public String getDescription() { + /** + * Description of the scenario + * + * @return description The description of this {@link RTAScenario} instance. + */ + @Nonnull + public String getDescription() { return description; } /** * Set the description of this {@link RTAScenario} instance. * - * @param description Description of the scenario + * @param description Description of the scenario */ - public void setDescription( @Nonnull final String description) { + public void setDescription(@Nonnull final String description) { this.description = description; } - /** - * Set the labels of this {@link RTAScenario} instance and return the same instance. - * - * @param labels Arbitrary labels as meta information - * @return The same instance of this {@link RTAScenario} class - */ - @Nonnull public RTAScenario labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link RTAScenario} instance and return the same instance. + * + * @param labels Arbitrary labels as meta information + * @return The same instance of this {@link RTAScenario} class + */ + @Nonnull + public RTAScenario labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link RTAScenario}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link RTAScenario} */ - @Nonnull public RTAScenario addLabelsItem( @Nonnull final RTALabel labelsItem) { + @Nonnull + public RTAScenario addLabelsItem(@Nonnull final RTALabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -177,81 +175,90 @@ public void setDescription( @Nonnull final String description) { return this; } - /** - * Arbitrary labels as meta information - * @return labels The labels of this {@link RTAScenario} instance. - */ - @Nonnull public List getLabels() { + /** + * Arbitrary labels as meta information + * + * @return labels The labels of this {@link RTAScenario} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link RTAScenario} instance. * - * @param labels Arbitrary labels as meta information + * @param labels Arbitrary labels as meta information */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } - /** - * Set the createdAt of this {@link RTAScenario} instance and return the same instance. - * - * @param createdAt Timestamp of resource creation - * @return The same instance of this {@link RTAScenario} class - */ - @Nonnull public RTAScenario createdAt(@Nonnull final OffsetDateTime createdAt) { + /** + * Set the createdAt of this {@link RTAScenario} instance and return the same instance. + * + * @param createdAt Timestamp of resource creation + * @return The same instance of this {@link RTAScenario} class + */ + @Nonnull + public RTAScenario createdAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; return this; } - /** - * Timestamp of resource creation - * @return createdAt The createdAt of this {@link RTAScenario} instance. - */ - @Nonnull public OffsetDateTime getCreatedAt() { + /** + * Timestamp of resource creation + * + * @return createdAt The createdAt of this {@link RTAScenario} instance. + */ + @Nonnull + public OffsetDateTime getCreatedAt() { return createdAt; } /** * Set the createdAt of this {@link RTAScenario} instance. * - * @param createdAt Timestamp of resource creation + * @param createdAt Timestamp of resource creation */ - public void setCreatedAt( @Nonnull final OffsetDateTime createdAt) { + public void setCreatedAt(@Nonnull final OffsetDateTime createdAt) { this.createdAt = createdAt; } - /** - * Set the modifiedAt of this {@link RTAScenario} instance and return the same instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The same instance of this {@link RTAScenario} class - */ - @Nonnull public RTAScenario modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { + /** + * Set the modifiedAt of this {@link RTAScenario} instance and return the same instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The same instance of this {@link RTAScenario} class + */ + @Nonnull + public RTAScenario modifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; return this; } - /** - * Timestamp of latest resource modification - * @return modifiedAt The modifiedAt of this {@link RTAScenario} instance. - */ - @Nonnull public OffsetDateTime getModifiedAt() { + /** + * Timestamp of latest resource modification + * + * @return modifiedAt The modifiedAt of this {@link RTAScenario} instance. + */ + @Nonnull + public OffsetDateTime getModifiedAt() { return modifiedAt; } /** * Set the modifiedAt of this {@link RTAScenario} instance. * - * @param modifiedAt Timestamp of latest resource modification + * @param modifiedAt Timestamp of latest resource modification */ - public void setModifiedAt( @Nonnull final OffsetDateTime modifiedAt) { + public void setModifiedAt(@Nonnull final OffsetDateTime modifiedAt) { this.modifiedAt = modifiedAt; } /** * Get the names of the unrecognizable properties of the {@link RTAScenario}. + * * @return The set of properties names */ @JsonIgnore @@ -262,31 +269,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link RTAScenario} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("RTAScenario has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("RTAScenario has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link RTAScenario} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link RTAScenario} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -296,13 +303,13 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final RTAScenario rtAScenario = (RTAScenario) o; - return Objects.equals(this.cloudSdkCustomFields, rtAScenario.cloudSdkCustomFields) && - Objects.equals(this.id, rtAScenario.id) && - Objects.equals(this.name, rtAScenario.name) && - Objects.equals(this.description, rtAScenario.description) && - Objects.equals(this.labels, rtAScenario.labels) && - Objects.equals(this.createdAt, rtAScenario.createdAt) && - Objects.equals(this.modifiedAt, rtAScenario.modifiedAt); + return Objects.equals(this.cloudSdkCustomFields, rtAScenario.cloudSdkCustomFields) + && Objects.equals(this.id, rtAScenario.id) + && Objects.equals(this.name, rtAScenario.name) + && Objects.equals(this.description, rtAScenario.description) + && Objects.equals(this.labels, rtAScenario.labels) + && Objects.equals(this.createdAt, rtAScenario.createdAt) + && Objects.equals(this.modifiedAt, rtAScenario.modifiedAt); } @Override @@ -311,7 +318,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class RTAScenario {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -320,14 +328,15 @@ public int hashCode() { sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -336,60 +345,59 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link RTAScenario} instance + * with all required arguments. + */ + public static Builder create() { + return (id) -> + (name) -> + (createdAt) -> + (modifiedAt) -> + new RTAScenario().id(id).name(name).createdAt(createdAt).modifiedAt(modifiedAt); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link RTAScenario} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (name) -> (createdAt) -> (modifiedAt) -> new RTAScenario().id(id).name(name).createdAt(createdAt).modifiedAt(modifiedAt); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link RTAScenario} instance. - * - * @param id ID of the scenario - * @return The RTAScenario builder. - */ - Builder1 id( @Nonnull final String id); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the name of this {@link RTAScenario} instance. - * - * @param name Name of the scenario - * @return The RTAScenario builder. - */ - Builder2 name( @Nonnull final String name); - } + * Set the id of this {@link RTAScenario} instance. + * + * @param id ID of the scenario + * @return The RTAScenario builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the createdAt of this {@link RTAScenario} instance. - * - * @param createdAt Timestamp of resource creation - * @return The RTAScenario builder. - */ - Builder3 createdAt( @Nonnull final OffsetDateTime createdAt); - } + * Set the name of this {@link RTAScenario} instance. + * + * @param name Name of the scenario + * @return The RTAScenario builder. + */ + Builder2 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the modifiedAt of this {@link RTAScenario} instance. - * - * @param modifiedAt Timestamp of latest resource modification - * @return The RTAScenario instance. - */ - RTAScenario modifiedAt( @Nonnull final OffsetDateTime modifiedAt); - } + * Set the createdAt of this {@link RTAScenario} instance. + * + * @param createdAt Timestamp of resource creation + * @return The RTAScenario builder. + */ + Builder3 createdAt(@Nonnull final OffsetDateTime createdAt); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the modifiedAt of this {@link RTAScenario} instance. + * + * @param modifiedAt Timestamp of latest resource modification + * @return The RTAScenario instance. + */ + RTAScenario modifiedAt(@Nonnull final OffsetDateTime modifiedAt); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java index 63cacf0b..ac00604c 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckApiError.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckDetailsErrorResponse; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * TrckApiError - */ +/** TrckApiError */ // CHECKSTYLE:OFF -public class TrckApiError +public class TrckApiError // CHECKSTYLE:ON { @JsonProperty("code") @@ -61,139 +46,155 @@ public class TrckApiError @JsonProperty("details") private List details = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckApiError() { } - - /** - * Set the code of this {@link TrckApiError} instance and return the same instance. - * - * @param code Descriptive error code (not http status code). - * @return The same instance of this {@link TrckApiError} class - */ - @Nonnull public TrckApiError code(@Nonnull final String code) { + + protected TrckApiError() {} + + /** + * Set the code of this {@link TrckApiError} instance and return the same instance. + * + * @param code Descriptive error code (not http status code). + * @return The same instance of this {@link TrckApiError} class + */ + @Nonnull + public TrckApiError code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code). - * @return code The code of this {@link TrckApiError} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code). + * + * @return code The code of this {@link TrckApiError} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link TrckApiError} instance. * - * @param code Descriptive error code (not http status code). + * @param code Descriptive error code (not http status code). */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link TrckApiError} instance and return the same instance. - * - * @param message plaintext error description - * @return The same instance of this {@link TrckApiError} class - */ - @Nonnull public TrckApiError message(@Nonnull final String message) { + /** + * Set the message of this {@link TrckApiError} instance and return the same instance. + * + * @param message plaintext error description + * @return The same instance of this {@link TrckApiError} class + */ + @Nonnull + public TrckApiError message(@Nonnull final String message) { this.message = message; return this; } - /** - * plaintext error description - * @return message The message of this {@link TrckApiError} instance. - */ - @Nonnull public String getMessage() { + /** + * plaintext error description + * + * @return message The message of this {@link TrckApiError} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link TrckApiError} instance. * - * @param message plaintext error description + * @param message plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the requestId of this {@link TrckApiError} instance and return the same instance. - * - * @param requestId id of individual request - * @return The same instance of this {@link TrckApiError} class - */ - @Nonnull public TrckApiError requestId(@Nonnull final String requestId) { + /** + * Set the requestId of this {@link TrckApiError} instance and return the same instance. + * + * @param requestId id of individual request + * @return The same instance of this {@link TrckApiError} class + */ + @Nonnull + public TrckApiError requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * id of individual request - * @return requestId The requestId of this {@link TrckApiError} instance. - */ - @Nonnull public String getRequestId() { + /** + * id of individual request + * + * @return requestId The requestId of this {@link TrckApiError} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link TrckApiError} instance. * - * @param requestId id of individual request + * @param requestId id of individual request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the target of this {@link TrckApiError} instance and return the same instance. - * - * @param target url that has been called - * @return The same instance of this {@link TrckApiError} class - */ - @Nonnull public TrckApiError target(@Nonnull final String target) { + /** + * Set the target of this {@link TrckApiError} instance and return the same instance. + * + * @param target url that has been called + * @return The same instance of this {@link TrckApiError} class + */ + @Nonnull + public TrckApiError target(@Nonnull final String target) { this.target = target; return this; } - /** - * url that has been called - * @return target The target of this {@link TrckApiError} instance. - */ - @Nonnull public String getTarget() { + /** + * url that has been called + * + * @return target The target of this {@link TrckApiError} instance. + */ + @Nonnull + public String getTarget() { return target; } /** * Set the target of this {@link TrckApiError} instance. * - * @param target url that has been called + * @param target url that has been called */ - public void setTarget( @Nonnull final String target) { + public void setTarget(@Nonnull final String target) { this.target = target; } - /** - * Set the details of this {@link TrckApiError} instance and return the same instance. - * - * @param details The details of this {@link TrckApiError} - * @return The same instance of this {@link TrckApiError} class - */ - @Nonnull public TrckApiError details(@Nonnull final List details) { + /** + * Set the details of this {@link TrckApiError} instance and return the same instance. + * + * @param details The details of this {@link TrckApiError} + * @return The same instance of this {@link TrckApiError} class + */ + @Nonnull + public TrckApiError details(@Nonnull final List details) { this.details = details; return this; } + /** * Add one details instance to this {@link TrckApiError}. + * * @param detailsItem The details that should be added * @return The same instance of type {@link TrckApiError} */ - @Nonnull public TrckApiError addDetailsItem( @Nonnull final TrckDetailsErrorResponse detailsItem) { + @Nonnull + public TrckApiError addDetailsItem(@Nonnull final TrckDetailsErrorResponse detailsItem) { if (this.details == null) { this.details = new ArrayList<>(); } @@ -201,25 +202,28 @@ public void setTarget( @Nonnull final String target) { return this; } - /** - * Get details - * @return details The details of this {@link TrckApiError} instance. - */ - @Nonnull public List getDetails() { + /** + * Get details + * + * @return details The details of this {@link TrckApiError} instance. + */ + @Nonnull + public List getDetails() { return details; } /** * Set the details of this {@link TrckApiError} instance. * - * @param details The details of this {@link TrckApiError} + * @param details The details of this {@link TrckApiError} */ - public void setDetails( @Nonnull final List details) { + public void setDetails(@Nonnull final List details) { this.details = details; } /** * Get the names of the unrecognizable properties of the {@link TrckApiError}. + * * @return The set of properties names */ @JsonIgnore @@ -230,31 +234,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckApiError} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckApiError has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckApiError has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckApiError} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckApiError} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -264,12 +268,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckApiError trckApiError = (TrckApiError) o; - return Objects.equals(this.cloudSdkCustomFields, trckApiError.cloudSdkCustomFields) && - Objects.equals(this.code, trckApiError.code) && - Objects.equals(this.message, trckApiError.message) && - Objects.equals(this.requestId, trckApiError.requestId) && - Objects.equals(this.target, trckApiError.target) && - Objects.equals(this.details, trckApiError.details); + return Objects.equals(this.cloudSdkCustomFields, trckApiError.cloudSdkCustomFields) + && Objects.equals(this.code, trckApiError.code) + && Objects.equals(this.message, trckApiError.message) + && Objects.equals(this.requestId, trckApiError.requestId) + && Objects.equals(this.target, trckApiError.target) + && Objects.equals(this.details, trckApiError.details); } @Override @@ -278,7 +282,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckApiError {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); @@ -286,14 +291,15 @@ public int hashCode() { sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -302,36 +308,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckApiError} instance + * with all required arguments. + */ + public static Builder create() { + return (code) -> (message) -> new TrckApiError().code(code).message(message); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckApiError} instance with all required arguments. - */ - public static Builder create() { - return (code) -> (message) -> new TrckApiError().code(code).message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the code of this {@link TrckApiError} instance. - * - * @param code Descriptive error code (not http status code). - * @return The TrckApiError builder. - */ - Builder1 code( @Nonnull final String code); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link TrckApiError} instance. - * - * @param message plaintext error description - * @return The TrckApiError instance. - */ - TrckApiError message( @Nonnull final String message); - } + * Set the code of this {@link TrckApiError} instance. + * + * @param code Descriptive error code (not http status code). + * @return The TrckApiError builder. + */ + Builder1 code(@Nonnull final String code); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the message of this {@link TrckApiError} instance. + * + * @param message plaintext error description + * @return The TrckApiError instance. + */ + TrckApiError message(@Nonnull final String message); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java index f962bf5b..e8d1c130 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckCustomInfoObject.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,24 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckTagName; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * large object which provides rendering/semantic information regarding certain metric for consuming application or can be complex metrics in JSON format + * large object which provides rendering/semantic information regarding certain metric for consuming + * application or can be complex metrics in JSON format */ // CHECKSTYLE:OFF -public class TrckCustomInfoObject +public class TrckCustomInfoObject // CHECKSTYLE:ON { @JsonProperty("name") @@ -49,69 +38,76 @@ public class TrckCustomInfoObject @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckCustomInfoObject() { } - - /** - * Set the name of this {@link TrckCustomInfoObject} instance and return the same instance. - * - * @param name The name of this {@link TrckCustomInfoObject} - * @return The same instance of this {@link TrckCustomInfoObject} class - */ - @Nonnull public TrckCustomInfoObject name(@Nonnull final TrckTagName name) { + + protected TrckCustomInfoObject() {} + + /** + * Set the name of this {@link TrckCustomInfoObject} instance and return the same instance. + * + * @param name The name of this {@link TrckCustomInfoObject} + * @return The same instance of this {@link TrckCustomInfoObject} class + */ + @Nonnull + public TrckCustomInfoObject name(@Nonnull final TrckTagName name) { this.name = name; return this; } - /** - * Get name - * @return name The name of this {@link TrckCustomInfoObject} instance. - */ - @Nonnull public TrckTagName getName() { + /** + * Get name + * + * @return name The name of this {@link TrckCustomInfoObject} instance. + */ + @Nonnull + public TrckTagName getName() { return name; } /** * Set the name of this {@link TrckCustomInfoObject} instance. * - * @param name The name of this {@link TrckCustomInfoObject} + * @param name The name of this {@link TrckCustomInfoObject} */ - public void setName( @Nonnull final TrckTagName name) { + public void setName(@Nonnull final TrckTagName name) { this.name = name; } - /** - * Set the value of this {@link TrckCustomInfoObject} instance and return the same instance. - * - * @param value Message - * @return The same instance of this {@link TrckCustomInfoObject} class - */ - @Nonnull public TrckCustomInfoObject value(@Nonnull final String value) { + /** + * Set the value of this {@link TrckCustomInfoObject} instance and return the same instance. + * + * @param value Message + * @return The same instance of this {@link TrckCustomInfoObject} class + */ + @Nonnull + public TrckCustomInfoObject value(@Nonnull final String value) { this.value = value; return this; } - /** - * Message - * @return value The value of this {@link TrckCustomInfoObject} instance. - */ - @Nonnull public String getValue() { + /** + * Message + * + * @return value The value of this {@link TrckCustomInfoObject} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link TrckCustomInfoObject} instance. * - * @param value Message + * @param value Message */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link TrckCustomInfoObject}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +118,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckCustomInfoObject} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckCustomInfoObject has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "TrckCustomInfoObject has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckCustomInfoObject} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckCustomInfoObject} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +153,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckCustomInfoObject trckCustomInfoObject = (TrckCustomInfoObject) o; - return Objects.equals(this.cloudSdkCustomFields, trckCustomInfoObject.cloudSdkCustomFields) && - Objects.equals(this.name, trckCustomInfoObject.name) && - Objects.equals(this.value, trckCustomInfoObject.value); + return Objects.equals(this.cloudSdkCustomFields, trckCustomInfoObject.cloudSdkCustomFields) + && Objects.equals(this.name, trckCustomInfoObject.name) + && Objects.equals(this.value, trckCustomInfoObject.value); } @Override @@ -167,19 +164,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckCustomInfoObject {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,36 +187,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckCustomInfoObject} + * instance with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckCustomInfoObject().name(name).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckCustomInfoObject} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (value) -> new TrckCustomInfoObject().name(name).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link TrckCustomInfoObject} instance. - * - * @param name The name of this {@link TrckCustomInfoObject} - * @return The TrckCustomInfoObject builder. - */ - Builder1 name( @Nonnull final TrckTagName name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link TrckCustomInfoObject} instance. - * - * @param value Message - * @return The TrckCustomInfoObject instance. - */ - TrckCustomInfoObject value( @Nonnull final String value); - } + * Set the name of this {@link TrckCustomInfoObject} instance. + * + * @param name The name of this {@link TrckCustomInfoObject} + * @return The TrckCustomInfoObject builder. + */ + Builder1 name(@Nonnull final TrckTagName name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link TrckCustomInfoObject} instance. + * + * @param value Message + * @return The TrckCustomInfoObject instance. + */ + TrckCustomInfoObject value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java index bf10a353..27b48157 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDeleteMetricsResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckExecutionId; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * TrckDeleteMetricsResponse - */ +/** TrckDeleteMetricsResponse */ // CHECKSTYLE:OFF -public class TrckDeleteMetricsResponse +public class TrckDeleteMetricsResponse // CHECKSTYLE:ON { @JsonProperty("id") @@ -49,69 +35,77 @@ public class TrckDeleteMetricsResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckDeleteMetricsResponse() { } - - /** - * Set the id of this {@link TrckDeleteMetricsResponse} instance and return the same instance. - * - * @param id The id of this {@link TrckDeleteMetricsResponse} - * @return The same instance of this {@link TrckDeleteMetricsResponse} class - */ - @Nonnull public TrckDeleteMetricsResponse id(@Nonnull final TrckExecutionId id) { + + protected TrckDeleteMetricsResponse() {} + + /** + * Set the id of this {@link TrckDeleteMetricsResponse} instance and return the same instance. + * + * @param id The id of this {@link TrckDeleteMetricsResponse} + * @return The same instance of this {@link TrckDeleteMetricsResponse} class + */ + @Nonnull + public TrckDeleteMetricsResponse id(@Nonnull final TrckExecutionId id) { this.id = id; return this; } - /** - * Get id - * @return id The id of this {@link TrckDeleteMetricsResponse} instance. - */ - @Nonnull public TrckExecutionId getId() { + /** + * Get id + * + * @return id The id of this {@link TrckDeleteMetricsResponse} instance. + */ + @Nonnull + public TrckExecutionId getId() { return id; } /** * Set the id of this {@link TrckDeleteMetricsResponse} instance. * - * @param id The id of this {@link TrckDeleteMetricsResponse} + * @param id The id of this {@link TrckDeleteMetricsResponse} */ - public void setId( @Nonnull final TrckExecutionId id) { + public void setId(@Nonnull final TrckExecutionId id) { this.id = id; } - /** - * Set the message of this {@link TrckDeleteMetricsResponse} instance and return the same instance. - * - * @param message The message of this {@link TrckDeleteMetricsResponse} - * @return The same instance of this {@link TrckDeleteMetricsResponse} class - */ - @Nonnull public TrckDeleteMetricsResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link TrckDeleteMetricsResponse} instance and return the same + * instance. + * + * @param message The message of this {@link TrckDeleteMetricsResponse} + * @return The same instance of this {@link TrckDeleteMetricsResponse} class + */ + @Nonnull + public TrckDeleteMetricsResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Get message - * @return message The message of this {@link TrckDeleteMetricsResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Get message + * + * @return message The message of this {@link TrckDeleteMetricsResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link TrckDeleteMetricsResponse} instance. * - * @param message The message of this {@link TrckDeleteMetricsResponse} + * @param message The message of this {@link TrckDeleteMetricsResponse} */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link TrckDeleteMetricsResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +116,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckDeleteMetricsResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckDeleteMetricsResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "TrckDeleteMetricsResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckDeleteMetricsResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckDeleteMetricsResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +151,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckDeleteMetricsResponse trckDeleteMetricsResponse = (TrckDeleteMetricsResponse) o; - return Objects.equals(this.cloudSdkCustomFields, trckDeleteMetricsResponse.cloudSdkCustomFields) && - Objects.equals(this.id, trckDeleteMetricsResponse.id) && - Objects.equals(this.message, trckDeleteMetricsResponse.message); + return Objects.equals(this.cloudSdkCustomFields, trckDeleteMetricsResponse.cloudSdkCustomFields) + && Objects.equals(this.id, trckDeleteMetricsResponse.id) + && Objects.equals(this.message, trckDeleteMetricsResponse.message); } @Override @@ -167,19 +162,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckDeleteMetricsResponse {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +185,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link TrckDeleteMetricsResponse} instance. No arguments are required. - */ - public static TrckDeleteMetricsResponse create() { - return new TrckDeleteMetricsResponse(); - } - + /** Create a new {@link TrckDeleteMetricsResponse} instance. No arguments are required. */ + public static TrckDeleteMetricsResponse create() { + return new TrckDeleteMetricsResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java index e4fbd568..32c946f3 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckDetailsErrorResponse.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * TrckDetailsErrorResponse - */ +/** TrckDetailsErrorResponse */ // CHECKSTYLE:OFF -public class TrckDetailsErrorResponse +public class TrckDetailsErrorResponse // CHECKSTYLE:ON { @JsonProperty("code") @@ -48,69 +35,76 @@ public class TrckDetailsErrorResponse @JsonProperty("message") private String message; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckDetailsErrorResponse() { } - - /** - * Set the code of this {@link TrckDetailsErrorResponse} instance and return the same instance. - * - * @param code Descriptive error code (not http status code) - * @return The same instance of this {@link TrckDetailsErrorResponse} class - */ - @Nonnull public TrckDetailsErrorResponse code(@Nonnull final String code) { + + protected TrckDetailsErrorResponse() {} + + /** + * Set the code of this {@link TrckDetailsErrorResponse} instance and return the same instance. + * + * @param code Descriptive error code (not http status code) + * @return The same instance of this {@link TrckDetailsErrorResponse} class + */ + @Nonnull + public TrckDetailsErrorResponse code(@Nonnull final String code) { this.code = code; return this; } - /** - * Descriptive error code (not http status code) - * @return code The code of this {@link TrckDetailsErrorResponse} instance. - */ - @Nonnull public String getCode() { + /** + * Descriptive error code (not http status code) + * + * @return code The code of this {@link TrckDetailsErrorResponse} instance. + */ + @Nonnull + public String getCode() { return code; } /** * Set the code of this {@link TrckDetailsErrorResponse} instance. * - * @param code Descriptive error code (not http status code) + * @param code Descriptive error code (not http status code) */ - public void setCode( @Nonnull final String code) { + public void setCode(@Nonnull final String code) { this.code = code; } - /** - * Set the message of this {@link TrckDetailsErrorResponse} instance and return the same instance. - * - * @param message Plaintext error description - * @return The same instance of this {@link TrckDetailsErrorResponse} class - */ - @Nonnull public TrckDetailsErrorResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link TrckDetailsErrorResponse} instance and return the same instance. + * + * @param message Plaintext error description + * @return The same instance of this {@link TrckDetailsErrorResponse} class + */ + @Nonnull + public TrckDetailsErrorResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Plaintext error description - * @return message The message of this {@link TrckDetailsErrorResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Plaintext error description + * + * @return message The message of this {@link TrckDetailsErrorResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link TrckDetailsErrorResponse} instance. * - * @param message Plaintext error description + * @param message Plaintext error description */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } /** * Get the names of the unrecognizable properties of the {@link TrckDetailsErrorResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckDetailsErrorResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckDetailsErrorResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "TrckDetailsErrorResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckDetailsErrorResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckDetailsErrorResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckDetailsErrorResponse trckDetailsErrorResponse = (TrckDetailsErrorResponse) o; - return Objects.equals(this.cloudSdkCustomFields, trckDetailsErrorResponse.cloudSdkCustomFields) && - Objects.equals(this.code, trckDetailsErrorResponse.code) && - Objects.equals(this.message, trckDetailsErrorResponse.message); + return Objects.equals(this.cloudSdkCustomFields, trckDetailsErrorResponse.cloudSdkCustomFields) + && Objects.equals(this.code, trckDetailsErrorResponse.code) + && Objects.equals(this.message, trckDetailsErrorResponse.message); } @Override @@ -166,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckDetailsErrorResponse {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,12 +184,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link TrckDetailsErrorResponse} instance. No arguments are required. - */ - public static TrckDetailsErrorResponse create() { - return new TrckDetailsErrorResponse(); - } - + /** Create a new {@link TrckDetailsErrorResponse} instance. No arguments are required. */ + public static TrckDetailsErrorResponse create() { + return new TrckDetailsErrorResponse(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java index a6f4429f..64156095 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckExecutionId.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,30 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * ID of the deployment/execution - */ +/** ID of the deployment/execution */ // CHECKSTYLE:OFF -public class TrckExecutionId +public class TrckExecutionId // CHECKSTYLE:ON { - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckExecutionId() { } + + protected TrckExecutionId() {} /** * Get the names of the unrecognizable properties of the {@link TrckExecutionId}. + * * @return The set of properties names */ @JsonIgnore @@ -54,31 +46,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckExecutionId} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckExecutionId has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckExecutionId has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckExecutionId} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckExecutionId} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -97,17 +89,19 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckExecutionId {\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -116,12 +110,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link TrckExecutionId} instance. No arguments are required. - */ - public static TrckExecutionId create() { - return new TrckExecutionId(); - } - + /** Create a new {@link TrckExecutionId} instance. No arguments are required. */ + public static TrckExecutionId create() { + return new TrckExecutionId(); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java index 675a71bf..0c5a4cd5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetric.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,28 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckLabel; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Key-value metrics, where the value is numeric. Metric can also have optional step and label fields. + * Key-value metrics, where the value is numeric. Metric can also have optional step and label + * fields. */ // CHECKSTYLE:OFF -public class TrckGetMetric +public class TrckGetMetric // CHECKSTYLE:ON { @JsonProperty("name") @@ -63,142 +51,158 @@ public class TrckGetMetric @JsonProperty("labels") private List labels = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckGetMetric() { } - - /** - * Set the name of this {@link TrckGetMetric} instance and return the same instance. - * - * @param name Name of the metric - * @return The same instance of this {@link TrckGetMetric} class - */ - @Nonnull public TrckGetMetric name(@Nonnull final String name) { + + protected TrckGetMetric() {} + + /** + * Set the name of this {@link TrckGetMetric} instance and return the same instance. + * + * @param name Name of the metric + * @return The same instance of this {@link TrckGetMetric} class + */ + @Nonnull + public TrckGetMetric name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the metric - * @return name The name of this {@link TrckGetMetric} instance. - */ - @Nonnull public String getName() { + /** + * Name of the metric + * + * @return name The name of this {@link TrckGetMetric} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link TrckGetMetric} instance. * - * @param name Name of the metric + * @param name Name of the metric */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the value of this {@link TrckGetMetric} instance and return the same instance. - * - * @param value Numeric Value of the metric - * @return The same instance of this {@link TrckGetMetric} class - */ - @Nonnull public TrckGetMetric value(@Nonnull final BigDecimal value) { + /** + * Set the value of this {@link TrckGetMetric} instance and return the same instance. + * + * @param value Numeric Value of the metric + * @return The same instance of this {@link TrckGetMetric} class + */ + @Nonnull + public TrckGetMetric value(@Nonnull final BigDecimal value) { this.value = value; return this; } - /** - * Numeric Value of the metric - * @return value The value of this {@link TrckGetMetric} instance. - */ - @Nonnull public BigDecimal getValue() { + /** + * Numeric Value of the metric + * + * @return value The value of this {@link TrckGetMetric} instance. + */ + @Nonnull + public BigDecimal getValue() { return value; } /** * Set the value of this {@link TrckGetMetric} instance. * - * @param value Numeric Value of the metric + * @param value Numeric Value of the metric */ - public void setValue( @Nonnull final BigDecimal value) { + public void setValue(@Nonnull final BigDecimal value) { this.value = value; } - /** - * Set the timestamp of this {@link TrckGetMetric} instance and return the same instance. - * - * @param timestamp Time when the metric was created or logged in RFC3339 format - * @return The same instance of this {@link TrckGetMetric} class - */ - @Nonnull public TrckGetMetric timestamp(@Nonnull final OffsetDateTime timestamp) { + /** + * Set the timestamp of this {@link TrckGetMetric} instance and return the same instance. + * + * @param timestamp Time when the metric was created or logged in RFC3339 format + * @return The same instance of this {@link TrckGetMetric} class + */ + @Nonnull + public TrckGetMetric timestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; return this; } - /** - * Time when the metric was created or logged in RFC3339 format - * @return timestamp The timestamp of this {@link TrckGetMetric} instance. - */ - @Nonnull public OffsetDateTime getTimestamp() { + /** + * Time when the metric was created or logged in RFC3339 format + * + * @return timestamp The timestamp of this {@link TrckGetMetric} instance. + */ + @Nonnull + public OffsetDateTime getTimestamp() { return timestamp; } /** * Set the timestamp of this {@link TrckGetMetric} instance. * - * @param timestamp Time when the metric was created or logged in RFC3339 format + * @param timestamp Time when the metric was created or logged in RFC3339 format */ - public void setTimestamp( @Nonnull final OffsetDateTime timestamp) { + public void setTimestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; } - /** - * Set the step of this {@link TrckGetMetric} instance and return the same instance. - * - * @param step step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric - * Minimum: 0 - * @return The same instance of this {@link TrckGetMetric} class - */ - @Nonnull public TrckGetMetric step(@Nonnull final Integer step) { + /** + * Set the step of this {@link TrckGetMetric} instance and return the same instance. + * + * @param step step is an optional integer that represents any measurement of training progress + * (number of training iterations, number of epochs, and so on) for the metric Minimum: 0 + * @return The same instance of this {@link TrckGetMetric} class + */ + @Nonnull + public TrckGetMetric step(@Nonnull final Integer step) { this.step = step; return this; } - /** - * step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric - * minimum: 0 - * @return step The step of this {@link TrckGetMetric} instance. - */ - @Nonnull public Integer getStep() { + /** + * step is an optional integer that represents any measurement of training progress (number of + * training iterations, number of epochs, and so on) for the metric minimum: 0 + * + * @return step The step of this {@link TrckGetMetric} instance. + */ + @Nonnull + public Integer getStep() { return step; } /** * Set the step of this {@link TrckGetMetric} instance. * - * @param step step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric - * Minimum: 0 + * @param step step is an optional integer that represents any measurement of training progress + * (number of training iterations, number of epochs, and so on) for the metric Minimum: 0 */ - public void setStep( @Nonnull final Integer step) { + public void setStep(@Nonnull final Integer step) { this.step = step; } - /** - * Set the labels of this {@link TrckGetMetric} instance and return the same instance. - * - * @param labels a list of name-value object pairs associated with some metric. - * @return The same instance of this {@link TrckGetMetric} class - */ - @Nonnull public TrckGetMetric labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link TrckGetMetric} instance and return the same instance. + * + * @param labels a list of name-value object pairs associated with some metric. + * @return The same instance of this {@link TrckGetMetric} class + */ + @Nonnull + public TrckGetMetric labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link TrckGetMetric}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link TrckGetMetric} */ - @Nonnull public TrckGetMetric addLabelsItem( @Nonnull final TrckLabel labelsItem) { + @Nonnull + public TrckGetMetric addLabelsItem(@Nonnull final TrckLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -206,25 +210,28 @@ public void setStep( @Nonnull final Integer step) { return this; } - /** - * a list of name-value object pairs associated with some metric. - * @return labels The labels of this {@link TrckGetMetric} instance. - */ - @Nonnull public List getLabels() { + /** + * a list of name-value object pairs associated with some metric. + * + * @return labels The labels of this {@link TrckGetMetric} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link TrckGetMetric} instance. * - * @param labels a list of name-value object pairs associated with some metric. + * @param labels a list of name-value object pairs associated with some metric. */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } /** * Get the names of the unrecognizable properties of the {@link TrckGetMetric}. + * * @return The set of properties names */ @JsonIgnore @@ -235,31 +242,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckGetMetric} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckGetMetric has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckGetMetric has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckGetMetric} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckGetMetric} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -269,12 +276,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckGetMetric trckGetMetric = (TrckGetMetric) o; - return Objects.equals(this.cloudSdkCustomFields, trckGetMetric.cloudSdkCustomFields) && - Objects.equals(this.name, trckGetMetric.name) && - Objects.equals(this.value, trckGetMetric.value) && - Objects.equals(this.timestamp, trckGetMetric.timestamp) && - Objects.equals(this.step, trckGetMetric.step) && - Objects.equals(this.labels, trckGetMetric.labels); + return Objects.equals(this.cloudSdkCustomFields, trckGetMetric.cloudSdkCustomFields) + && Objects.equals(this.name, trckGetMetric.name) + && Objects.equals(this.value, trckGetMetric.value) + && Objects.equals(this.timestamp, trckGetMetric.timestamp) + && Objects.equals(this.step, trckGetMetric.step) + && Objects.equals(this.labels, trckGetMetric.labels); } @Override @@ -283,7 +290,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckGetMetric {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -291,14 +299,15 @@ public int hashCode() { sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" step: ").append(toIndentedString(step)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -307,48 +316,45 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetric} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> + (value) -> (timestamp) -> new TrckGetMetric().name(name).value(value).timestamp(timestamp); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetric} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (value) -> (timestamp) -> new TrckGetMetric().name(name).value(value).timestamp(timestamp); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link TrckGetMetric} instance. - * - * @param name Name of the metric - * @return The TrckGetMetric builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link TrckGetMetric} instance. - * - * @param value Numeric Value of the metric - * @return The TrckGetMetric builder. - */ - Builder2 value( @Nonnull final BigDecimal value); - } + * Set the name of this {@link TrckGetMetric} instance. + * + * @param name Name of the metric + * @return The TrckGetMetric builder. + */ + Builder1 name(@Nonnull final String name); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the timestamp of this {@link TrckGetMetric} instance. - * - * @param timestamp Time when the metric was created or logged in RFC3339 format - * @return The TrckGetMetric instance. - */ - TrckGetMetric timestamp( @Nonnull final OffsetDateTime timestamp); - } + * Set the value of this {@link TrckGetMetric} instance. + * + * @param value Numeric Value of the metric + * @return The TrckGetMetric builder. + */ + Builder2 value(@Nonnull final BigDecimal value); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the timestamp of this {@link TrckGetMetric} instance. + * + * @param timestamp Time when the metric was created or logged in RFC3339 format + * @return The TrckGetMetric instance. + */ + TrckGetMetric timestamp(@Nonnull final OffsetDateTime timestamp); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java index 699cc884..f36a4fa6 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResource.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckCustomInfoObject; -import com.sap.ai.sdk.core.client.model.TrckExecutionId; -import com.sap.ai.sdk.core.client.model.TrckGetMetric; -import com.sap.ai.sdk.core.client.model.TrckTag; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Collection of various metrics/tags/labels associated against some execution/deployment - */ +/** Collection of various metrics/tags/labels associated against some execution/deployment */ // CHECKSTYLE:OFF -public class TrckGetMetricResource +public class TrckGetMetricResource // CHECKSTYLE:ON { @JsonProperty("executionId") @@ -61,55 +43,63 @@ public class TrckGetMetricResource @JsonProperty("customInfo") private List customInfo = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckGetMetricResource() { } - - /** - * Set the executionId of this {@link TrckGetMetricResource} instance and return the same instance. - * - * @param executionId The executionId of this {@link TrckGetMetricResource} - * @return The same instance of this {@link TrckGetMetricResource} class - */ - @Nonnull public TrckGetMetricResource executionId(@Nonnull final TrckExecutionId executionId) { + + protected TrckGetMetricResource() {} + + /** + * Set the executionId of this {@link TrckGetMetricResource} instance and return the same + * instance. + * + * @param executionId The executionId of this {@link TrckGetMetricResource} + * @return The same instance of this {@link TrckGetMetricResource} class + */ + @Nonnull + public TrckGetMetricResource executionId(@Nonnull final TrckExecutionId executionId) { this.executionId = executionId; return this; } - /** - * Get executionId - * @return executionId The executionId of this {@link TrckGetMetricResource} instance. - */ - @Nonnull public TrckExecutionId getExecutionId() { + /** + * Get executionId + * + * @return executionId The executionId of this {@link TrckGetMetricResource} instance. + */ + @Nonnull + public TrckExecutionId getExecutionId() { return executionId; } /** * Set the executionId of this {@link TrckGetMetricResource} instance. * - * @param executionId The executionId of this {@link TrckGetMetricResource} + * @param executionId The executionId of this {@link TrckGetMetricResource} */ - public void setExecutionId( @Nonnull final TrckExecutionId executionId) { + public void setExecutionId(@Nonnull final TrckExecutionId executionId) { this.executionId = executionId; } - /** - * Set the metrics of this {@link TrckGetMetricResource} instance and return the same instance. - * - * @param metrics Array of Metric items - * @return The same instance of this {@link TrckGetMetricResource} class - */ - @Nonnull public TrckGetMetricResource metrics(@Nonnull final List metrics) { + /** + * Set the metrics of this {@link TrckGetMetricResource} instance and return the same instance. + * + * @param metrics Array of Metric items + * @return The same instance of this {@link TrckGetMetricResource} class + */ + @Nonnull + public TrckGetMetricResource metrics(@Nonnull final List metrics) { this.metrics = metrics; return this; } + /** * Add one metrics instance to this {@link TrckGetMetricResource}. + * * @param metricsItem The metrics that should be added * @return The same instance of type {@link TrckGetMetricResource} */ - @Nonnull public TrckGetMetricResource addMetricsItem( @Nonnull final TrckGetMetric metricsItem) { + @Nonnull + public TrckGetMetricResource addMetricsItem(@Nonnull final TrckGetMetric metricsItem) { if (this.metrics == null) { this.metrics = new ArrayList<>(); } @@ -117,39 +107,46 @@ public void setExecutionId( @Nonnull final TrckExecutionId executionId) { return this; } - /** - * Array of Metric items - * @return metrics The metrics of this {@link TrckGetMetricResource} instance. - */ - @Nonnull public List getMetrics() { + /** + * Array of Metric items + * + * @return metrics The metrics of this {@link TrckGetMetricResource} instance. + */ + @Nonnull + public List getMetrics() { return metrics; } /** * Set the metrics of this {@link TrckGetMetricResource} instance. * - * @param metrics Array of Metric items + * @param metrics Array of Metric items */ - public void setMetrics( @Nonnull final List metrics) { + public void setMetrics(@Nonnull final List metrics) { this.metrics = metrics; } - /** - * Set the tags of this {@link TrckGetMetricResource} instance and return the same instance. - * - * @param tags a list of name-value object pairs associated with the execution/deployment. Tags are queryable. - * @return The same instance of this {@link TrckGetMetricResource} class - */ - @Nonnull public TrckGetMetricResource tags(@Nonnull final List tags) { + /** + * Set the tags of this {@link TrckGetMetricResource} instance and return the same instance. + * + * @param tags a list of name-value object pairs associated with the execution/deployment. Tags + * are queryable. + * @return The same instance of this {@link TrckGetMetricResource} class + */ + @Nonnull + public TrckGetMetricResource tags(@Nonnull final List tags) { this.tags = tags; return this; } + /** * Add one tags instance to this {@link TrckGetMetricResource}. + * * @param tagsItem The tags that should be added * @return The same instance of type {@link TrckGetMetricResource} */ - @Nonnull public TrckGetMetricResource addTagsItem( @Nonnull final TrckTag tagsItem) { + @Nonnull + public TrckGetMetricResource addTagsItem(@Nonnull final TrckTag tagsItem) { if (this.tags == null) { this.tags = new ArrayList<>(); } @@ -157,39 +154,47 @@ public void setMetrics( @Nonnull final List metrics) { return this; } - /** - * a list of name-value object pairs associated with the execution/deployment. Tags are queryable. - * @return tags The tags of this {@link TrckGetMetricResource} instance. - */ - @Nonnull public List getTags() { + /** + * a list of name-value object pairs associated with the execution/deployment. Tags are queryable. + * + * @return tags The tags of this {@link TrckGetMetricResource} instance. + */ + @Nonnull + public List getTags() { return tags; } /** * Set the tags of this {@link TrckGetMetricResource} instance. * - * @param tags a list of name-value object pairs associated with the execution/deployment. Tags are queryable. + * @param tags a list of name-value object pairs associated with the execution/deployment. Tags + * are queryable. */ - public void setTags( @Nonnull final List tags) { + public void setTags(@Nonnull final List tags) { this.tags = tags; } - /** - * Set the customInfo of this {@link TrckGetMetricResource} instance and return the same instance. - * - * @param customInfo - * @return The same instance of this {@link TrckGetMetricResource} class - */ - @Nonnull public TrckGetMetricResource customInfo(@Nonnull final List customInfo) { + /** + * Set the customInfo of this {@link TrckGetMetricResource} instance and return the same instance. + * + * @param customInfo + * @return The same instance of this {@link TrckGetMetricResource} class + */ + @Nonnull + public TrckGetMetricResource customInfo(@Nonnull final List customInfo) { this.customInfo = customInfo; return this; } + /** * Add one customInfo instance to this {@link TrckGetMetricResource}. + * * @param customInfoItem The customInfo that should be added * @return The same instance of type {@link TrckGetMetricResource} */ - @Nonnull public TrckGetMetricResource addCustomInfoItem( @Nonnull final TrckCustomInfoObject customInfoItem) { + @Nonnull + public TrckGetMetricResource addCustomInfoItem( + @Nonnull final TrckCustomInfoObject customInfoItem) { if (this.customInfo == null) { this.customInfo = new ArrayList<>(); } @@ -197,25 +202,26 @@ public void setTags( @Nonnull final List tags) { return this; } - /** - * - * @return customInfo The customInfo of this {@link TrckGetMetricResource} instance. - */ - @Nonnull public List getCustomInfo() { + /** + * @return customInfo The customInfo of this {@link TrckGetMetricResource} instance. + */ + @Nonnull + public List getCustomInfo() { return customInfo; } /** * Set the customInfo of this {@link TrckGetMetricResource} instance. * - * @param customInfo + * @param customInfo */ - public void setCustomInfo( @Nonnull final List customInfo) { + public void setCustomInfo(@Nonnull final List customInfo) { this.customInfo = customInfo; } /** * Get the names of the unrecognizable properties of the {@link TrckGetMetricResource}. + * * @return The set of properties names */ @JsonIgnore @@ -226,31 +232,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckGetMetricResource} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckGetMetricResource has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "TrckGetMetricResource has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckGetMetricResource} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckGetMetricResource} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -260,11 +267,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckGetMetricResource trckGetMetricResource = (TrckGetMetricResource) o; - return Objects.equals(this.cloudSdkCustomFields, trckGetMetricResource.cloudSdkCustomFields) && - Objects.equals(this.executionId, trckGetMetricResource.executionId) && - Objects.equals(this.metrics, trckGetMetricResource.metrics) && - Objects.equals(this.tags, trckGetMetricResource.tags) && - Objects.equals(this.customInfo, trckGetMetricResource.customInfo); + return Objects.equals(this.cloudSdkCustomFields, trckGetMetricResource.cloudSdkCustomFields) + && Objects.equals(this.executionId, trckGetMetricResource.executionId) + && Objects.equals(this.metrics, trckGetMetricResource.metrics) + && Objects.equals(this.tags, trckGetMetricResource.tags) + && Objects.equals(this.customInfo, trckGetMetricResource.customInfo); } @Override @@ -273,21 +280,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckGetMetricResource {\n"); sb.append(" executionId: ").append(toIndentedString(executionId)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" customInfo: ").append(toIndentedString(customInfo)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -296,24 +305,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetricResource} instance with all required arguments. - */ - public static Builder create() { - return (executionId) -> new TrckGetMetricResource().executionId(executionId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the executionId of this {@link TrckGetMetricResource} instance. - * - * @param executionId The executionId of this {@link TrckGetMetricResource} - * @return The TrckGetMetricResource instance. - */ - TrckGetMetricResource executionId( @Nonnull final TrckExecutionId executionId); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetricResource} + * instance with all required arguments. + */ + public static Builder create() { + return (executionId) -> new TrckGetMetricResource().executionId(executionId); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the executionId of this {@link TrckGetMetricResource} instance. + * + * @param executionId The executionId of this {@link TrckGetMetricResource} + * @return The TrckGetMetricResource instance. + */ + TrckGetMetricResource executionId(@Nonnull final TrckExecutionId executionId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java index b5d19e55..b9b82c52 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckGetMetricResourceList.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.core.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckGetMetricResource; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * TrckGetMetricResourceList - */ +/** TrckGetMetricResourceList */ // CHECKSTYLE:OFF -public class TrckGetMetricResourceList +public class TrckGetMetricResourceList // CHECKSTYLE:ON { @JsonProperty("count") @@ -52,55 +38,64 @@ public class TrckGetMetricResourceList @JsonProperty("resources") private List resources = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckGetMetricResourceList() { } - - /** - * Set the count of this {@link TrckGetMetricResourceList} instance and return the same instance. - * - * @param count Number of the resource instances in the list - * @return The same instance of this {@link TrckGetMetricResourceList} class - */ - @Nonnull public TrckGetMetricResourceList count(@Nonnull final Integer count) { + + protected TrckGetMetricResourceList() {} + + /** + * Set the count of this {@link TrckGetMetricResourceList} instance and return the same instance. + * + * @param count Number of the resource instances in the list + * @return The same instance of this {@link TrckGetMetricResourceList} class + */ + @Nonnull + public TrckGetMetricResourceList count(@Nonnull final Integer count) { this.count = count; return this; } - /** - * Number of the resource instances in the list - * @return count The count of this {@link TrckGetMetricResourceList} instance. - */ - @Nonnull public Integer getCount() { + /** + * Number of the resource instances in the list + * + * @return count The count of this {@link TrckGetMetricResourceList} instance. + */ + @Nonnull + public Integer getCount() { return count; } /** * Set the count of this {@link TrckGetMetricResourceList} instance. * - * @param count Number of the resource instances in the list + * @param count Number of the resource instances in the list */ - public void setCount( @Nonnull final Integer count) { + public void setCount(@Nonnull final Integer count) { this.count = count; } - /** - * Set the resources of this {@link TrckGetMetricResourceList} instance and return the same instance. - * - * @param resources The resources of this {@link TrckGetMetricResourceList} - * @return The same instance of this {@link TrckGetMetricResourceList} class - */ - @Nonnull public TrckGetMetricResourceList resources(@Nonnull final List resources) { + /** + * Set the resources of this {@link TrckGetMetricResourceList} instance and return the same + * instance. + * + * @param resources The resources of this {@link TrckGetMetricResourceList} + * @return The same instance of this {@link TrckGetMetricResourceList} class + */ + @Nonnull + public TrckGetMetricResourceList resources(@Nonnull final List resources) { this.resources = resources; return this; } + /** * Add one resources instance to this {@link TrckGetMetricResourceList}. + * * @param resourcesItem The resources that should be added * @return The same instance of type {@link TrckGetMetricResourceList} */ - @Nonnull public TrckGetMetricResourceList addResourcesItem( @Nonnull final TrckGetMetricResource resourcesItem) { + @Nonnull + public TrckGetMetricResourceList addResourcesItem( + @Nonnull final TrckGetMetricResource resourcesItem) { if (this.resources == null) { this.resources = new ArrayList<>(); } @@ -108,25 +103,28 @@ public void setCount( @Nonnull final Integer count) { return this; } - /** - * Get resources - * @return resources The resources of this {@link TrckGetMetricResourceList} instance. - */ - @Nonnull public List getResources() { + /** + * Get resources + * + * @return resources The resources of this {@link TrckGetMetricResourceList} instance. + */ + @Nonnull + public List getResources() { return resources; } /** * Set the resources of this {@link TrckGetMetricResourceList} instance. * - * @param resources The resources of this {@link TrckGetMetricResourceList} + * @param resources The resources of this {@link TrckGetMetricResourceList} */ - public void setResources( @Nonnull final List resources) { + public void setResources(@Nonnull final List resources) { this.resources = resources; } /** * Get the names of the unrecognizable properties of the {@link TrckGetMetricResourceList}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +135,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckGetMetricResourceList} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckGetMetricResourceList has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "TrckGetMetricResourceList has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckGetMetricResourceList} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckGetMetricResourceList} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +170,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckGetMetricResourceList trckGetMetricResourceList = (TrckGetMetricResourceList) o; - return Objects.equals(this.cloudSdkCustomFields, trckGetMetricResourceList.cloudSdkCustomFields) && - Objects.equals(this.count, trckGetMetricResourceList.count) && - Objects.equals(this.resources, trckGetMetricResourceList.resources); + return Objects.equals(this.cloudSdkCustomFields, trckGetMetricResourceList.cloudSdkCustomFields) + && Objects.equals(this.count, trckGetMetricResourceList.count) + && Objects.equals(this.resources, trckGetMetricResourceList.resources); } @Override @@ -182,19 +181,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckGetMetricResourceList {\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,33 +204,32 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * TrckGetMetricResourceList} instance with all required arguments. + */ + public static Builder create() { + return (resources) -> new TrckGetMetricResourceList().resources(resources); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckGetMetricResourceList} instance with all required arguments. - */ - public static Builder create() { - return (resources) -> new TrckGetMetricResourceList().resources(resources); - } + * Set the resources of this {@link TrckGetMetricResourceList} instance. + * + * @param resources The resources of this {@link TrckGetMetricResourceList} + * @return The TrckGetMetricResourceList instance. + */ + TrckGetMetricResourceList resources(@Nonnull final List resources); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the resources of this {@link TrckGetMetricResourceList} instance. - * - * @param resources The resources of this {@link TrckGetMetricResourceList} - * @return The TrckGetMetricResourceList instance. - */ - TrckGetMetricResourceList resources( @Nonnull final List resources); - /** - * Set the resources of this {@link TrckGetMetricResourceList} instance. - * - * @param resources The resources of this {@link TrckGetMetricResourceList} - * @return The TrckGetMetricResourceList instance. - */ - default TrckGetMetricResourceList resources( @Nonnull final TrckGetMetricResource... resources) { - return resources(Arrays.asList(resources)); - } + * Set the resources of this {@link TrckGetMetricResourceList} instance. + * + * @param resources The resources of this {@link TrckGetMetricResourceList} + * @return The TrckGetMetricResourceList instance. + */ + default TrckGetMetricResourceList resources(@Nonnull final TrckGetMetricResource... resources) { + return resources(Arrays.asList(resources)); } - + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java index 669740d7..677255bc 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckLabel.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * a classifying phrase/name applied to a metric - */ +/** a classifying phrase/name applied to a metric */ // CHECKSTYLE:OFF -public class TrckLabel +public class TrckLabel // CHECKSTYLE:ON { @JsonProperty("name") @@ -48,69 +35,81 @@ public class TrckLabel @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckLabel() { } - - /** - * Set the name of this {@link TrckLabel} instance and return the same instance. - * - * @param name Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics - * @return The same instance of this {@link TrckLabel} class - */ - @Nonnull public TrckLabel name(@Nonnull final String name) { + + protected TrckLabel() {} + + /** + * Set the name of this {@link TrckLabel} instance and return the same instance. + * + * @param name Label name to label one or more metrics. + * \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact + * with the metrics + * @return The same instance of this {@link TrckLabel} class + */ + @Nonnull + public TrckLabel name(@Nonnull final String name) { this.name = name; return this; } - /** - * Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics - * @return name The name of this {@link TrckLabel} instance. - */ - @Nonnull public String getName() { + /** + * Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a + * reserved label to associate an artifact with the metrics + * + * @return name The name of this {@link TrckLabel} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link TrckLabel} instance. * - * @param name Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics + * @param name Label name to label one or more metrics. + * \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact + * with the metrics */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the value of this {@link TrckLabel} instance and return the same instance. - * - * @param value Metric Label Value - * @return The same instance of this {@link TrckLabel} class - */ - @Nonnull public TrckLabel value(@Nonnull final String value) { + /** + * Set the value of this {@link TrckLabel} instance and return the same instance. + * + * @param value Metric Label Value + * @return The same instance of this {@link TrckLabel} class + */ + @Nonnull + public TrckLabel value(@Nonnull final String value) { this.value = value; return this; } - /** - * Metric Label Value - * @return value The value of this {@link TrckLabel} instance. - */ - @Nonnull public String getValue() { + /** + * Metric Label Value + * + * @return value The value of this {@link TrckLabel} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link TrckLabel} instance. * - * @param value Metric Label Value + * @param value Metric Label Value */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link TrckLabel}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +120,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckLabel} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckLabel has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckLabel has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckLabel} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckLabel} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +154,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckLabel trckLabel = (TrckLabel) o; - return Objects.equals(this.cloudSdkCustomFields, trckLabel.cloudSdkCustomFields) && - Objects.equals(this.name, trckLabel.name) && - Objects.equals(this.value, trckLabel.value); + return Objects.equals(this.cloudSdkCustomFields, trckLabel.cloudSdkCustomFields) + && Objects.equals(this.name, trckLabel.name) + && Objects.equals(this.value, trckLabel.value); } @Override @@ -166,19 +165,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckLabel {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +188,35 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckLabel} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckLabel().name(name).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckLabel} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (value) -> new TrckLabel().name(name).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link TrckLabel} instance. - * - * @param name Label name to label one or more metrics. \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an artifact with the metrics - * @return The TrckLabel builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link TrckLabel} instance. - * - * @param value Metric Label Value - * @return The TrckLabel instance. - */ - TrckLabel value( @Nonnull final String value); - } + * Set the name of this {@link TrckLabel} instance. + * + * @param name Label name to label one or more metrics. + * \"metrics.ai.sap.com/Artifact.name\" is a reserved label to associate an + * artifact with the metrics + * @return The TrckLabel builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link TrckLabel} instance. + * + * @param value Metric Label Value + * @return The TrckLabel instance. + */ + TrckLabel value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java index 247331c9..5a2b86fb 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetric.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,28 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckLabel; import java.math.BigDecimal; import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Arrays; +import java.util.LinkedHashMap; import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.Map; +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; /** - * Key-value metrics, where the value is numeric. Metric can also have optional step and label fields. + * Key-value metrics, where the value is numeric. Metric can also have optional step and label + * fields. */ // CHECKSTYLE:OFF -public class TrckMetric +public class TrckMetric // CHECKSTYLE:ON { @JsonProperty("name") @@ -63,142 +51,158 @@ public class TrckMetric @JsonProperty("labels") private List labels = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckMetric() { } - - /** - * Set the name of this {@link TrckMetric} instance and return the same instance. - * - * @param name Name of the metric - * @return The same instance of this {@link TrckMetric} class - */ - @Nonnull public TrckMetric name(@Nonnull final String name) { + + protected TrckMetric() {} + + /** + * Set the name of this {@link TrckMetric} instance and return the same instance. + * + * @param name Name of the metric + * @return The same instance of this {@link TrckMetric} class + */ + @Nonnull + public TrckMetric name(@Nonnull final String name) { this.name = name; return this; } - /** - * Name of the metric - * @return name The name of this {@link TrckMetric} instance. - */ - @Nonnull public String getName() { + /** + * Name of the metric + * + * @return name The name of this {@link TrckMetric} instance. + */ + @Nonnull + public String getName() { return name; } /** * Set the name of this {@link TrckMetric} instance. * - * @param name Name of the metric + * @param name Name of the metric */ - public void setName( @Nonnull final String name) { + public void setName(@Nonnull final String name) { this.name = name; } - /** - * Set the value of this {@link TrckMetric} instance and return the same instance. - * - * @param value Numeric Value of the metric - * @return The same instance of this {@link TrckMetric} class - */ - @Nonnull public TrckMetric value(@Nonnull final BigDecimal value) { + /** + * Set the value of this {@link TrckMetric} instance and return the same instance. + * + * @param value Numeric Value of the metric + * @return The same instance of this {@link TrckMetric} class + */ + @Nonnull + public TrckMetric value(@Nonnull final BigDecimal value) { this.value = value; return this; } - /** - * Numeric Value of the metric - * @return value The value of this {@link TrckMetric} instance. - */ - @Nonnull public BigDecimal getValue() { + /** + * Numeric Value of the metric + * + * @return value The value of this {@link TrckMetric} instance. + */ + @Nonnull + public BigDecimal getValue() { return value; } /** * Set the value of this {@link TrckMetric} instance. * - * @param value Numeric Value of the metric + * @param value Numeric Value of the metric */ - public void setValue( @Nonnull final BigDecimal value) { + public void setValue(@Nonnull final BigDecimal value) { this.value = value; } - /** - * Set the timestamp of this {@link TrckMetric} instance and return the same instance. - * - * @param timestamp Time when the metric was created or logged in RFC3339 format - * @return The same instance of this {@link TrckMetric} class - */ - @Nonnull public TrckMetric timestamp(@Nonnull final OffsetDateTime timestamp) { + /** + * Set the timestamp of this {@link TrckMetric} instance and return the same instance. + * + * @param timestamp Time when the metric was created or logged in RFC3339 format + * @return The same instance of this {@link TrckMetric} class + */ + @Nonnull + public TrckMetric timestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; return this; } - /** - * Time when the metric was created or logged in RFC3339 format - * @return timestamp The timestamp of this {@link TrckMetric} instance. - */ - @Nonnull public OffsetDateTime getTimestamp() { + /** + * Time when the metric was created or logged in RFC3339 format + * + * @return timestamp The timestamp of this {@link TrckMetric} instance. + */ + @Nonnull + public OffsetDateTime getTimestamp() { return timestamp; } /** * Set the timestamp of this {@link TrckMetric} instance. * - * @param timestamp Time when the metric was created or logged in RFC3339 format + * @param timestamp Time when the metric was created or logged in RFC3339 format */ - public void setTimestamp( @Nonnull final OffsetDateTime timestamp) { + public void setTimestamp(@Nonnull final OffsetDateTime timestamp) { this.timestamp = timestamp; } - /** - * Set the step of this {@link TrckMetric} instance and return the same instance. - * - * @param step step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric - * Minimum: 0 - * @return The same instance of this {@link TrckMetric} class - */ - @Nonnull public TrckMetric step(@Nonnull final Integer step) { + /** + * Set the step of this {@link TrckMetric} instance and return the same instance. + * + * @param step step is an optional integer that represents any measurement of training progress + * (number of training iterations, number of epochs, and so on) for the metric Minimum: 0 + * @return The same instance of this {@link TrckMetric} class + */ + @Nonnull + public TrckMetric step(@Nonnull final Integer step) { this.step = step; return this; } - /** - * step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric - * minimum: 0 - * @return step The step of this {@link TrckMetric} instance. - */ - @Nonnull public Integer getStep() { + /** + * step is an optional integer that represents any measurement of training progress (number of + * training iterations, number of epochs, and so on) for the metric minimum: 0 + * + * @return step The step of this {@link TrckMetric} instance. + */ + @Nonnull + public Integer getStep() { return step; } /** * Set the step of this {@link TrckMetric} instance. * - * @param step step is an optional integer that represents any measurement of training progress (number of training iterations, number of epochs, and so on) for the metric - * Minimum: 0 + * @param step step is an optional integer that represents any measurement of training progress + * (number of training iterations, number of epochs, and so on) for the metric Minimum: 0 */ - public void setStep( @Nonnull final Integer step) { + public void setStep(@Nonnull final Integer step) { this.step = step; } - /** - * Set the labels of this {@link TrckMetric} instance and return the same instance. - * - * @param labels a list of name-value object pairs associated with some metric. - * @return The same instance of this {@link TrckMetric} class - */ - @Nonnull public TrckMetric labels(@Nonnull final List labels) { + /** + * Set the labels of this {@link TrckMetric} instance and return the same instance. + * + * @param labels a list of name-value object pairs associated with some metric. + * @return The same instance of this {@link TrckMetric} class + */ + @Nonnull + public TrckMetric labels(@Nonnull final List labels) { this.labels = labels; return this; } + /** * Add one labels instance to this {@link TrckMetric}. + * * @param labelsItem The labels that should be added * @return The same instance of type {@link TrckMetric} */ - @Nonnull public TrckMetric addLabelsItem( @Nonnull final TrckLabel labelsItem) { + @Nonnull + public TrckMetric addLabelsItem(@Nonnull final TrckLabel labelsItem) { if (this.labels == null) { this.labels = new ArrayList<>(); } @@ -206,25 +210,28 @@ public void setStep( @Nonnull final Integer step) { return this; } - /** - * a list of name-value object pairs associated with some metric. - * @return labels The labels of this {@link TrckMetric} instance. - */ - @Nonnull public List getLabels() { + /** + * a list of name-value object pairs associated with some metric. + * + * @return labels The labels of this {@link TrckMetric} instance. + */ + @Nonnull + public List getLabels() { return labels; } /** * Set the labels of this {@link TrckMetric} instance. * - * @param labels a list of name-value object pairs associated with some metric. + * @param labels a list of name-value object pairs associated with some metric. */ - public void setLabels( @Nonnull final List labels) { + public void setLabels(@Nonnull final List labels) { this.labels = labels; } /** * Get the names of the unrecognizable properties of the {@link TrckMetric}. + * * @return The set of properties names */ @JsonIgnore @@ -235,31 +242,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckMetric} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckMetric has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckMetric has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckMetric} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckMetric} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -269,12 +276,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckMetric trckMetric = (TrckMetric) o; - return Objects.equals(this.cloudSdkCustomFields, trckMetric.cloudSdkCustomFields) && - Objects.equals(this.name, trckMetric.name) && - Objects.equals(this.value, trckMetric.value) && - Objects.equals(this.timestamp, trckMetric.timestamp) && - Objects.equals(this.step, trckMetric.step) && - Objects.equals(this.labels, trckMetric.labels); + return Objects.equals(this.cloudSdkCustomFields, trckMetric.cloudSdkCustomFields) + && Objects.equals(this.name, trckMetric.name) + && Objects.equals(this.value, trckMetric.value) + && Objects.equals(this.timestamp, trckMetric.timestamp) + && Objects.equals(this.step, trckMetric.step) + && Objects.equals(this.labels, trckMetric.labels); } @Override @@ -283,7 +290,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckMetric {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -291,14 +299,15 @@ public int hashCode() { sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" step: ").append(toIndentedString(step)).append("\n"); sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -307,36 +316,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckMetric} instance + * with all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckMetric().name(name).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckMetric} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (value) -> new TrckMetric().name(name).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link TrckMetric} instance. - * - * @param name Name of the metric - * @return The TrckMetric builder. - */ - Builder1 name( @Nonnull final String name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link TrckMetric} instance. - * - * @param value Numeric Value of the metric - * @return The TrckMetric instance. - */ - TrckMetric value( @Nonnull final BigDecimal value); - } + * Set the name of this {@link TrckMetric} instance. + * + * @param name Name of the metric + * @return The TrckMetric builder. + */ + Builder1 name(@Nonnull final String name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link TrckMetric} instance. + * + * @param value Numeric Value of the metric + * @return The TrckMetric instance. + */ + TrckMetric value(@Nonnull final BigDecimal value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java index ed61ac36..0744968a 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckMetricResource.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,23 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckCustomInfoObject; -import com.sap.ai.sdk.core.client.model.TrckExecutionId; -import com.sap.ai.sdk.core.client.model.TrckMetric; -import com.sap.ai.sdk.core.client.model.TrckTag; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Collection of various metrics/tags/labels associated against some execution/deployment - */ +/** Collection of various metrics/tags/labels associated against some execution/deployment */ // CHECKSTYLE:OFF -public class TrckMetricResource +public class TrckMetricResource // CHECKSTYLE:ON { @JsonProperty("executionId") @@ -61,55 +43,62 @@ public class TrckMetricResource @JsonProperty("customInfo") private List customInfo = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckMetricResource() { } - - /** - * Set the executionId of this {@link TrckMetricResource} instance and return the same instance. - * - * @param executionId The executionId of this {@link TrckMetricResource} - * @return The same instance of this {@link TrckMetricResource} class - */ - @Nonnull public TrckMetricResource executionId(@Nonnull final TrckExecutionId executionId) { + + protected TrckMetricResource() {} + + /** + * Set the executionId of this {@link TrckMetricResource} instance and return the same instance. + * + * @param executionId The executionId of this {@link TrckMetricResource} + * @return The same instance of this {@link TrckMetricResource} class + */ + @Nonnull + public TrckMetricResource executionId(@Nonnull final TrckExecutionId executionId) { this.executionId = executionId; return this; } - /** - * Get executionId - * @return executionId The executionId of this {@link TrckMetricResource} instance. - */ - @Nonnull public TrckExecutionId getExecutionId() { + /** + * Get executionId + * + * @return executionId The executionId of this {@link TrckMetricResource} instance. + */ + @Nonnull + public TrckExecutionId getExecutionId() { return executionId; } /** * Set the executionId of this {@link TrckMetricResource} instance. * - * @param executionId The executionId of this {@link TrckMetricResource} + * @param executionId The executionId of this {@link TrckMetricResource} */ - public void setExecutionId( @Nonnull final TrckExecutionId executionId) { + public void setExecutionId(@Nonnull final TrckExecutionId executionId) { this.executionId = executionId; } - /** - * Set the metrics of this {@link TrckMetricResource} instance and return the same instance. - * - * @param metrics Array of Metric items - * @return The same instance of this {@link TrckMetricResource} class - */ - @Nonnull public TrckMetricResource metrics(@Nonnull final List metrics) { + /** + * Set the metrics of this {@link TrckMetricResource} instance and return the same instance. + * + * @param metrics Array of Metric items + * @return The same instance of this {@link TrckMetricResource} class + */ + @Nonnull + public TrckMetricResource metrics(@Nonnull final List metrics) { this.metrics = metrics; return this; } + /** * Add one metrics instance to this {@link TrckMetricResource}. + * * @param metricsItem The metrics that should be added * @return The same instance of type {@link TrckMetricResource} */ - @Nonnull public TrckMetricResource addMetricsItem( @Nonnull final TrckMetric metricsItem) { + @Nonnull + public TrckMetricResource addMetricsItem(@Nonnull final TrckMetric metricsItem) { if (this.metrics == null) { this.metrics = new ArrayList<>(); } @@ -117,39 +106,46 @@ public void setExecutionId( @Nonnull final TrckExecutionId executionId) { return this; } - /** - * Array of Metric items - * @return metrics The metrics of this {@link TrckMetricResource} instance. - */ - @Nonnull public List getMetrics() { + /** + * Array of Metric items + * + * @return metrics The metrics of this {@link TrckMetricResource} instance. + */ + @Nonnull + public List getMetrics() { return metrics; } /** * Set the metrics of this {@link TrckMetricResource} instance. * - * @param metrics Array of Metric items + * @param metrics Array of Metric items */ - public void setMetrics( @Nonnull final List metrics) { + public void setMetrics(@Nonnull final List metrics) { this.metrics = metrics; } - /** - * Set the tags of this {@link TrckMetricResource} instance and return the same instance. - * - * @param tags a list of name-value object pairs associated with the execution/deployment. Tags are queryable. - * @return The same instance of this {@link TrckMetricResource} class - */ - @Nonnull public TrckMetricResource tags(@Nonnull final List tags) { + /** + * Set the tags of this {@link TrckMetricResource} instance and return the same instance. + * + * @param tags a list of name-value object pairs associated with the execution/deployment. Tags + * are queryable. + * @return The same instance of this {@link TrckMetricResource} class + */ + @Nonnull + public TrckMetricResource tags(@Nonnull final List tags) { this.tags = tags; return this; } + /** * Add one tags instance to this {@link TrckMetricResource}. + * * @param tagsItem The tags that should be added * @return The same instance of type {@link TrckMetricResource} */ - @Nonnull public TrckMetricResource addTagsItem( @Nonnull final TrckTag tagsItem) { + @Nonnull + public TrckMetricResource addTagsItem(@Nonnull final TrckTag tagsItem) { if (this.tags == null) { this.tags = new ArrayList<>(); } @@ -157,39 +153,46 @@ public void setMetrics( @Nonnull final List metrics) { return this; } - /** - * a list of name-value object pairs associated with the execution/deployment. Tags are queryable. - * @return tags The tags of this {@link TrckMetricResource} instance. - */ - @Nonnull public List getTags() { + /** + * a list of name-value object pairs associated with the execution/deployment. Tags are queryable. + * + * @return tags The tags of this {@link TrckMetricResource} instance. + */ + @Nonnull + public List getTags() { return tags; } /** * Set the tags of this {@link TrckMetricResource} instance. * - * @param tags a list of name-value object pairs associated with the execution/deployment. Tags are queryable. + * @param tags a list of name-value object pairs associated with the execution/deployment. Tags + * are queryable. */ - public void setTags( @Nonnull final List tags) { + public void setTags(@Nonnull final List tags) { this.tags = tags; } - /** - * Set the customInfo of this {@link TrckMetricResource} instance and return the same instance. - * - * @param customInfo - * @return The same instance of this {@link TrckMetricResource} class - */ - @Nonnull public TrckMetricResource customInfo(@Nonnull final List customInfo) { + /** + * Set the customInfo of this {@link TrckMetricResource} instance and return the same instance. + * + * @param customInfo + * @return The same instance of this {@link TrckMetricResource} class + */ + @Nonnull + public TrckMetricResource customInfo(@Nonnull final List customInfo) { this.customInfo = customInfo; return this; } + /** * Add one customInfo instance to this {@link TrckMetricResource}. + * * @param customInfoItem The customInfo that should be added * @return The same instance of type {@link TrckMetricResource} */ - @Nonnull public TrckMetricResource addCustomInfoItem( @Nonnull final TrckCustomInfoObject customInfoItem) { + @Nonnull + public TrckMetricResource addCustomInfoItem(@Nonnull final TrckCustomInfoObject customInfoItem) { if (this.customInfo == null) { this.customInfo = new ArrayList<>(); } @@ -197,25 +200,26 @@ public void setTags( @Nonnull final List tags) { return this; } - /** - * - * @return customInfo The customInfo of this {@link TrckMetricResource} instance. - */ - @Nonnull public List getCustomInfo() { + /** + * @return customInfo The customInfo of this {@link TrckMetricResource} instance. + */ + @Nonnull + public List getCustomInfo() { return customInfo; } /** * Set the customInfo of this {@link TrckMetricResource} instance. * - * @param customInfo + * @param customInfo */ - public void setCustomInfo( @Nonnull final List customInfo) { + public void setCustomInfo(@Nonnull final List customInfo) { this.customInfo = customInfo; } /** * Get the names of the unrecognizable properties of the {@link TrckMetricResource}. + * * @return The set of properties names */ @JsonIgnore @@ -226,31 +230,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckMetricResource} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckMetricResource has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckMetricResource has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckMetricResource} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckMetricResource} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -260,11 +264,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckMetricResource trckMetricResource = (TrckMetricResource) o; - return Objects.equals(this.cloudSdkCustomFields, trckMetricResource.cloudSdkCustomFields) && - Objects.equals(this.executionId, trckMetricResource.executionId) && - Objects.equals(this.metrics, trckMetricResource.metrics) && - Objects.equals(this.tags, trckMetricResource.tags) && - Objects.equals(this.customInfo, trckMetricResource.customInfo); + return Objects.equals(this.cloudSdkCustomFields, trckMetricResource.cloudSdkCustomFields) + && Objects.equals(this.executionId, trckMetricResource.executionId) + && Objects.equals(this.metrics, trckMetricResource.metrics) + && Objects.equals(this.tags, trckMetricResource.tags) + && Objects.equals(this.customInfo, trckMetricResource.customInfo); } @Override @@ -273,21 +277,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckMetricResource {\n"); sb.append(" executionId: ").append(toIndentedString(executionId)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" customInfo: ").append(toIndentedString(customInfo)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -296,24 +302,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckMetricResource} instance with all required arguments. - */ - public static Builder create() { - return (executionId) -> new TrckMetricResource().executionId(executionId); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the executionId of this {@link TrckMetricResource} instance. - * - * @param executionId The executionId of this {@link TrckMetricResource} - * @return The TrckMetricResource instance. - */ - TrckMetricResource executionId( @Nonnull final TrckExecutionId executionId); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckMetricResource} + * instance with all required arguments. + */ + public static Builder create() { + return (executionId) -> new TrckMetricResource().executionId(executionId); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the executionId of this {@link TrckMetricResource} instance. + * + * @param executionId The executionId of this {@link TrckMetricResource} + * @return The TrckMetricResource instance. + */ + TrckMetricResource executionId(@Nonnull final TrckExecutionId executionId); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java index ca3baab1..7ef864a5 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTag.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.core.client.model.TrckTagName; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * A dictionary of name-value pairs to support segregation at execution level. - */ +/** A dictionary of name-value pairs to support segregation at execution level. */ // CHECKSTYLE:OFF -public class TrckTag +public class TrckTag // CHECKSTYLE:ON { @JsonProperty("name") @@ -49,69 +35,76 @@ public class TrckTag @JsonProperty("value") private String value; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckTag() { } - - /** - * Set the name of this {@link TrckTag} instance and return the same instance. - * - * @param name The name of this {@link TrckTag} - * @return The same instance of this {@link TrckTag} class - */ - @Nonnull public TrckTag name(@Nonnull final TrckTagName name) { + + protected TrckTag() {} + + /** + * Set the name of this {@link TrckTag} instance and return the same instance. + * + * @param name The name of this {@link TrckTag} + * @return The same instance of this {@link TrckTag} class + */ + @Nonnull + public TrckTag name(@Nonnull final TrckTagName name) { this.name = name; return this; } - /** - * Get name - * @return name The name of this {@link TrckTag} instance. - */ - @Nonnull public TrckTagName getName() { + /** + * Get name + * + * @return name The name of this {@link TrckTag} instance. + */ + @Nonnull + public TrckTagName getName() { return name; } /** * Set the name of this {@link TrckTag} instance. * - * @param name The name of this {@link TrckTag} + * @param name The name of this {@link TrckTag} */ - public void setName( @Nonnull final TrckTagName name) { + public void setName(@Nonnull final TrckTagName name) { this.name = name; } - /** - * Set the value of this {@link TrckTag} instance and return the same instance. - * - * @param value tag value - * @return The same instance of this {@link TrckTag} class - */ - @Nonnull public TrckTag value(@Nonnull final String value) { + /** + * Set the value of this {@link TrckTag} instance and return the same instance. + * + * @param value tag value + * @return The same instance of this {@link TrckTag} class + */ + @Nonnull + public TrckTag value(@Nonnull final String value) { this.value = value; return this; } - /** - * tag value - * @return value The value of this {@link TrckTag} instance. - */ - @Nonnull public String getValue() { + /** + * tag value + * + * @return value The value of this {@link TrckTag} instance. + */ + @Nonnull + public String getValue() { return value; } /** * Set the value of this {@link TrckTag} instance. * - * @param value tag value + * @param value tag value */ - public void setValue( @Nonnull final String value) { + public void setValue(@Nonnull final String value) { this.value = value; } /** * Get the names of the unrecognizable properties of the {@link TrckTag}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckTag} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckTag has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckTag has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckTag} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckTag} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TrckTag trckTag = (TrckTag) o; - return Objects.equals(this.cloudSdkCustomFields, trckTag.cloudSdkCustomFields) && - Objects.equals(this.name, trckTag.name) && - Objects.equals(this.value, trckTag.value); + return Objects.equals(this.cloudSdkCustomFields, trckTag.cloudSdkCustomFields) + && Objects.equals(this.name, trckTag.name) + && Objects.equals(this.value, trckTag.value); } @Override @@ -167,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckTag {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TrckTag} instance with + * all required arguments. + */ + public static Builder create() { + return (name) -> (value) -> new TrckTag().name(name).value(value); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TrckTag} instance with all required arguments. - */ - public static Builder create() { - return (name) -> (value) -> new TrckTag().name(name).value(value); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the name of this {@link TrckTag} instance. - * - * @param name The name of this {@link TrckTag} - * @return The TrckTag builder. - */ - Builder1 name( @Nonnull final TrckTagName name); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the value of this {@link TrckTag} instance. - * - * @param value tag value - * @return The TrckTag instance. - */ - TrckTag value( @Nonnull final String value); - } + * Set the name of this {@link TrckTag} instance. + * + * @param name The name of this {@link TrckTag} + * @return The TrckTag builder. + */ + Builder1 name(@Nonnull final TrckTagName name); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the value of this {@link TrckTag} instance. + * + * @param value tag value + * @return The TrckTag instance. + */ + TrckTag value(@Nonnull final String value); + } } - diff --git a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java index c58dc96d..f4b3689d 100644 --- a/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java +++ b/core/src/main/java/com/sap/ai/sdk/core/client/model/TrckTagName.java @@ -1,11 +1,9 @@ - - /* * AI Core - * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. + * Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. * * The version of the OpenAPI document: 2.33.0 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,30 @@ package com.sap.ai.sdk.core.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonTypeName; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * TrckTagName - */ +/** TrckTagName */ // CHECKSTYLE:OFF -public class TrckTagName +public class TrckTagName // CHECKSTYLE:ON { - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TrckTagName() { } + + protected TrckTagName() {} /** * Get the names of the unrecognizable properties of the {@link TrckTagName}. + * * @return The set of properties names */ @JsonIgnore @@ -55,31 +46,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TrckTagName} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TrckTagName has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TrckTagName has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TrckTagName} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TrckTagName} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -98,17 +89,19 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TrckTagName {\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -117,12 +110,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link TrckTagName} instance. No arguments are required. - */ - public static TrckTagName create() { - return new TrckTagName(); - } - + /** Create a new {@link TrckTagName} instance. No arguments are required. */ + public static TrckTagName create() { + return new TrckTagName(); + } } - diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java index e0a9f477..b643a669 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ArtifactUnitTest.java @@ -48,7 +48,8 @@ void testGetArtifact() { } """))); - final AiArtifactList artifactList = new ArtifactApi(getClient(destination)).artifactQuery("default"); + final AiArtifactList artifactList = + new ArtifactApi(getClient(destination)).artifactQuery("default"); assertThat(artifactList).isNotNull(); assertThat(artifactList.getCount()).isEqualTo(1); assertThat(artifactList.getResources().size()).isEqualTo(1); @@ -82,12 +83,12 @@ void testPostArtifact() { """))); AiArtifactPostData artifactPostData = - AiArtifactPostData.create() - .name("default") - .kind(AiArtifactPostData.KindEnum.DATASET) - .url("ai://default/spam/data") - .scenarioId("foundation-models") - .description("dataset for aicore training"); + AiArtifactPostData.create() + .name("default") + .kind(AiArtifactPostData.KindEnum.DATASET) + .url("ai://default/spam/data") + .scenarioId("foundation-models") + .description("dataset for aicore training"); final AiArtifactCreationResponse artifact = new ArtifactApi(getClient(destination)).artifactCreate("default", artifactPostData); assertThat(artifact).isNotNull(); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java index d74beaf5..f23dde83 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ConfigurationUnitTest.java @@ -13,7 +13,6 @@ import com.sap.ai.sdk.core.client.model.AiConfigurationBaseData; import com.sap.ai.sdk.core.client.model.AiConfigurationCreationResponse; import com.sap.ai.sdk.core.client.model.AiConfigurationList; -import java.util.List; import org.apache.hc.core5.http.HttpStatus; import org.junit.jupiter.api.Test; @@ -98,11 +97,12 @@ void testPostConfiguration() { .executableId("aicore-nvidia") .scenarioId("foundation-models") .addInputArtifactBindingsItem( - AiArtifactArgumentBinding.create() - .key("spam-data") - .artifactId("744b0136-ed4b-49b1-bd10-08c236ed5ce7")); + AiArtifactArgumentBinding.create() + .key("spam-data") + .artifactId("744b0136-ed4b-49b1-bd10-08c236ed5ce7")); final AiConfigurationCreationResponse configuration = - new ConfigurationApi(getClient(destination)).configurationCreate("default", configurationBaseData); + new ConfigurationApi(getClient(destination)) + .configurationCreate("default", configurationBaseData); assertThat(configuration).isNotNull(); assertThat(configuration.getId()).isEqualTo("f88e7581-ade7-45c6-94e9-807889b523ec"); assertThat(configuration.getMessage()).isEqualTo("Configuration created"); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java index 3d930838..2d4cbca7 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/DeploymentUnitTest.java @@ -119,9 +119,11 @@ void testPostAiDeployment() { """))); AiDeploymentCreationRequest deploymentCreationRequest = - AiDeploymentCreationRequest.create().configurationId("7652a231-ba9b-4fcc-b473-2c355cb21b61"); + AiDeploymentCreationRequest.create() + .configurationId("7652a231-ba9b-4fcc-b473-2c355cb21b61"); final AiDeploymentCreationResponse deployment = - new DeploymentApi(getClient(destination)).deploymentCreate("default", deploymentCreationRequest); + new DeploymentApi(getClient(destination)) + .deploymentCreate("default", deploymentCreationRequest); assertThat(deployment).isNotNull(); assertThat(deployment.getDeploymentUrl()).isEqualTo(""); assertThat(deployment.getId()).isEqualTo("d5b764fe55b3e87c"); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java index f4deb9e8..5d80463f 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ExecutionUnitTest.java @@ -67,7 +67,8 @@ void testGetExecutions() { } """))); - final AiExecutionList executionList = new ExecutionApi(getClient(destination)).executionQuery("default"); + final AiExecutionList executionList = + new ExecutionApi(getClient(destination)).executionQuery("default"); assertThat(executionList).isNotNull(); assertThat(executionList.getCount()).isEqualTo(1); assertThat(executionList.getResources().size()).isEqualTo(1); @@ -109,7 +110,8 @@ void testPostExecution() { AiEnactmentCreationRequest enactmentCreationRequest = AiEnactmentCreationRequest.create().configurationId("e0a9eb2e-9ea1-43bf-aff5-7660db166676"); final AiExecutionCreationResponse execution = - new ExecutionApi(getClient(destination)).executionCreate("default", enactmentCreationRequest); + new ExecutionApi(getClient(destination)) + .executionCreate("default", enactmentCreationRequest); assertThat(execution).isNotNull(); assertThat(execution.getId()).isEqualTo("eab289226fe981da"); assertThat(execution.getMessage()).isEqualTo("AiExecution acknowledged"); diff --git a/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java b/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java index 2e14b1a7..98ae6cc1 100644 --- a/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java +++ b/core/src/test/java/com/sap/ai/sdk/core/client/ScenarioUnitTest.java @@ -49,7 +49,7 @@ void testGetScenarios() { """))); final AiScenarioList scenarioList = - new ScenarioApi(getClient(destination)).scenarioQuery("default"); + new ScenarioApi(getClient(destination)).scenarioQuery("default"); assertThat(scenarioList).isNotNull(); assertThat(scenarioList.getCount()).isEqualTo(1); assertThat(scenarioList.getResources().size()).isEqualTo(1); From 41534dc8f37aec8cfe359e1b20dd14fd675178d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Mon, 26 Aug 2024 16:04:45 +0200 Subject: [PATCH 2/2] Add orchestration --- orchestration/pom.xml | 8 - .../client/OrchestrationCompletionApi.java | 153 +++--- .../client/OrchestrationHealthzApi.java | 133 +++-- .../client/model/AzureContentSafety.java | 211 ++++---- .../client/model/AzureThreshold.java | 37 +- .../client/model/ChatMessage.java | 191 ++++--- .../client/model/CompletionPostRequest.java | 274 +++++----- .../client/model/CompletionPostResponse.java | 260 +++++----- .../client/model/DPIEntities.java | 59 +-- .../client/model/ErrorResponse.java | 341 +++++++------ .../orchestration/client/model/Filter.java | 172 +++---- .../client/model/FilterConfig.java | 212 ++++---- .../client/model/FilteringConfig.java | 162 +++--- .../client/model/FilteringModuleConfig.java | 148 +++--- .../client/model/GenericModuleResult.java | 171 +++---- .../client/model/GroundingFilter.java | 409 ++++++++------- .../client/model/GroundingModuleConfig.java | 228 +++++---- ...leConfigGroundingServiceConfiguration.java | 390 ++++++++------ .../orchestration/client/model/LLMChoice.java | 308 +++++------ .../client/model/LLMModuleConfig.java | 225 ++++---- .../client/model/LLMModuleResult.java | 482 +++++++++--------- .../orchestration/client/model/Masking.java | 217 ++++---- .../client/model/MaskingEntitiesInner.java | 74 ++- .../client/model/MaskingModuleConfig.java | 197 ++++--- .../client/model/MaskingProviderType.java | 33 +- .../client/model/ModuleConfigs.java | 333 ++++++------ .../client/model/ModuleResults.java | 334 ++++++------ .../client/model/OrchestrationConfig.java | 147 +++--- ...strationV1EndpointsHealthz503Response.java | 130 ++--- .../client/model/PresidioEntities.java | 31 +- .../client/model/ProviderType.java | 31 +- .../client/model/TemplatingModuleConfig.java | 207 ++++---- .../client/model/TokenUsage.java | 249 ++++----- .../client/model/UnmaskingConfig.java | 162 +++--- .../model/UnmaskingConfigEntitiesInner.java | 84 ++- 35 files changed, 3408 insertions(+), 3395 deletions(-) diff --git a/orchestration/pom.xml b/orchestration/pom.xml index 0ef735ad..eb7f6bfe 100644 --- a/orchestration/pom.xml +++ b/orchestration/pom.xml @@ -142,14 +142,6 @@ - - - com.diffplug.spotless - spotless-maven-plugin - - true - - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationCompletionApi.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationCompletionApi.java index ba5f1b86..ab4786d7 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationCompletionApi.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationCompletionApi.java @@ -1,102 +1,97 @@ - - package com.sap.ai.sdk.orchestration.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; -import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - +import com.google.common.annotations.Beta; import com.sap.ai.sdk.orchestration.client.model.CompletionPostRequest; import com.sap.ai.sdk.orchestration.client.model.CompletionPostResponse; -import com.sap.ai.sdk.orchestration.client.model.ErrorResponse; - -import java.util.HashMap; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.List; -import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * Internal Orchestration Service API in version 0.0.1. * - * SAP AI Core - Orchestration Service API + *

SAP AI Core - Orchestration Service API */ public class OrchestrationCompletionApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the Internal Orchestration Service API. - * - * @param httpDestination The destination that API should be used with - */ - public OrchestrationCompletionApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } + /** + * Instantiates this API class to invoke operations on the Internal Orchestration Service API. + * + * @param httpDestination The destination that API should be used with + */ + public OrchestrationCompletionApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } - /** - * Instantiates this API class to invoke operations on the Internal Orchestration Service API based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public OrchestrationCompletionApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); + /** + * Instantiates this API class to invoke operations on the Internal Orchestration Service API + * based on a given {@link ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public OrchestrationCompletionApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } + + /** + * 200 - Successful response + * + *

400 - Bad Request + * + *

0 - Common Error + * + * @param completionPostRequest The value for the parameter completionPostRequest + * @return CompletionPostResponse + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public CompletionPostResponse orchestrationV1EndpointsCreate( + @Nonnull final CompletionPostRequest completionPostRequest) throws OpenApiRequestException { + final Object localVarPostBody = completionPostRequest; + + // verify the required parameter 'completionPostRequest' is set + if (completionPostRequest == null) { + throw new OpenApiRequestException( + "Missing the required parameter 'completionPostRequest' when calling orchestrationV1EndpointsCreate"); } - /** - *

- *

- *

200 - Successful response - *

400 - Bad Request - *

0 - Common Error - * @param completionPostRequest - * The value for the parameter completionPostRequest - * @return CompletionPostResponse - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public CompletionPostResponse orchestrationV1EndpointsCreate( @Nonnull final CompletionPostRequest completionPostRequest) throws OpenApiRequestException { - final Object localVarPostBody = completionPostRequest; - - // verify the required parameter 'completionPostRequest' is set - if (completionPostRequest == null) { - throw new OpenApiRequestException("Missing the required parameter 'completionPostRequest' when calling orchestrationV1EndpointsCreate"); - } - - final String localVarPath = UriComponentsBuilder.fromPath("/completion").build().toUriString(); + final String localVarPath = UriComponentsBuilder.fromPath("/completion").build().toUriString(); - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); - final String[] localVarAccepts = { - "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { - "application/json" - }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String[] localVarAccepts = {"application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {"application/json"}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - final String[] localVarAuthNames = new String[] { }; + final String[] localVarAuthNames = new String[] {}; - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.POST, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationHealthzApi.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationHealthzApi.java index a8d712c2..6b6054c5 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationHealthzApi.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/OrchestrationHealthzApi.java @@ -1,90 +1,85 @@ - - package com.sap.ai.sdk.orchestration.client; -import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; -import com.sap.cloud.sdk.services.openapi.core.OpenApiResponse; -import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.google.common.annotations.Beta; +import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; import com.sap.cloud.sdk.services.openapi.apiclient.ApiClient; - -import com.sap.ai.sdk.orchestration.client.model.OrchestrationV1EndpointsHealthz503Response; - -import java.util.HashMap; +import com.sap.cloud.sdk.services.openapi.core.AbstractOpenApiService; +import com.sap.cloud.sdk.services.openapi.core.OpenApiRequestException; import java.util.List; -import java.util.Locale; -import java.util.Map; - -import org.springframework.util.LinkedMultiValueMap; -import org.springframework.util.MultiValueMap; -import org.springframework.web.util.UriComponentsBuilder; +import javax.annotation.Nonnull; import org.springframework.core.ParameterizedTypeReference; -import org.springframework.core.io.FileSystemResource; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.MediaType; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import com.google.common.annotations.Beta; - -import com.sap.cloud.sdk.cloudplatform.connectivity.Destination; +import org.springframework.util.LinkedMultiValueMap; +import org.springframework.util.MultiValueMap; +import org.springframework.web.util.UriComponentsBuilder; /** * Internal Orchestration Service API in version 0.0.1. * - * SAP AI Core - Orchestration Service API + *

SAP AI Core - Orchestration Service API */ public class OrchestrationHealthzApi extends AbstractOpenApiService { - /** - * Instantiates this API class to invoke operations on the Internal Orchestration Service API. - * - * @param httpDestination The destination that API should be used with - */ - public OrchestrationHealthzApi( @Nonnull final Destination httpDestination ) - { - super(httpDestination); - } + /** + * Instantiates this API class to invoke operations on the Internal Orchestration Service API. + * + * @param httpDestination The destination that API should be used with + */ + public OrchestrationHealthzApi(@Nonnull final Destination httpDestination) { + super(httpDestination); + } + + /** + * Instantiates this API class to invoke operations on the Internal Orchestration Service API + * based on a given {@link ApiClient}. + * + * @param apiClient ApiClient to invoke the API on + */ + @Beta + public OrchestrationHealthzApi(@Nonnull final ApiClient apiClient) { + super(apiClient); + } - /** - * Instantiates this API class to invoke operations on the Internal Orchestration Service API based on a given {@link ApiClient}. - * - * @param apiClient - * ApiClient to invoke the API on - */ - @Beta - public OrchestrationHealthzApi( @Nonnull final ApiClient apiClient ) - { - super(apiClient); - } + /** + * 200 - Service is up and running. + * + *

503 - Service is unavailable. + * + * @return String + * @throws OpenApiRequestException if an error occurs while attempting to invoke the API + */ + @Nonnull + public String orchestrationV1EndpointsHealthz() throws OpenApiRequestException { + final Object localVarPostBody = null; - /** - *

- *

- *

200 - Service is up and running. - *

503 - Service is unavailable. - * @return String - * @throws OpenApiRequestException if an error occurs while attempting to invoke the API - */ - @Nonnull - public String orchestrationV1EndpointsHealthz() throws OpenApiRequestException { - final Object localVarPostBody = null; - - final String localVarPath = UriComponentsBuilder.fromPath("/healthz").build().toUriString(); + final String localVarPath = UriComponentsBuilder.fromPath("/healthz").build().toUriString(); - final MultiValueMap localVarQueryParams = new LinkedMultiValueMap(); - final HttpHeaders localVarHeaderParams = new HttpHeaders(); - final MultiValueMap localVarFormParams = new LinkedMultiValueMap(); + final MultiValueMap localVarQueryParams = + new LinkedMultiValueMap(); + final HttpHeaders localVarHeaderParams = new HttpHeaders(); + final MultiValueMap localVarFormParams = + new LinkedMultiValueMap(); - final String[] localVarAccepts = { - "text/plain", "application/json" - }; - final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - final String[] localVarContentTypes = { }; - final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String[] localVarAccepts = {"text/plain", "application/json"}; + final List localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + final String[] localVarContentTypes = {}; + final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - final String[] localVarAuthNames = new String[] { }; + final String[] localVarAuthNames = new String[] {}; - final ParameterizedTypeReference localVarReturnType = new ParameterizedTypeReference() {}; - return apiClient.invokeAPI(localVarPath, HttpMethod.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); - } + final ParameterizedTypeReference localVarReturnType = + new ParameterizedTypeReference() {}; + return apiClient.invokeAPI( + localVarPath, + HttpMethod.GET, + localVarQueryParams, + localVarPostBody, + localVarHeaderParams, + localVarFormParams, + localVarAccept, + localVarContentType, + localVarAuthNames, + localVarReturnType); + } } diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java index fc01d1ea..ad50bbff 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureContentSafety.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.AzureThreshold; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * AzureContentSafety - */ +/** AzureContentSafety */ // CHECKSTYLE:OFF -public class AzureContentSafety +public class AzureContentSafety // CHECKSTYLE:ON { @JsonProperty("Hate") @@ -55,125 +41,138 @@ public class AzureContentSafety @JsonProperty("Violence") private AzureThreshold violence; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected AzureContentSafety() { } - /** - * Set the hate of this {@link AzureContentSafety} instance and return the same instance. - * - * @param hate The hate of this {@link AzureContentSafety} - * @return The same instance of this {@link AzureContentSafety} class - */ - @Nonnull public AzureContentSafety hate(@Nonnull final AzureThreshold hate) { + protected AzureContentSafety() {} + + /** + * Set the hate of this {@link AzureContentSafety} instance and return the same instance. + * + * @param hate The hate of this {@link AzureContentSafety} + * @return The same instance of this {@link AzureContentSafety} class + */ + @Nonnull + public AzureContentSafety hate(@Nonnull final AzureThreshold hate) { this.hate = hate; return this; } - /** - * Get hate - * @return hate The hate of this {@link AzureContentSafety} instance. - */ - @Nonnull public AzureThreshold getHate() { + /** + * Get hate + * + * @return hate The hate of this {@link AzureContentSafety} instance. + */ + @Nonnull + public AzureThreshold getHate() { return hate; } /** * Set the hate of this {@link AzureContentSafety} instance. * - * @param hate The hate of this {@link AzureContentSafety} + * @param hate The hate of this {@link AzureContentSafety} */ - public void setHate( @Nonnull final AzureThreshold hate) { + public void setHate(@Nonnull final AzureThreshold hate) { this.hate = hate; } - /** - * Set the selfHarm of this {@link AzureContentSafety} instance and return the same instance. - * - * @param selfHarm The selfHarm of this {@link AzureContentSafety} - * @return The same instance of this {@link AzureContentSafety} class - */ - @Nonnull public AzureContentSafety selfHarm(@Nonnull final AzureThreshold selfHarm) { + /** + * Set the selfHarm of this {@link AzureContentSafety} instance and return the same instance. + * + * @param selfHarm The selfHarm of this {@link AzureContentSafety} + * @return The same instance of this {@link AzureContentSafety} class + */ + @Nonnull + public AzureContentSafety selfHarm(@Nonnull final AzureThreshold selfHarm) { this.selfHarm = selfHarm; return this; } - /** - * Get selfHarm - * @return selfHarm The selfHarm of this {@link AzureContentSafety} instance. - */ - @Nonnull public AzureThreshold getSelfHarm() { + /** + * Get selfHarm + * + * @return selfHarm The selfHarm of this {@link AzureContentSafety} instance. + */ + @Nonnull + public AzureThreshold getSelfHarm() { return selfHarm; } /** * Set the selfHarm of this {@link AzureContentSafety} instance. * - * @param selfHarm The selfHarm of this {@link AzureContentSafety} + * @param selfHarm The selfHarm of this {@link AzureContentSafety} */ - public void setSelfHarm( @Nonnull final AzureThreshold selfHarm) { + public void setSelfHarm(@Nonnull final AzureThreshold selfHarm) { this.selfHarm = selfHarm; } - /** - * Set the sexual of this {@link AzureContentSafety} instance and return the same instance. - * - * @param sexual The sexual of this {@link AzureContentSafety} - * @return The same instance of this {@link AzureContentSafety} class - */ - @Nonnull public AzureContentSafety sexual(@Nonnull final AzureThreshold sexual) { + /** + * Set the sexual of this {@link AzureContentSafety} instance and return the same instance. + * + * @param sexual The sexual of this {@link AzureContentSafety} + * @return The same instance of this {@link AzureContentSafety} class + */ + @Nonnull + public AzureContentSafety sexual(@Nonnull final AzureThreshold sexual) { this.sexual = sexual; return this; } - /** - * Get sexual - * @return sexual The sexual of this {@link AzureContentSafety} instance. - */ - @Nonnull public AzureThreshold getSexual() { + /** + * Get sexual + * + * @return sexual The sexual of this {@link AzureContentSafety} instance. + */ + @Nonnull + public AzureThreshold getSexual() { return sexual; } /** * Set the sexual of this {@link AzureContentSafety} instance. * - * @param sexual The sexual of this {@link AzureContentSafety} + * @param sexual The sexual of this {@link AzureContentSafety} */ - public void setSexual( @Nonnull final AzureThreshold sexual) { + public void setSexual(@Nonnull final AzureThreshold sexual) { this.sexual = sexual; } - /** - * Set the violence of this {@link AzureContentSafety} instance and return the same instance. - * - * @param violence The violence of this {@link AzureContentSafety} - * @return The same instance of this {@link AzureContentSafety} class - */ - @Nonnull public AzureContentSafety violence(@Nonnull final AzureThreshold violence) { + /** + * Set the violence of this {@link AzureContentSafety} instance and return the same instance. + * + * @param violence The violence of this {@link AzureContentSafety} + * @return The same instance of this {@link AzureContentSafety} class + */ + @Nonnull + public AzureContentSafety violence(@Nonnull final AzureThreshold violence) { this.violence = violence; return this; } - /** - * Get violence - * @return violence The violence of this {@link AzureContentSafety} instance. - */ - @Nonnull public AzureThreshold getViolence() { + /** + * Get violence + * + * @return violence The violence of this {@link AzureContentSafety} instance. + */ + @Nonnull + public AzureThreshold getViolence() { return violence; } /** * Set the violence of this {@link AzureContentSafety} instance. * - * @param violence The violence of this {@link AzureContentSafety} + * @param violence The violence of this {@link AzureContentSafety} */ - public void setViolence( @Nonnull final AzureThreshold violence) { + public void setViolence(@Nonnull final AzureThreshold violence) { this.violence = violence; } /** * Get the names of the unrecognizable properties of the {@link AzureContentSafety}. + * * @return The set of properties names */ @JsonIgnore @@ -184,31 +183,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link AzureContentSafety} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("AzureContentSafety has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("AzureContentSafety has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link AzureContentSafety} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link AzureContentSafety} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -218,11 +217,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final AzureContentSafety azureContentSafety = (AzureContentSafety) o; - return Objects.equals(this.cloudSdkCustomFields, azureContentSafety.cloudSdkCustomFields) && - Objects.equals(this.hate, azureContentSafety.hate) && - Objects.equals(this.selfHarm, azureContentSafety.selfHarm) && - Objects.equals(this.sexual, azureContentSafety.sexual) && - Objects.equals(this.violence, azureContentSafety.violence); + return Objects.equals(this.cloudSdkCustomFields, azureContentSafety.cloudSdkCustomFields) + && Objects.equals(this.hate, azureContentSafety.hate) + && Objects.equals(this.selfHarm, azureContentSafety.selfHarm) + && Objects.equals(this.sexual, azureContentSafety.sexual) + && Objects.equals(this.violence, azureContentSafety.violence); } @Override @@ -231,21 +230,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class AzureContentSafety {\n"); sb.append(" hate: ").append(toIndentedString(hate)).append("\n"); sb.append(" selfHarm: ").append(toIndentedString(selfHarm)).append("\n"); sb.append(" sexual: ").append(toIndentedString(sexual)).append("\n"); sb.append(" violence: ").append(toIndentedString(violence)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -254,12 +255,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link AzureContentSafety} instance. No arguments are required. - */ - public static AzureContentSafety create() { - return new AzureContentSafety(); - } - + /** Create a new {@link AzureContentSafety} instance. No arguments are required. */ + public static AzureContentSafety create() { + return new AzureContentSafety(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureThreshold.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureThreshold.java index aed788fc..3830ee75 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureThreshold.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/AzureThreshold.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,18 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Gets or Sets AzureThreshold - */ +/** Gets or Sets AzureThreshold */ public enum AzureThreshold { - NUMBER_0(0), - + NUMBER_2(2), - + NUMBER_4(4), - + NUMBER_6(6); private final Integer value; @@ -64,7 +44,8 @@ public Integer getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -72,7 +53,6 @@ public Integer getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -85,4 +65,3 @@ public static AzureThreshold fromValue(@Nonnull final Integer value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java index 8ce9acbc..065a4555 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ChatMessage.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * ChatMessage - */ +/** ChatMessage */ // CHECKSTYLE:OFF -public class ChatMessage +public class ChatMessage // CHECKSTYLE:ON { @JsonProperty("role") @@ -48,69 +35,76 @@ public class ChatMessage @JsonProperty("content") private String content; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected ChatMessage() { } - - /** - * Set the role of this {@link ChatMessage} instance and return the same instance. - * - * @param role The role of this {@link ChatMessage} - * @return The same instance of this {@link ChatMessage} class - */ - @Nonnull public ChatMessage role(@Nonnull final String role) { + + protected ChatMessage() {} + + /** + * Set the role of this {@link ChatMessage} instance and return the same instance. + * + * @param role The role of this {@link ChatMessage} + * @return The same instance of this {@link ChatMessage} class + */ + @Nonnull + public ChatMessage role(@Nonnull final String role) { this.role = role; return this; } - /** - * Get role - * @return role The role of this {@link ChatMessage} instance. - */ - @Nonnull public String getRole() { + /** + * Get role + * + * @return role The role of this {@link ChatMessage} instance. + */ + @Nonnull + public String getRole() { return role; } /** * Set the role of this {@link ChatMessage} instance. * - * @param role The role of this {@link ChatMessage} + * @param role The role of this {@link ChatMessage} */ - public void setRole( @Nonnull final String role) { + public void setRole(@Nonnull final String role) { this.role = role; } - /** - * Set the content of this {@link ChatMessage} instance and return the same instance. - * - * @param content The content of this {@link ChatMessage} - * @return The same instance of this {@link ChatMessage} class - */ - @Nonnull public ChatMessage content(@Nonnull final String content) { + /** + * Set the content of this {@link ChatMessage} instance and return the same instance. + * + * @param content The content of this {@link ChatMessage} + * @return The same instance of this {@link ChatMessage} class + */ + @Nonnull + public ChatMessage content(@Nonnull final String content) { this.content = content; return this; } - /** - * Get content - * @return content The content of this {@link ChatMessage} instance. - */ - @Nonnull public String getContent() { + /** + * Get content + * + * @return content The content of this {@link ChatMessage} instance. + */ + @Nonnull + public String getContent() { return content; } /** * Set the content of this {@link ChatMessage} instance. * - * @param content The content of this {@link ChatMessage} + * @param content The content of this {@link ChatMessage} */ - public void setContent( @Nonnull final String content) { + public void setContent(@Nonnull final String content) { this.content = content; } /** * Get the names of the unrecognizable properties of the {@link ChatMessage}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link ChatMessage} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("ChatMessage has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("ChatMessage has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link ChatMessage} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link ChatMessage} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final ChatMessage chatMessage = (ChatMessage) o; - return Objects.equals(this.cloudSdkCustomFields, chatMessage.cloudSdkCustomFields) && - Objects.equals(this.role, chatMessage.role) && - Objects.equals(this.content, chatMessage.content); + return Objects.equals(this.cloudSdkCustomFields, chatMessage.cloudSdkCustomFields) + && Objects.equals(this.role, chatMessage.role) + && Objects.equals(this.content, chatMessage.content); } @Override @@ -166,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class ChatMessage {\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" content: ").append(toIndentedString(content)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,36 +183,33 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link ChatMessage} instance + * with all required arguments. + */ + public static Builder create() { + return (role) -> (content) -> new ChatMessage().role(role).content(content); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link ChatMessage} instance with all required arguments. - */ - public static Builder create() { - return (role) -> (content) -> new ChatMessage().role(role).content(content); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the role of this {@link ChatMessage} instance. - * - * @param role The role of this {@link ChatMessage} - * @return The ChatMessage builder. - */ - Builder1 role( @Nonnull final String role); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the content of this {@link ChatMessage} instance. - * - * @param content The content of this {@link ChatMessage} - * @return The ChatMessage instance. - */ - ChatMessage content( @Nonnull final String content); - } + * Set the role of this {@link ChatMessage} instance. + * + * @param role The role of this {@link ChatMessage} + * @return The ChatMessage builder. + */ + Builder1 role(@Nonnull final String role); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the content of this {@link ChatMessage} instance. + * + * @param content The content of this {@link ChatMessage} + * @return The ChatMessage instance. + */ + ChatMessage content(@Nonnull final String content); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java index 1273a5af..f99de4e8 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostRequest.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.ChatMessage; -import com.sap.ai.sdk.orchestration.client.model.OrchestrationConfig; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * CompletionPostRequest - */ +/** CompletionPostRequest */ // CHECKSTYLE:OFF -public class CompletionPostRequest +public class CompletionPostRequest // CHECKSTYLE:ON { @JsonProperty("orchestration_config") @@ -58,95 +41,115 @@ public class CompletionPostRequest @JsonProperty("messages_history") private List messagesHistory; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected CompletionPostRequest() { } - /** - * Set the orchestrationConfig of this {@link CompletionPostRequest} instance and return the same instance. - * - * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} - * @return The same instance of this {@link CompletionPostRequest} class - */ - @Nonnull public CompletionPostRequest orchestrationConfig(@Nonnull final OrchestrationConfig orchestrationConfig) { + protected CompletionPostRequest() {} + + /** + * Set the orchestrationConfig of this {@link CompletionPostRequest} instance and return the same + * instance. + * + * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} + * @return The same instance of this {@link CompletionPostRequest} class + */ + @Nonnull + public CompletionPostRequest orchestrationConfig( + @Nonnull final OrchestrationConfig orchestrationConfig) { this.orchestrationConfig = orchestrationConfig; return this; } - /** - * Get orchestrationConfig - * @return orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} instance. - */ - @Nonnull public OrchestrationConfig getOrchestrationConfig() { + /** + * Get orchestrationConfig + * + * @return orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} + * instance. + */ + @Nonnull + public OrchestrationConfig getOrchestrationConfig() { return orchestrationConfig; } /** * Set the orchestrationConfig of this {@link CompletionPostRequest} instance. * - * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} + * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} */ - public void setOrchestrationConfig( @Nonnull final OrchestrationConfig orchestrationConfig) { + public void setOrchestrationConfig(@Nonnull final OrchestrationConfig orchestrationConfig) { this.orchestrationConfig = orchestrationConfig; } - /** - * Set the inputParams of this {@link CompletionPostRequest} instance and return the same instance. - * - * @param inputParams The inputParams of this {@link CompletionPostRequest} - * @return The same instance of this {@link CompletionPostRequest} class - */ - @Nonnull public CompletionPostRequest inputParams(@Nonnull final Map inputParams) { + /** + * Set the inputParams of this {@link CompletionPostRequest} instance and return the same + * instance. + * + * @param inputParams The inputParams of this {@link CompletionPostRequest} + * @return The same instance of this {@link CompletionPostRequest} class + */ + @Nonnull + public CompletionPostRequest inputParams(@Nonnull final Map inputParams) { this.inputParams = inputParams; return this; } - /** - * Put one inputParams instance to this {@link CompletionPostRequest} instance. - * @param key The String key of this inputParams instance - * @param inputParamsItem The inputParams that should be added under the given key - * @return The same instance of type {@link CompletionPostRequest} - */ - @Nonnull public CompletionPostRequest putinputParamsItem(@Nonnull final String key, @Nonnull final String inputParamsItem) { - this.inputParams = new HashMap<>(); + /** + * Put one inputParams instance to this {@link CompletionPostRequest} instance. + * + * @param key The String key of this inputParams instance + * @param inputParamsItem The inputParams that should be added under the given key + * @return The same instance of type {@link CompletionPostRequest} + */ + @Nonnull + public CompletionPostRequest putinputParamsItem( + @Nonnull final String key, @Nonnull final String inputParamsItem) { + this.inputParams = new HashMap<>(); this.inputParams.put(key, inputParamsItem); return this; } - /** - * Get inputParams - * @return inputParams The inputParams of this {@link CompletionPostRequest} instance. - */ - @Nonnull public Map getInputParams() { + /** + * Get inputParams + * + * @return inputParams The inputParams of this {@link CompletionPostRequest} instance. + */ + @Nonnull + public Map getInputParams() { return inputParams; } /** * Set the inputParams of this {@link CompletionPostRequest} instance. * - * @param inputParams The inputParams of this {@link CompletionPostRequest} + * @param inputParams The inputParams of this {@link CompletionPostRequest} */ - public void setInputParams( @Nonnull final Map inputParams) { + public void setInputParams(@Nonnull final Map inputParams) { this.inputParams = inputParams; } - /** - * Set the messagesHistory of this {@link CompletionPostRequest} instance and return the same instance. - * - * @param messagesHistory History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message - * @return The same instance of this {@link CompletionPostRequest} class - */ - @Nonnull public CompletionPostRequest messagesHistory(@Nonnull final List messagesHistory) { + /** + * Set the messagesHistory of this {@link CompletionPostRequest} instance and return the same + * instance. + * + * @param messagesHistory History of chat messages. Can be used to provide system and assistant + * messages to set the context of the conversation. Will be merged with the template message + * @return The same instance of this {@link CompletionPostRequest} class + */ + @Nonnull + public CompletionPostRequest messagesHistory(@Nonnull final List messagesHistory) { this.messagesHistory = messagesHistory; return this; } + /** * Add one messagesHistory instance to this {@link CompletionPostRequest}. + * * @param messagesHistoryItem The messagesHistory that should be added * @return The same instance of type {@link CompletionPostRequest} */ - @Nonnull public CompletionPostRequest addMessagesHistoryItem( @Nonnull final ChatMessage messagesHistoryItem) { + @Nonnull + public CompletionPostRequest addMessagesHistoryItem( + @Nonnull final ChatMessage messagesHistoryItem) { if (this.messagesHistory == null) { this.messagesHistory = new ArrayList<>(); } @@ -154,25 +157,30 @@ public void setInputParams( @Nonnull final Map inputParams) { return this; } - /** - * History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message - * @return messagesHistory The messagesHistory of this {@link CompletionPostRequest} instance. - */ - @Nonnull public List getMessagesHistory() { + /** + * History of chat messages. Can be used to provide system and assistant messages to set the + * context of the conversation. Will be merged with the template message + * + * @return messagesHistory The messagesHistory of this {@link CompletionPostRequest} instance. + */ + @Nonnull + public List getMessagesHistory() { return messagesHistory; } /** * Set the messagesHistory of this {@link CompletionPostRequest} instance. * - * @param messagesHistory History of chat messages. Can be used to provide system and assistant messages to set the context of the conversation. Will be merged with the template message + * @param messagesHistory History of chat messages. Can be used to provide system and assistant + * messages to set the context of the conversation. Will be merged with the template message */ - public void setMessagesHistory( @Nonnull final List messagesHistory) { + public void setMessagesHistory(@Nonnull final List messagesHistory) { this.messagesHistory = messagesHistory; } /** * Get the names of the unrecognizable properties of the {@link CompletionPostRequest}. + * * @return The set of properties names */ @JsonIgnore @@ -183,31 +191,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link CompletionPostRequest} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("CompletionPostRequest has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "CompletionPostRequest has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link CompletionPostRequest} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link CompletionPostRequest} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -217,10 +226,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final CompletionPostRequest completionPostRequest = (CompletionPostRequest) o; - return Objects.equals(this.cloudSdkCustomFields, completionPostRequest.cloudSdkCustomFields) && - Objects.equals(this.orchestrationConfig, completionPostRequest.orchestrationConfig) && - Objects.equals(this.inputParams, completionPostRequest.inputParams) && - Objects.equals(this.messagesHistory, completionPostRequest.messagesHistory); + return Objects.equals(this.cloudSdkCustomFields, completionPostRequest.cloudSdkCustomFields) + && Objects.equals(this.orchestrationConfig, completionPostRequest.orchestrationConfig) + && Objects.equals(this.inputParams, completionPostRequest.inputParams) + && Objects.equals(this.messagesHistory, completionPostRequest.messagesHistory); } @Override @@ -229,20 +238,24 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class CompletionPostRequest {\n"); - sb.append(" orchestrationConfig: ").append(toIndentedString(orchestrationConfig)).append("\n"); + sb.append(" orchestrationConfig: ") + .append(toIndentedString(orchestrationConfig)) + .append("\n"); sb.append(" inputParams: ").append(toIndentedString(inputParams)).append("\n"); sb.append(" messagesHistory: ").append(toIndentedString(messagesHistory)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -251,36 +264,37 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link CompletionPostRequest} + * instance with all required arguments. + */ + public static Builder create() { + return (orchestrationConfig) -> + (inputParams) -> + new CompletionPostRequest() + .orchestrationConfig(orchestrationConfig) + .inputParams(inputParams); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link CompletionPostRequest} instance with all required arguments. - */ - public static Builder create() { - return (orchestrationConfig) -> (inputParams) -> new CompletionPostRequest().orchestrationConfig(orchestrationConfig).inputParams(inputParams); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the orchestrationConfig of this {@link CompletionPostRequest} instance. - * - * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} - * @return The CompletionPostRequest builder. - */ - Builder1 orchestrationConfig( @Nonnull final OrchestrationConfig orchestrationConfig); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the inputParams of this {@link CompletionPostRequest} instance. - * - * @param inputParams The inputParams of this {@link CompletionPostRequest} - * @return The CompletionPostRequest instance. - */ - CompletionPostRequest inputParams( @Nonnull final Map inputParams); - } + * Set the orchestrationConfig of this {@link CompletionPostRequest} instance. + * + * @param orchestrationConfig The orchestrationConfig of this {@link CompletionPostRequest} + * @return The CompletionPostRequest builder. + */ + Builder1 orchestrationConfig(@Nonnull final OrchestrationConfig orchestrationConfig); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the inputParams of this {@link CompletionPostRequest} instance. + * + * @param inputParams The inputParams of this {@link CompletionPostRequest} + * @return The CompletionPostRequest instance. + */ + CompletionPostRequest inputParams(@Nonnull final Map inputParams); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java index ecc27e46..91e9dee1 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/CompletionPostResponse.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.LLMModuleResult; -import com.sap.ai.sdk.orchestration.client.model.ModuleResults; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * CompletionPostResponse - */ +/** CompletionPostResponse */ // CHECKSTYLE:OFF -public class CompletionPostResponse +public class CompletionPostResponse // CHECKSTYLE:ON { @JsonProperty("request_id") @@ -53,97 +38,111 @@ public class CompletionPostResponse @JsonProperty("orchestration_result") private LLMModuleResult orchestrationResult; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected CompletionPostResponse() { } - /** - * Set the requestId of this {@link CompletionPostResponse} instance and return the same instance. - * - * @param requestId ID of the request - * @return The same instance of this {@link CompletionPostResponse} class - */ - @Nonnull public CompletionPostResponse requestId(@Nonnull final String requestId) { + protected CompletionPostResponse() {} + + /** + * Set the requestId of this {@link CompletionPostResponse} instance and return the same instance. + * + * @param requestId ID of the request + * @return The same instance of this {@link CompletionPostResponse} class + */ + @Nonnull + public CompletionPostResponse requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * ID of the request - * @return requestId The requestId of this {@link CompletionPostResponse} instance. - */ - @Nonnull public String getRequestId() { + /** + * ID of the request + * + * @return requestId The requestId of this {@link CompletionPostResponse} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link CompletionPostResponse} instance. * - * @param requestId ID of the request + * @param requestId ID of the request */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the moduleResults of this {@link CompletionPostResponse} instance and return the same instance. - * - * @param moduleResults The moduleResults of this {@link CompletionPostResponse} - * @return The same instance of this {@link CompletionPostResponse} class - */ - @Nonnull public CompletionPostResponse moduleResults(@Nonnull final ModuleResults moduleResults) { + /** + * Set the moduleResults of this {@link CompletionPostResponse} instance and return the same + * instance. + * + * @param moduleResults The moduleResults of this {@link CompletionPostResponse} + * @return The same instance of this {@link CompletionPostResponse} class + */ + @Nonnull + public CompletionPostResponse moduleResults(@Nonnull final ModuleResults moduleResults) { this.moduleResults = moduleResults; return this; } - /** - * Get moduleResults - * @return moduleResults The moduleResults of this {@link CompletionPostResponse} instance. - */ - @Nonnull public ModuleResults getModuleResults() { + /** + * Get moduleResults + * + * @return moduleResults The moduleResults of this {@link CompletionPostResponse} instance. + */ + @Nonnull + public ModuleResults getModuleResults() { return moduleResults; } /** * Set the moduleResults of this {@link CompletionPostResponse} instance. * - * @param moduleResults The moduleResults of this {@link CompletionPostResponse} + * @param moduleResults The moduleResults of this {@link CompletionPostResponse} */ - public void setModuleResults( @Nonnull final ModuleResults moduleResults) { + public void setModuleResults(@Nonnull final ModuleResults moduleResults) { this.moduleResults = moduleResults; } - /** - * Set the orchestrationResult of this {@link CompletionPostResponse} instance and return the same instance. - * - * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} - * @return The same instance of this {@link CompletionPostResponse} class - */ - @Nonnull public CompletionPostResponse orchestrationResult(@Nonnull final LLMModuleResult orchestrationResult) { + /** + * Set the orchestrationResult of this {@link CompletionPostResponse} instance and return the same + * instance. + * + * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} + * @return The same instance of this {@link CompletionPostResponse} class + */ + @Nonnull + public CompletionPostResponse orchestrationResult( + @Nonnull final LLMModuleResult orchestrationResult) { this.orchestrationResult = orchestrationResult; return this; } - /** - * Get orchestrationResult - * @return orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} instance. - */ - @Nonnull public LLMModuleResult getOrchestrationResult() { + /** + * Get orchestrationResult + * + * @return orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} + * instance. + */ + @Nonnull + public LLMModuleResult getOrchestrationResult() { return orchestrationResult; } /** * Set the orchestrationResult of this {@link CompletionPostResponse} instance. * - * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} + * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} */ - public void setOrchestrationResult( @Nonnull final LLMModuleResult orchestrationResult) { + public void setOrchestrationResult(@Nonnull final LLMModuleResult orchestrationResult) { this.orchestrationResult = orchestrationResult; } /** * Get the names of the unrecognizable properties of the {@link CompletionPostResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -154,31 +153,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link CompletionPostResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("CompletionPostResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "CompletionPostResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link CompletionPostResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link CompletionPostResponse} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -188,10 +188,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final CompletionPostResponse completionPostResponse = (CompletionPostResponse) o; - return Objects.equals(this.cloudSdkCustomFields, completionPostResponse.cloudSdkCustomFields) && - Objects.equals(this.requestId, completionPostResponse.requestId) && - Objects.equals(this.moduleResults, completionPostResponse.moduleResults) && - Objects.equals(this.orchestrationResult, completionPostResponse.orchestrationResult); + return Objects.equals(this.cloudSdkCustomFields, completionPostResponse.cloudSdkCustomFields) + && Objects.equals(this.requestId, completionPostResponse.requestId) + && Objects.equals(this.moduleResults, completionPostResponse.moduleResults) + && Objects.equals(this.orchestrationResult, completionPostResponse.orchestrationResult); } @Override @@ -200,20 +200,24 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class CompletionPostResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); sb.append(" moduleResults: ").append(toIndentedString(moduleResults)).append("\n"); - sb.append(" orchestrationResult: ").append(toIndentedString(orchestrationResult)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" orchestrationResult: ") + .append(toIndentedString(orchestrationResult)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -222,48 +226,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link CompletionPostResponse} + * instance with all required arguments. + */ + public static Builder create() { + return (requestId) -> + (moduleResults) -> + (orchestrationResult) -> + new CompletionPostResponse() + .requestId(requestId) + .moduleResults(moduleResults) + .orchestrationResult(orchestrationResult); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link CompletionPostResponse} instance with all required arguments. - */ - public static Builder create() { - return (requestId) -> (moduleResults) -> (orchestrationResult) -> new CompletionPostResponse().requestId(requestId).moduleResults(moduleResults).orchestrationResult(orchestrationResult); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the requestId of this {@link CompletionPostResponse} instance. - * - * @param requestId ID of the request - * @return The CompletionPostResponse builder. - */ - Builder1 requestId( @Nonnull final String requestId); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the moduleResults of this {@link CompletionPostResponse} instance. - * - * @param moduleResults The moduleResults of this {@link CompletionPostResponse} - * @return The CompletionPostResponse builder. - */ - Builder2 moduleResults( @Nonnull final ModuleResults moduleResults); - } + * Set the requestId of this {@link CompletionPostResponse} instance. + * + * @param requestId ID of the request + * @return The CompletionPostResponse builder. + */ + Builder1 requestId(@Nonnull final String requestId); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the orchestrationResult of this {@link CompletionPostResponse} instance. - * - * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} - * @return The CompletionPostResponse instance. - */ - CompletionPostResponse orchestrationResult( @Nonnull final LLMModuleResult orchestrationResult); - } + * Set the moduleResults of this {@link CompletionPostResponse} instance. + * + * @param moduleResults The moduleResults of this {@link CompletionPostResponse} + * @return The CompletionPostResponse builder. + */ + Builder2 moduleResults(@Nonnull final ModuleResults moduleResults); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the orchestrationResult of this {@link CompletionPostResponse} instance. + * + * @param orchestrationResult The orchestrationResult of this {@link CompletionPostResponse} + * @return The CompletionPostResponse instance. + */ + CompletionPostResponse orchestrationResult(@Nonnull final LLMModuleResult orchestrationResult); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/DPIEntities.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/DPIEntities.java index 7d2fb2b3..5c52e045 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/DPIEntities.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/DPIEntities.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,58 +12,40 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Default entities supported by data privacy and integration service - */ +/** Default entities supported by data privacy and integration service */ public enum DPIEntities { - PERSON("profile-person"), - + ORG("profile-org"), - + EMAIL("profile-email"), - + PHONE("profile-phone"), - + ADDRESS("profile-address"), - + SAPIDS_INTERNAL("profile-sapids-internal"), - + SAPIDS_PUBLIC("profile-sapids-public"), - + URL("profile-url"), - + IBAN("profile-iban"), - + CREDIT_CARD_NUMBER("profile-credit-card-number"), - + PASSPORT("profile-passport"), - + DRIVERLICENSE("profile-driverlicense"), - + NATIONALITY("profile-nationality"), - + POLITICAL_GROUP("profile-political-group"), - + ETHNICITY("profile-ethnicity"); private final String value; @@ -86,7 +66,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -94,7 +75,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -107,4 +87,3 @@ public static DPIEntities fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java index df9b991e..08f4b5a6 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ErrorResponse.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.ModuleResults; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * ErrorResponse - */ +/** ErrorResponse */ // CHECKSTYLE:OFF -public class ErrorResponse +public class ErrorResponse // CHECKSTYLE:ON { @JsonProperty("request_id") @@ -58,153 +44,169 @@ public class ErrorResponse @JsonProperty("module_results") private ModuleResults moduleResults; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected ErrorResponse() { } - - /** - * Set the requestId of this {@link ErrorResponse} instance and return the same instance. - * - * @param requestId The requestId of this {@link ErrorResponse} - * @return The same instance of this {@link ErrorResponse} class - */ - @Nonnull public ErrorResponse requestId(@Nonnull final String requestId) { + + protected ErrorResponse() {} + + /** + * Set the requestId of this {@link ErrorResponse} instance and return the same instance. + * + * @param requestId The requestId of this {@link ErrorResponse} + * @return The same instance of this {@link ErrorResponse} class + */ + @Nonnull + public ErrorResponse requestId(@Nonnull final String requestId) { this.requestId = requestId; return this; } - /** - * Get requestId - * @return requestId The requestId of this {@link ErrorResponse} instance. - */ - @Nonnull public String getRequestId() { + /** + * Get requestId + * + * @return requestId The requestId of this {@link ErrorResponse} instance. + */ + @Nonnull + public String getRequestId() { return requestId; } /** * Set the requestId of this {@link ErrorResponse} instance. * - * @param requestId The requestId of this {@link ErrorResponse} + * @param requestId The requestId of this {@link ErrorResponse} */ - public void setRequestId( @Nonnull final String requestId) { + public void setRequestId(@Nonnull final String requestId) { this.requestId = requestId; } - /** - * Set the code of this {@link ErrorResponse} instance and return the same instance. - * - * @param code The code of this {@link ErrorResponse} - * @return The same instance of this {@link ErrorResponse} class - */ - @Nonnull public ErrorResponse code(@Nonnull final Integer code) { + /** + * Set the code of this {@link ErrorResponse} instance and return the same instance. + * + * @param code The code of this {@link ErrorResponse} + * @return The same instance of this {@link ErrorResponse} class + */ + @Nonnull + public ErrorResponse code(@Nonnull final Integer code) { this.code = code; return this; } - /** - * Get code - * @return code The code of this {@link ErrorResponse} instance. - */ - @Nonnull public Integer getCode() { + /** + * Get code + * + * @return code The code of this {@link ErrorResponse} instance. + */ + @Nonnull + public Integer getCode() { return code; } /** * Set the code of this {@link ErrorResponse} instance. * - * @param code The code of this {@link ErrorResponse} + * @param code The code of this {@link ErrorResponse} */ - public void setCode( @Nonnull final Integer code) { + public void setCode(@Nonnull final Integer code) { this.code = code; } - /** - * Set the message of this {@link ErrorResponse} instance and return the same instance. - * - * @param message The message of this {@link ErrorResponse} - * @return The same instance of this {@link ErrorResponse} class - */ - @Nonnull public ErrorResponse message(@Nonnull final String message) { + /** + * Set the message of this {@link ErrorResponse} instance and return the same instance. + * + * @param message The message of this {@link ErrorResponse} + * @return The same instance of this {@link ErrorResponse} class + */ + @Nonnull + public ErrorResponse message(@Nonnull final String message) { this.message = message; return this; } - /** - * Get message - * @return message The message of this {@link ErrorResponse} instance. - */ - @Nonnull public String getMessage() { + /** + * Get message + * + * @return message The message of this {@link ErrorResponse} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link ErrorResponse} instance. * - * @param message The message of this {@link ErrorResponse} + * @param message The message of this {@link ErrorResponse} */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the location of this {@link ErrorResponse} instance and return the same instance. - * - * @param location Where the error occurred - * @return The same instance of this {@link ErrorResponse} class - */ - @Nonnull public ErrorResponse location(@Nonnull final String location) { + /** + * Set the location of this {@link ErrorResponse} instance and return the same instance. + * + * @param location Where the error occurred + * @return The same instance of this {@link ErrorResponse} class + */ + @Nonnull + public ErrorResponse location(@Nonnull final String location) { this.location = location; return this; } - /** - * Where the error occurred - * @return location The location of this {@link ErrorResponse} instance. - */ - @Nonnull public String getLocation() { + /** + * Where the error occurred + * + * @return location The location of this {@link ErrorResponse} instance. + */ + @Nonnull + public String getLocation() { return location; } /** * Set the location of this {@link ErrorResponse} instance. * - * @param location Where the error occurred + * @param location Where the error occurred */ - public void setLocation( @Nonnull final String location) { + public void setLocation(@Nonnull final String location) { this.location = location; } - /** - * Set the moduleResults of this {@link ErrorResponse} instance and return the same instance. - * - * @param moduleResults The moduleResults of this {@link ErrorResponse} - * @return The same instance of this {@link ErrorResponse} class - */ - @Nonnull public ErrorResponse moduleResults(@Nonnull final ModuleResults moduleResults) { + /** + * Set the moduleResults of this {@link ErrorResponse} instance and return the same instance. + * + * @param moduleResults The moduleResults of this {@link ErrorResponse} + * @return The same instance of this {@link ErrorResponse} class + */ + @Nonnull + public ErrorResponse moduleResults(@Nonnull final ModuleResults moduleResults) { this.moduleResults = moduleResults; return this; } - /** - * Get moduleResults - * @return moduleResults The moduleResults of this {@link ErrorResponse} instance. - */ - @Nonnull public ModuleResults getModuleResults() { + /** + * Get moduleResults + * + * @return moduleResults The moduleResults of this {@link ErrorResponse} instance. + */ + @Nonnull + public ModuleResults getModuleResults() { return moduleResults; } /** * Set the moduleResults of this {@link ErrorResponse} instance. * - * @param moduleResults The moduleResults of this {@link ErrorResponse} + * @param moduleResults The moduleResults of this {@link ErrorResponse} */ - public void setModuleResults( @Nonnull final ModuleResults moduleResults) { + public void setModuleResults(@Nonnull final ModuleResults moduleResults) { this.moduleResults = moduleResults; } /** * Get the names of the unrecognizable properties of the {@link ErrorResponse}. + * * @return The set of properties names */ @JsonIgnore @@ -215,31 +217,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link ErrorResponse} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("ErrorResponse has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("ErrorResponse has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link ErrorResponse} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link ErrorResponse} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -249,12 +251,12 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final ErrorResponse errorResponse = (ErrorResponse) o; - return Objects.equals(this.cloudSdkCustomFields, errorResponse.cloudSdkCustomFields) && - Objects.equals(this.requestId, errorResponse.requestId) && - Objects.equals(this.code, errorResponse.code) && - Objects.equals(this.message, errorResponse.message) && - Objects.equals(this.location, errorResponse.location) && - Objects.equals(this.moduleResults, errorResponse.moduleResults); + return Objects.equals(this.cloudSdkCustomFields, errorResponse.cloudSdkCustomFields) + && Objects.equals(this.requestId, errorResponse.requestId) + && Objects.equals(this.code, errorResponse.code) + && Objects.equals(this.message, errorResponse.message) + && Objects.equals(this.location, errorResponse.location) + && Objects.equals(this.moduleResults, errorResponse.moduleResults); } @Override @@ -263,7 +265,8 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class ErrorResponse {\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); @@ -271,14 +274,15 @@ public int hashCode() { sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append(" moduleResults: ").append(toIndentedString(moduleResults)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -287,60 +291,63 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link ErrorResponse} instance + * with all required arguments. + */ + public static Builder create() { + return (requestId) -> + (code) -> + (message) -> + (location) -> + new ErrorResponse() + .requestId(requestId) + .code(code) + .message(message) + .location(location); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link ErrorResponse} instance with all required arguments. - */ - public static Builder create() { - return (requestId) -> (code) -> (message) -> (location) -> new ErrorResponse().requestId(requestId).code(code).message(message).location(location); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the requestId of this {@link ErrorResponse} instance. - * - * @param requestId The requestId of this {@link ErrorResponse} - * @return The ErrorResponse builder. - */ - Builder1 requestId( @Nonnull final String requestId); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the code of this {@link ErrorResponse} instance. - * - * @param code The code of this {@link ErrorResponse} - * @return The ErrorResponse builder. - */ - Builder2 code( @Nonnull final Integer code); - } + * Set the requestId of this {@link ErrorResponse} instance. + * + * @param requestId The requestId of this {@link ErrorResponse} + * @return The ErrorResponse builder. + */ + Builder1 requestId(@Nonnull final String requestId); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the message of this {@link ErrorResponse} instance. - * - * @param message The message of this {@link ErrorResponse} - * @return The ErrorResponse builder. - */ - Builder3 message( @Nonnull final String message); - } + * Set the code of this {@link ErrorResponse} instance. + * + * @param code The code of this {@link ErrorResponse} + * @return The ErrorResponse builder. + */ + Builder2 code(@Nonnull final Integer code); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the location of this {@link ErrorResponse} instance. - * - * @param location Where the error occurred - * @return The ErrorResponse instance. - */ - ErrorResponse location( @Nonnull final String location); - } + * Set the message of this {@link ErrorResponse} instance. + * + * @param message The message of this {@link ErrorResponse} + * @return The ErrorResponse builder. + */ + Builder3 message(@Nonnull final String message); + } + /** Builder helper class. */ + public interface Builder3 { + /** + * Set the location of this {@link ErrorResponse} instance. + * + * @param location Where the error occurred + * @return The ErrorResponse instance. + */ + ErrorResponse location(@Nonnull final String location); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java index 5d6fb821..aed1af6a 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Filter.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.FilterConfig; -import com.sap.ai.sdk.orchestration.client.model.ProviderType; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Filter - */ +/** Filter */ // CHECKSTYLE:OFF -public class Filter +public class Filter // CHECKSTYLE:ON { @JsonProperty("type") @@ -50,69 +35,76 @@ public class Filter @JsonProperty("config") private FilterConfig config; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected Filter() { } - - /** - * Set the type of this {@link Filter} instance and return the same instance. - * - * @param type The type of this {@link Filter} - * @return The same instance of this {@link Filter} class - */ - @Nonnull public Filter type(@Nonnull final ProviderType type) { + + protected Filter() {} + + /** + * Set the type of this {@link Filter} instance and return the same instance. + * + * @param type The type of this {@link Filter} + * @return The same instance of this {@link Filter} class + */ + @Nonnull + public Filter type(@Nonnull final ProviderType type) { this.type = type; return this; } - /** - * Get type - * @return type The type of this {@link Filter} instance. - */ - @Nonnull public ProviderType getType() { + /** + * Get type + * + * @return type The type of this {@link Filter} instance. + */ + @Nonnull + public ProviderType getType() { return type; } /** * Set the type of this {@link Filter} instance. * - * @param type The type of this {@link Filter} + * @param type The type of this {@link Filter} */ - public void setType( @Nonnull final ProviderType type) { + public void setType(@Nonnull final ProviderType type) { this.type = type; } - /** - * Set the config of this {@link Filter} instance and return the same instance. - * - * @param config The config of this {@link Filter} - * @return The same instance of this {@link Filter} class - */ - @Nonnull public Filter config(@Nonnull final FilterConfig config) { + /** + * Set the config of this {@link Filter} instance and return the same instance. + * + * @param config The config of this {@link Filter} + * @return The same instance of this {@link Filter} class + */ + @Nonnull + public Filter config(@Nonnull final FilterConfig config) { this.config = config; return this; } - /** - * Get config - * @return config The config of this {@link Filter} instance. - */ - @Nonnull public FilterConfig getConfig() { + /** + * Get config + * + * @return config The config of this {@link Filter} instance. + */ + @Nonnull + public FilterConfig getConfig() { return config; } /** * Set the config of this {@link Filter} instance. * - * @param config The config of this {@link Filter} + * @param config The config of this {@link Filter} */ - public void setConfig( @Nonnull final FilterConfig config) { + public void setConfig(@Nonnull final FilterConfig config) { this.config = config; } /** * Get the names of the unrecognizable properties of the {@link Filter}. + * * @return The set of properties names */ @JsonIgnore @@ -123,31 +115,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link Filter} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("Filter has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("Filter has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link Filter} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link Filter} instance. If the map previously contained + * a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -157,9 +149,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final Filter filter = (Filter) o; - return Objects.equals(this.cloudSdkCustomFields, filter.cloudSdkCustomFields) && - Objects.equals(this.type, filter.type) && - Objects.equals(this.config, filter.config); + return Objects.equals(this.cloudSdkCustomFields, filter.cloudSdkCustomFields) + && Objects.equals(this.type, filter.type) + && Objects.equals(this.config, filter.config); } @Override @@ -168,19 +160,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class Filter {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" config: ").append(toIndentedString(config)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -189,24 +183,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link Filter} instance with all required arguments. - */ - public static Builder create() { - return (type) -> new Filter().type(type); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the type of this {@link Filter} instance. - * - * @param type The type of this {@link Filter} - * @return The Filter instance. - */ - Filter type( @Nonnull final ProviderType type); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link Filter} instance with + * all required arguments. + */ + public static Builder create() { + return (type) -> new Filter().type(type); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the type of this {@link Filter} instance. + * + * @param type The type of this {@link Filter} + * @return The Filter instance. + */ + Filter type(@Nonnull final ProviderType type); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java index eca6c241..2517018c 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilterConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,34 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.AzureContentSafety; -import com.sap.ai.sdk.orchestration.client.model.AzureThreshold; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Filters classifiers to be used - */ +/** Filters classifiers to be used */ // CHECKSTYLE:OFF -public class FilterConfig +public class FilterConfig // CHECKSTYLE:ON { @JsonProperty("Hate") @@ -56,125 +41,138 @@ public class FilterConfig @JsonProperty("Violence") private AzureThreshold violence; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected FilterConfig() { } - /** - * Set the hate of this {@link FilterConfig} instance and return the same instance. - * - * @param hate The hate of this {@link FilterConfig} - * @return The same instance of this {@link FilterConfig} class - */ - @Nonnull public FilterConfig hate(@Nonnull final AzureThreshold hate) { + protected FilterConfig() {} + + /** + * Set the hate of this {@link FilterConfig} instance and return the same instance. + * + * @param hate The hate of this {@link FilterConfig} + * @return The same instance of this {@link FilterConfig} class + */ + @Nonnull + public FilterConfig hate(@Nonnull final AzureThreshold hate) { this.hate = hate; return this; } - /** - * Get hate - * @return hate The hate of this {@link FilterConfig} instance. - */ - @Nonnull public AzureThreshold getHate() { + /** + * Get hate + * + * @return hate The hate of this {@link FilterConfig} instance. + */ + @Nonnull + public AzureThreshold getHate() { return hate; } /** * Set the hate of this {@link FilterConfig} instance. * - * @param hate The hate of this {@link FilterConfig} + * @param hate The hate of this {@link FilterConfig} */ - public void setHate( @Nonnull final AzureThreshold hate) { + public void setHate(@Nonnull final AzureThreshold hate) { this.hate = hate; } - /** - * Set the selfHarm of this {@link FilterConfig} instance and return the same instance. - * - * @param selfHarm The selfHarm of this {@link FilterConfig} - * @return The same instance of this {@link FilterConfig} class - */ - @Nonnull public FilterConfig selfHarm(@Nonnull final AzureThreshold selfHarm) { + /** + * Set the selfHarm of this {@link FilterConfig} instance and return the same instance. + * + * @param selfHarm The selfHarm of this {@link FilterConfig} + * @return The same instance of this {@link FilterConfig} class + */ + @Nonnull + public FilterConfig selfHarm(@Nonnull final AzureThreshold selfHarm) { this.selfHarm = selfHarm; return this; } - /** - * Get selfHarm - * @return selfHarm The selfHarm of this {@link FilterConfig} instance. - */ - @Nonnull public AzureThreshold getSelfHarm() { + /** + * Get selfHarm + * + * @return selfHarm The selfHarm of this {@link FilterConfig} instance. + */ + @Nonnull + public AzureThreshold getSelfHarm() { return selfHarm; } /** * Set the selfHarm of this {@link FilterConfig} instance. * - * @param selfHarm The selfHarm of this {@link FilterConfig} + * @param selfHarm The selfHarm of this {@link FilterConfig} */ - public void setSelfHarm( @Nonnull final AzureThreshold selfHarm) { + public void setSelfHarm(@Nonnull final AzureThreshold selfHarm) { this.selfHarm = selfHarm; } - /** - * Set the sexual of this {@link FilterConfig} instance and return the same instance. - * - * @param sexual The sexual of this {@link FilterConfig} - * @return The same instance of this {@link FilterConfig} class - */ - @Nonnull public FilterConfig sexual(@Nonnull final AzureThreshold sexual) { + /** + * Set the sexual of this {@link FilterConfig} instance and return the same instance. + * + * @param sexual The sexual of this {@link FilterConfig} + * @return The same instance of this {@link FilterConfig} class + */ + @Nonnull + public FilterConfig sexual(@Nonnull final AzureThreshold sexual) { this.sexual = sexual; return this; } - /** - * Get sexual - * @return sexual The sexual of this {@link FilterConfig} instance. - */ - @Nonnull public AzureThreshold getSexual() { + /** + * Get sexual + * + * @return sexual The sexual of this {@link FilterConfig} instance. + */ + @Nonnull + public AzureThreshold getSexual() { return sexual; } /** * Set the sexual of this {@link FilterConfig} instance. * - * @param sexual The sexual of this {@link FilterConfig} + * @param sexual The sexual of this {@link FilterConfig} */ - public void setSexual( @Nonnull final AzureThreshold sexual) { + public void setSexual(@Nonnull final AzureThreshold sexual) { this.sexual = sexual; } - /** - * Set the violence of this {@link FilterConfig} instance and return the same instance. - * - * @param violence The violence of this {@link FilterConfig} - * @return The same instance of this {@link FilterConfig} class - */ - @Nonnull public FilterConfig violence(@Nonnull final AzureThreshold violence) { + /** + * Set the violence of this {@link FilterConfig} instance and return the same instance. + * + * @param violence The violence of this {@link FilterConfig} + * @return The same instance of this {@link FilterConfig} class + */ + @Nonnull + public FilterConfig violence(@Nonnull final AzureThreshold violence) { this.violence = violence; return this; } - /** - * Get violence - * @return violence The violence of this {@link FilterConfig} instance. - */ - @Nonnull public AzureThreshold getViolence() { + /** + * Get violence + * + * @return violence The violence of this {@link FilterConfig} instance. + */ + @Nonnull + public AzureThreshold getViolence() { return violence; } /** * Set the violence of this {@link FilterConfig} instance. * - * @param violence The violence of this {@link FilterConfig} + * @param violence The violence of this {@link FilterConfig} */ - public void setViolence( @Nonnull final AzureThreshold violence) { + public void setViolence(@Nonnull final AzureThreshold violence) { this.violence = violence; } /** * Get the names of the unrecognizable properties of the {@link FilterConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -185,31 +183,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link FilterConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("FilterConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("FilterConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link FilterConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link FilterConfig} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -219,11 +217,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final FilterConfig filterConfig = (FilterConfig) o; - return Objects.equals(this.cloudSdkCustomFields, filterConfig.cloudSdkCustomFields) && - Objects.equals(this.hate, filterConfig.hate) && - Objects.equals(this.selfHarm, filterConfig.selfHarm) && - Objects.equals(this.sexual, filterConfig.sexual) && - Objects.equals(this.violence, filterConfig.violence); + return Objects.equals(this.cloudSdkCustomFields, filterConfig.cloudSdkCustomFields) + && Objects.equals(this.hate, filterConfig.hate) + && Objects.equals(this.selfHarm, filterConfig.selfHarm) + && Objects.equals(this.sexual, filterConfig.sexual) + && Objects.equals(this.violence, filterConfig.violence); } @Override @@ -232,21 +230,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class FilterConfig {\n"); sb.append(" hate: ").append(toIndentedString(hate)).append("\n"); sb.append(" selfHarm: ").append(toIndentedString(selfHarm)).append("\n"); sb.append(" sexual: ").append(toIndentedString(sexual)).append("\n"); sb.append(" violence: ").append(toIndentedString(violence)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -255,12 +255,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link FilterConfig} instance. No arguments are required. - */ - public static FilterConfig create() { - return new FilterConfig(); - } - + /** Create a new {@link FilterConfig} instance. No arguments are required. */ + public static FilterConfig create() { + return new FilterConfig(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java index a9587704..a41ebe05 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,54 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.Filter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * FilteringConfig - */ +/** FilteringConfig */ // CHECKSTYLE:OFF -public class FilteringConfig +public class FilteringConfig // CHECKSTYLE:ON { @JsonProperty("filters") private List filters = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected FilteringConfig() { } - - /** - * Set the filters of this {@link FilteringConfig} instance and return the same instance. - * - * @param filters Filters to be used - * @return The same instance of this {@link FilteringConfig} class - */ - @Nonnull public FilteringConfig filters(@Nonnull final List filters) { + + protected FilteringConfig() {} + + /** + * Set the filters of this {@link FilteringConfig} instance and return the same instance. + * + * @param filters Filters to be used + * @return The same instance of this {@link FilteringConfig} class + */ + @Nonnull + public FilteringConfig filters(@Nonnull final List filters) { this.filters = filters; return this; } + /** * Add one filters instance to this {@link FilteringConfig}. + * * @param filtersItem The filters that should be added * @return The same instance of type {@link FilteringConfig} */ - @Nonnull public FilteringConfig addFiltersItem( @Nonnull final Filter filtersItem) { + @Nonnull + public FilteringConfig addFiltersItem(@Nonnull final Filter filtersItem) { if (this.filters == null) { this.filters = new ArrayList<>(); } @@ -77,25 +67,28 @@ protected FilteringConfig() { } return this; } - /** - * Filters to be used - * @return filters The filters of this {@link FilteringConfig} instance. - */ - @Nonnull public List getFilters() { + /** + * Filters to be used + * + * @return filters The filters of this {@link FilteringConfig} instance. + */ + @Nonnull + public List getFilters() { return filters; } /** * Set the filters of this {@link FilteringConfig} instance. * - * @param filters Filters to be used + * @param filters Filters to be used */ - public void setFilters( @Nonnull final List filters) { + public void setFilters(@Nonnull final List filters) { this.filters = filters; } /** * Get the names of the unrecognizable properties of the {@link FilteringConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -106,31 +99,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link FilteringConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("FilteringConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("FilteringConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link FilteringConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link FilteringConfig} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -140,8 +133,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final FilteringConfig filteringConfig = (FilteringConfig) o; - return Objects.equals(this.cloudSdkCustomFields, filteringConfig.cloudSdkCustomFields) && - Objects.equals(this.filters, filteringConfig.filters); + return Objects.equals(this.cloudSdkCustomFields, filteringConfig.cloudSdkCustomFields) + && Objects.equals(this.filters, filteringConfig.filters); } @Override @@ -150,18 +143,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class FilteringConfig {\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,33 +165,32 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link FilteringConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (filters) -> new FilteringConfig().filters(filters); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link FilteringConfig} instance with all required arguments. - */ - public static Builder create() { - return (filters) -> new FilteringConfig().filters(filters); - } + * Set the filters of this {@link FilteringConfig} instance. + * + * @param filters Filters to be used + * @return The FilteringConfig instance. + */ + FilteringConfig filters(@Nonnull final List filters); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the filters of this {@link FilteringConfig} instance. - * - * @param filters Filters to be used - * @return The FilteringConfig instance. - */ - FilteringConfig filters( @Nonnull final List filters); - /** - * Set the filters of this {@link FilteringConfig} instance. - * - * @param filters Filters to be used - * @return The FilteringConfig instance. - */ - default FilteringConfig filters( @Nonnull final Filter... filters) { - return filters(Arrays.asList(filters)); - } + * Set the filters of this {@link FilteringConfig} instance. + * + * @param filters Filters to be used + * @return The FilteringConfig instance. + */ + default FilteringConfig filters(@Nonnull final Filter... filters) { + return filters(Arrays.asList(filters)); } - + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java index 1f5b7a17..30b2d584 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/FilteringModuleConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,33 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.FilteringConfig; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * FilteringModuleConfig - */ +/** FilteringModuleConfig */ // CHECKSTYLE:OFF -public class FilteringModuleConfig +public class FilteringModuleConfig // CHECKSTYLE:ON { @JsonProperty("input") @@ -49,69 +35,76 @@ public class FilteringModuleConfig @JsonProperty("output") private FilteringConfig output; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected FilteringModuleConfig() { } - - /** - * Set the input of this {@link FilteringModuleConfig} instance and return the same instance. - * - * @param input The input of this {@link FilteringModuleConfig} - * @return The same instance of this {@link FilteringModuleConfig} class - */ - @Nonnull public FilteringModuleConfig input(@Nonnull final FilteringConfig input) { + + protected FilteringModuleConfig() {} + + /** + * Set the input of this {@link FilteringModuleConfig} instance and return the same instance. + * + * @param input The input of this {@link FilteringModuleConfig} + * @return The same instance of this {@link FilteringModuleConfig} class + */ + @Nonnull + public FilteringModuleConfig input(@Nonnull final FilteringConfig input) { this.input = input; return this; } - /** - * Get input - * @return input The input of this {@link FilteringModuleConfig} instance. - */ - @Nonnull public FilteringConfig getInput() { + /** + * Get input + * + * @return input The input of this {@link FilteringModuleConfig} instance. + */ + @Nonnull + public FilteringConfig getInput() { return input; } /** * Set the input of this {@link FilteringModuleConfig} instance. * - * @param input The input of this {@link FilteringModuleConfig} + * @param input The input of this {@link FilteringModuleConfig} */ - public void setInput( @Nonnull final FilteringConfig input) { + public void setInput(@Nonnull final FilteringConfig input) { this.input = input; } - /** - * Set the output of this {@link FilteringModuleConfig} instance and return the same instance. - * - * @param output The output of this {@link FilteringModuleConfig} - * @return The same instance of this {@link FilteringModuleConfig} class - */ - @Nonnull public FilteringModuleConfig output(@Nonnull final FilteringConfig output) { + /** + * Set the output of this {@link FilteringModuleConfig} instance and return the same instance. + * + * @param output The output of this {@link FilteringModuleConfig} + * @return The same instance of this {@link FilteringModuleConfig} class + */ + @Nonnull + public FilteringModuleConfig output(@Nonnull final FilteringConfig output) { this.output = output; return this; } - /** - * Get output - * @return output The output of this {@link FilteringModuleConfig} instance. - */ - @Nonnull public FilteringConfig getOutput() { + /** + * Get output + * + * @return output The output of this {@link FilteringModuleConfig} instance. + */ + @Nonnull + public FilteringConfig getOutput() { return output; } /** * Set the output of this {@link FilteringModuleConfig} instance. * - * @param output The output of this {@link FilteringModuleConfig} + * @param output The output of this {@link FilteringModuleConfig} */ - public void setOutput( @Nonnull final FilteringConfig output) { + public void setOutput(@Nonnull final FilteringConfig output) { this.output = output; } /** * Get the names of the unrecognizable properties of the {@link FilteringModuleConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -122,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link FilteringModuleConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("FilteringModuleConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "FilteringModuleConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link FilteringModuleConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link FilteringModuleConfig} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -156,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final FilteringModuleConfig filteringModuleConfig = (FilteringModuleConfig) o; - return Objects.equals(this.cloudSdkCustomFields, filteringModuleConfig.cloudSdkCustomFields) && - Objects.equals(this.input, filteringModuleConfig.input) && - Objects.equals(this.output, filteringModuleConfig.output); + return Objects.equals(this.cloudSdkCustomFields, filteringModuleConfig.cloudSdkCustomFields) + && Objects.equals(this.input, filteringModuleConfig.input) + && Objects.equals(this.output, filteringModuleConfig.output); } @Override @@ -167,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class FilteringModuleConfig {\n"); sb.append(" input: ").append(toIndentedString(input)).append("\n"); sb.append(" output: ").append(toIndentedString(output)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -188,12 +184,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link FilteringModuleConfig} instance. No arguments are required. - */ - public static FilteringModuleConfig create() { - return new FilteringModuleConfig(); - } - + /** Create a new {@link FilteringModuleConfig} instance. No arguments are required. */ + public static FilteringModuleConfig create() { + return new FilteringModuleConfig(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java index 3192dfaa..1f73e06b 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GenericModuleResult.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Generic module result - */ +/** Generic module result */ // CHECKSTYLE:OFF -public class GenericModuleResult +public class GenericModuleResult // CHECKSTYLE:ON { @JsonProperty("message") @@ -48,69 +35,76 @@ public class GenericModuleResult @JsonProperty("data") private Object data; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected GenericModuleResult() { } - - /** - * Set the message of this {@link GenericModuleResult} instance and return the same instance. - * - * @param message Some message created from the module - * @return The same instance of this {@link GenericModuleResult} class - */ - @Nonnull public GenericModuleResult message(@Nonnull final String message) { + + protected GenericModuleResult() {} + + /** + * Set the message of this {@link GenericModuleResult} instance and return the same instance. + * + * @param message Some message created from the module + * @return The same instance of this {@link GenericModuleResult} class + */ + @Nonnull + public GenericModuleResult message(@Nonnull final String message) { this.message = message; return this; } - /** - * Some message created from the module - * @return message The message of this {@link GenericModuleResult} instance. - */ - @Nonnull public String getMessage() { + /** + * Some message created from the module + * + * @return message The message of this {@link GenericModuleResult} instance. + */ + @Nonnull + public String getMessage() { return message; } /** * Set the message of this {@link GenericModuleResult} instance. * - * @param message Some message created from the module + * @param message Some message created from the module */ - public void setMessage( @Nonnull final String message) { + public void setMessage(@Nonnull final String message) { this.message = message; } - /** - * Set the data of this {@link GenericModuleResult} instance and return the same instance. - * - * @param data Additional data object from the module - * @return The same instance of this {@link GenericModuleResult} class - */ - @Nonnull public GenericModuleResult data(@Nonnull final Object data) { + /** + * Set the data of this {@link GenericModuleResult} instance and return the same instance. + * + * @param data Additional data object from the module + * @return The same instance of this {@link GenericModuleResult} class + */ + @Nonnull + public GenericModuleResult data(@Nonnull final Object data) { this.data = data; return this; } - /** - * Additional data object from the module - * @return data The data of this {@link GenericModuleResult} instance. - */ - @Nonnull public Object getData() { + /** + * Additional data object from the module + * + * @return data The data of this {@link GenericModuleResult} instance. + */ + @Nonnull + public Object getData() { return data; } /** * Set the data of this {@link GenericModuleResult} instance. * - * @param data Additional data object from the module + * @param data Additional data object from the module */ - public void setData( @Nonnull final Object data) { + public void setData(@Nonnull final Object data) { this.data = data; } /** * Get the names of the unrecognizable properties of the {@link GenericModuleResult}. + * * @return The set of properties names */ @JsonIgnore @@ -121,31 +115,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link GenericModuleResult} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("GenericModuleResult has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "GenericModuleResult has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link GenericModuleResult} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link GenericModuleResult} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -155,9 +150,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final GenericModuleResult genericModuleResult = (GenericModuleResult) o; - return Objects.equals(this.cloudSdkCustomFields, genericModuleResult.cloudSdkCustomFields) && - Objects.equals(this.message, genericModuleResult.message) && - Objects.equals(this.data, genericModuleResult.data); + return Objects.equals(this.cloudSdkCustomFields, genericModuleResult.cloudSdkCustomFields) + && Objects.equals(this.message, genericModuleResult.message) + && Objects.equals(this.data, genericModuleResult.data); } @Override @@ -166,19 +161,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class GenericModuleResult {\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -187,24 +184,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link GenericModuleResult} instance with all required arguments. - */ - public static Builder create() { - return (message) -> new GenericModuleResult().message(message); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the message of this {@link GenericModuleResult} instance. - * - * @param message Some message created from the module - * @return The GenericModuleResult instance. - */ - GenericModuleResult message( @Nonnull final String message); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link GenericModuleResult} + * instance with all required arguments. + */ + public static Builder create() { + return (message) -> new GenericModuleResult().message(message); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the message of this {@link GenericModuleResult} instance. + * + * @param message Some message created from the module + * @return The GenericModuleResult instance. + */ + GenericModuleResult message(@Nonnull final String message); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java index c40a1932..6139685c 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingFilter.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,35 +12,25 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * GroundingFilter - */ +/** GroundingFilter */ // CHECKSTYLE:OFF -public class GroundingFilter +public class GroundingFilter // CHECKSTYLE:ON { @JsonProperty("id") @@ -54,18 +42,12 @@ public class GroundingFilter @JsonProperty("data_repositories") private List dataRepositories = new ArrayList<>(); - /** - * Gets or Sets dataRepositoryType - */ + /** Gets or Sets dataRepositoryType */ public enum DataRepositoryTypeEnum { - /** - * The VECTOR option of this GroundingFilter - */ + /** The VECTOR option of this GroundingFilter */ VECTOR("vector"), - - /** - * The HELP_SAP_COM option of this GroundingFilter - */ + + /** The HELP_SAP_COM option of this GroundingFilter */ HELP_SAP_COM("help.sap.com"); private String value; @@ -75,30 +57,36 @@ public enum DataRepositoryTypeEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type GroundingFilter - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type GroundingFilter + */ @JsonCreator - @Nonnull public static DataRepositoryTypeEnum fromValue(@Nonnull final String value) { + @Nonnull + public static DataRepositoryTypeEnum fromValue(@Nonnull final String value) { for (DataRepositoryTypeEnum b : DataRepositoryTypeEnum.values()) { if (b.value.equals(value)) { return b; @@ -120,83 +108,94 @@ public enum DataRepositoryTypeEnum { @JsonProperty("chunk_metadata") private List chunkMetadata = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected GroundingFilter() { } - - /** - * Set the id of this {@link GroundingFilter} instance and return the same instance. - * - * @param id The id of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter id(@Nonnull final String id) { + + protected GroundingFilter() {} + + /** + * Set the id of this {@link GroundingFilter} instance and return the same instance. + * + * @param id The id of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter id(@Nonnull final String id) { this.id = id; return this; } - /** - * Get id - * @return id The id of this {@link GroundingFilter} instance. - */ - @Nonnull public String getId() { + /** + * Get id + * + * @return id The id of this {@link GroundingFilter} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link GroundingFilter} instance. * - * @param id The id of this {@link GroundingFilter} + * @param id The id of this {@link GroundingFilter} */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the searchConfiguration of this {@link GroundingFilter} instance and return the same instance. - * - * @param searchConfiguration The searchConfiguration of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter searchConfiguration(@Nonnull final Object searchConfiguration) { + /** + * Set the searchConfiguration of this {@link GroundingFilter} instance and return the same + * instance. + * + * @param searchConfiguration The searchConfiguration of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter searchConfiguration(@Nonnull final Object searchConfiguration) { this.searchConfiguration = searchConfiguration; return this; } - /** - * Get searchConfiguration - * @return searchConfiguration The searchConfiguration of this {@link GroundingFilter} instance. - */ - @Nonnull public Object getSearchConfiguration() { + /** + * Get searchConfiguration + * + * @return searchConfiguration The searchConfiguration of this {@link GroundingFilter} instance. + */ + @Nonnull + public Object getSearchConfiguration() { return searchConfiguration; } /** * Set the searchConfiguration of this {@link GroundingFilter} instance. * - * @param searchConfiguration The searchConfiguration of this {@link GroundingFilter} + * @param searchConfiguration The searchConfiguration of this {@link GroundingFilter} */ - public void setSearchConfiguration( @Nonnull final Object searchConfiguration) { + public void setSearchConfiguration(@Nonnull final Object searchConfiguration) { this.searchConfiguration = searchConfiguration; } - /** - * Set the dataRepositories of this {@link GroundingFilter} instance and return the same instance. - * - * @param dataRepositories The dataRepositories of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter dataRepositories(@Nonnull final List dataRepositories) { + /** + * Set the dataRepositories of this {@link GroundingFilter} instance and return the same instance. + * + * @param dataRepositories The dataRepositories of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter dataRepositories(@Nonnull final List dataRepositories) { this.dataRepositories = dataRepositories; return this; } + /** * Add one dataRepositories instance to this {@link GroundingFilter}. + * * @param dataRepositoriesItem The dataRepositories that should be added * @return The same instance of type {@link GroundingFilter} */ - @Nonnull public GroundingFilter addDataRepositoriesItem( @Nonnull final String dataRepositoriesItem) { + @Nonnull + public GroundingFilter addDataRepositoriesItem(@Nonnull final String dataRepositoriesItem) { if (this.dataRepositories == null) { this.dataRepositories = new ArrayList<>(); } @@ -204,67 +203,81 @@ public void setSearchConfiguration( @Nonnull final Object searchConfiguration) { return this; } - /** - * Get dataRepositories - * @return dataRepositories The dataRepositories of this {@link GroundingFilter} instance. - */ - @Nonnull public List getDataRepositories() { + /** + * Get dataRepositories + * + * @return dataRepositories The dataRepositories of this {@link GroundingFilter} instance. + */ + @Nonnull + public List getDataRepositories() { return dataRepositories; } /** * Set the dataRepositories of this {@link GroundingFilter} instance. * - * @param dataRepositories The dataRepositories of this {@link GroundingFilter} + * @param dataRepositories The dataRepositories of this {@link GroundingFilter} */ - public void setDataRepositories( @Nonnull final List dataRepositories) { + public void setDataRepositories(@Nonnull final List dataRepositories) { this.dataRepositories = dataRepositories; } - /** - * Set the dataRepositoryType of this {@link GroundingFilter} instance and return the same instance. - * - * @param dataRepositoryType The dataRepositoryType of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter dataRepositoryType(@Nonnull final DataRepositoryTypeEnum dataRepositoryType) { + /** + * Set the dataRepositoryType of this {@link GroundingFilter} instance and return the same + * instance. + * + * @param dataRepositoryType The dataRepositoryType of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter dataRepositoryType( + @Nonnull final DataRepositoryTypeEnum dataRepositoryType) { this.dataRepositoryType = dataRepositoryType; return this; } - /** - * Get dataRepositoryType - * @return dataRepositoryType The dataRepositoryType of this {@link GroundingFilter} instance. - */ - @Nonnull public DataRepositoryTypeEnum getDataRepositoryType() { + /** + * Get dataRepositoryType + * + * @return dataRepositoryType The dataRepositoryType of this {@link GroundingFilter} instance. + */ + @Nonnull + public DataRepositoryTypeEnum getDataRepositoryType() { return dataRepositoryType; } /** * Set the dataRepositoryType of this {@link GroundingFilter} instance. * - * @param dataRepositoryType The dataRepositoryType of this {@link GroundingFilter} + * @param dataRepositoryType The dataRepositoryType of this {@link GroundingFilter} */ - public void setDataRepositoryType( @Nonnull final DataRepositoryTypeEnum dataRepositoryType) { + public void setDataRepositoryType(@Nonnull final DataRepositoryTypeEnum dataRepositoryType) { this.dataRepositoryType = dataRepositoryType; } - /** - * Set the dataRepositoryMetadata of this {@link GroundingFilter} instance and return the same instance. - * - * @param dataRepositoryMetadata The dataRepositoryMetadata of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter dataRepositoryMetadata(@Nonnull final List dataRepositoryMetadata) { + /** + * Set the dataRepositoryMetadata of this {@link GroundingFilter} instance and return the same + * instance. + * + * @param dataRepositoryMetadata The dataRepositoryMetadata of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter dataRepositoryMetadata( + @Nonnull final List dataRepositoryMetadata) { this.dataRepositoryMetadata = dataRepositoryMetadata; return this; } + /** * Add one dataRepositoryMetadata instance to this {@link GroundingFilter}. + * * @param dataRepositoryMetadataItem The dataRepositoryMetadata that should be added * @return The same instance of type {@link GroundingFilter} */ - @Nonnull public GroundingFilter addDataRepositoryMetadataItem( @Nonnull final Object dataRepositoryMetadataItem) { + @Nonnull + public GroundingFilter addDataRepositoryMetadataItem( + @Nonnull final Object dataRepositoryMetadataItem) { if (this.dataRepositoryMetadata == null) { this.dataRepositoryMetadata = new ArrayList<>(); } @@ -272,39 +285,46 @@ public void setDataRepositoryType( @Nonnull final DataRepositoryTypeEnum dataRep return this; } - /** - * Get dataRepositoryMetadata - * @return dataRepositoryMetadata The dataRepositoryMetadata of this {@link GroundingFilter} instance. - */ - @Nonnull public List getDataRepositoryMetadata() { + /** + * Get dataRepositoryMetadata + * + * @return dataRepositoryMetadata The dataRepositoryMetadata of this {@link GroundingFilter} + * instance. + */ + @Nonnull + public List getDataRepositoryMetadata() { return dataRepositoryMetadata; } /** * Set the dataRepositoryMetadata of this {@link GroundingFilter} instance. * - * @param dataRepositoryMetadata The dataRepositoryMetadata of this {@link GroundingFilter} + * @param dataRepositoryMetadata The dataRepositoryMetadata of this {@link GroundingFilter} */ - public void setDataRepositoryMetadata( @Nonnull final List dataRepositoryMetadata) { + public void setDataRepositoryMetadata(@Nonnull final List dataRepositoryMetadata) { this.dataRepositoryMetadata = dataRepositoryMetadata; } - /** - * Set the documentMetadata of this {@link GroundingFilter} instance and return the same instance. - * - * @param documentMetadata The documentMetadata of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter documentMetadata(@Nonnull final List documentMetadata) { + /** + * Set the documentMetadata of this {@link GroundingFilter} instance and return the same instance. + * + * @param documentMetadata The documentMetadata of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter documentMetadata(@Nonnull final List documentMetadata) { this.documentMetadata = documentMetadata; return this; } + /** * Add one documentMetadata instance to this {@link GroundingFilter}. + * * @param documentMetadataItem The documentMetadata that should be added * @return The same instance of type {@link GroundingFilter} */ - @Nonnull public GroundingFilter addDocumentMetadataItem( @Nonnull final Object documentMetadataItem) { + @Nonnull + public GroundingFilter addDocumentMetadataItem(@Nonnull final Object documentMetadataItem) { if (this.documentMetadata == null) { this.documentMetadata = new ArrayList<>(); } @@ -312,39 +332,45 @@ public void setDataRepositoryMetadata( @Nonnull final List dataRepositor return this; } - /** - * Get documentMetadata - * @return documentMetadata The documentMetadata of this {@link GroundingFilter} instance. - */ - @Nonnull public List getDocumentMetadata() { + /** + * Get documentMetadata + * + * @return documentMetadata The documentMetadata of this {@link GroundingFilter} instance. + */ + @Nonnull + public List getDocumentMetadata() { return documentMetadata; } /** * Set the documentMetadata of this {@link GroundingFilter} instance. * - * @param documentMetadata The documentMetadata of this {@link GroundingFilter} + * @param documentMetadata The documentMetadata of this {@link GroundingFilter} */ - public void setDocumentMetadata( @Nonnull final List documentMetadata) { + public void setDocumentMetadata(@Nonnull final List documentMetadata) { this.documentMetadata = documentMetadata; } - /** - * Set the chunkMetadata of this {@link GroundingFilter} instance and return the same instance. - * - * @param chunkMetadata The chunkMetadata of this {@link GroundingFilter} - * @return The same instance of this {@link GroundingFilter} class - */ - @Nonnull public GroundingFilter chunkMetadata(@Nonnull final List chunkMetadata) { + /** + * Set the chunkMetadata of this {@link GroundingFilter} instance and return the same instance. + * + * @param chunkMetadata The chunkMetadata of this {@link GroundingFilter} + * @return The same instance of this {@link GroundingFilter} class + */ + @Nonnull + public GroundingFilter chunkMetadata(@Nonnull final List chunkMetadata) { this.chunkMetadata = chunkMetadata; return this; } + /** * Add one chunkMetadata instance to this {@link GroundingFilter}. + * * @param chunkMetadataItem The chunkMetadata that should be added * @return The same instance of type {@link GroundingFilter} */ - @Nonnull public GroundingFilter addChunkMetadataItem( @Nonnull final Object chunkMetadataItem) { + @Nonnull + public GroundingFilter addChunkMetadataItem(@Nonnull final Object chunkMetadataItem) { if (this.chunkMetadata == null) { this.chunkMetadata = new ArrayList<>(); } @@ -352,25 +378,28 @@ public void setDocumentMetadata( @Nonnull final List documentMetadata) { return this; } - /** - * Get chunkMetadata - * @return chunkMetadata The chunkMetadata of this {@link GroundingFilter} instance. - */ - @Nonnull public List getChunkMetadata() { + /** + * Get chunkMetadata + * + * @return chunkMetadata The chunkMetadata of this {@link GroundingFilter} instance. + */ + @Nonnull + public List getChunkMetadata() { return chunkMetadata; } /** * Set the chunkMetadata of this {@link GroundingFilter} instance. * - * @param chunkMetadata The chunkMetadata of this {@link GroundingFilter} + * @param chunkMetadata The chunkMetadata of this {@link GroundingFilter} */ - public void setChunkMetadata( @Nonnull final List chunkMetadata) { + public void setChunkMetadata(@Nonnull final List chunkMetadata) { this.chunkMetadata = chunkMetadata; } /** * Get the names of the unrecognizable properties of the {@link GroundingFilter}. + * * @return The set of properties names */ @JsonIgnore @@ -381,31 +410,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link GroundingFilter} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("GroundingFilter has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("GroundingFilter has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link GroundingFilter} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link GroundingFilter} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -415,40 +444,54 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final GroundingFilter groundingFilter = (GroundingFilter) o; - return Objects.equals(this.cloudSdkCustomFields, groundingFilter.cloudSdkCustomFields) && - Objects.equals(this.id, groundingFilter.id) && - Objects.equals(this.searchConfiguration, groundingFilter.searchConfiguration) && - Objects.equals(this.dataRepositories, groundingFilter.dataRepositories) && - Objects.equals(this.dataRepositoryType, groundingFilter.dataRepositoryType) && - Objects.equals(this.dataRepositoryMetadata, groundingFilter.dataRepositoryMetadata) && - Objects.equals(this.documentMetadata, groundingFilter.documentMetadata) && - Objects.equals(this.chunkMetadata, groundingFilter.chunkMetadata); + return Objects.equals(this.cloudSdkCustomFields, groundingFilter.cloudSdkCustomFields) + && Objects.equals(this.id, groundingFilter.id) + && Objects.equals(this.searchConfiguration, groundingFilter.searchConfiguration) + && Objects.equals(this.dataRepositories, groundingFilter.dataRepositories) + && Objects.equals(this.dataRepositoryType, groundingFilter.dataRepositoryType) + && Objects.equals(this.dataRepositoryMetadata, groundingFilter.dataRepositoryMetadata) + && Objects.equals(this.documentMetadata, groundingFilter.documentMetadata) + && Objects.equals(this.chunkMetadata, groundingFilter.chunkMetadata); } @Override public int hashCode() { - return Objects.hash(id, searchConfiguration, dataRepositories, dataRepositoryType, dataRepositoryMetadata, documentMetadata, chunkMetadata, cloudSdkCustomFields); + return Objects.hash( + id, + searchConfiguration, + dataRepositories, + dataRepositoryType, + dataRepositoryMetadata, + documentMetadata, + chunkMetadata, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class GroundingFilter {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" searchConfiguration: ").append(toIndentedString(searchConfiguration)).append("\n"); + sb.append(" searchConfiguration: ") + .append(toIndentedString(searchConfiguration)) + .append("\n"); sb.append(" dataRepositories: ").append(toIndentedString(dataRepositories)).append("\n"); sb.append(" dataRepositoryType: ").append(toIndentedString(dataRepositoryType)).append("\n"); - sb.append(" dataRepositoryMetadata: ").append(toIndentedString(dataRepositoryMetadata)).append("\n"); + sb.append(" dataRepositoryMetadata: ") + .append(toIndentedString(dataRepositoryMetadata)) + .append("\n"); sb.append(" documentMetadata: ").append(toIndentedString(documentMetadata)).append("\n"); sb.append(" chunkMetadata: ").append(toIndentedString(chunkMetadata)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -457,12 +500,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link GroundingFilter} instance. No arguments are required. - */ - public static GroundingFilter create() { - return new GroundingFilter(); - } - + /** Create a new {@link GroundingFilter} instance. No arguments are required. */ + public static GroundingFilter create() { + return new GroundingFilter(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java index d03bf977..ebeb6489 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,42 +12,28 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonValue; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.GroundingModuleConfigGroundingServiceConfiguration; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * GroundingModuleConfig - */ +/** GroundingModuleConfig */ // CHECKSTYLE:OFF -public class GroundingModuleConfig +public class GroundingModuleConfig // CHECKSTYLE:ON { - /** - * Gets or Sets groundingService - */ + /** Gets or Sets groundingService */ public enum GroundingServiceEnum { - /** - * The DOCUMENT_GROUNDING_SERVICE option of this GroundingModuleConfig - */ + /** The DOCUMENT_GROUNDING_SERVICE option of this GroundingModuleConfig */ DOCUMENT_GROUNDING_SERVICE("document_grounding_service"); private String value; @@ -59,30 +43,36 @@ public enum GroundingServiceEnum { } /** - * Get the value of the enum - * @return The enum value - */ + * Get the value of the enum + * + * @return The enum value + */ @JsonValue - @Nonnull public String getValue() { + @Nonnull + public String getValue() { return value; } /** - * Get the String value of the enum value. - * @return The enum value as String - */ + * Get the String value of the enum value. + * + * @return The enum value as String + */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } /** - * Get the enum value from a String value - * @param value The String value - * @return The enum value of type GroundingModuleConfig - */ + * Get the enum value from a String value + * + * @param value The String value + * @return The enum value of type GroundingModuleConfig + */ @JsonCreator - @Nonnull public static GroundingServiceEnum fromValue(@Nonnull final String value) { + @Nonnull + public static GroundingServiceEnum fromValue(@Nonnull final String value) { for (GroundingServiceEnum b : GroundingServiceEnum.values()) { if (b.value.equals(value)) { return b; @@ -98,69 +88,86 @@ public enum GroundingServiceEnum { @JsonProperty("grounding_service_configuration") private GroundingModuleConfigGroundingServiceConfiguration groundingServiceConfiguration; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected GroundingModuleConfig() { } - /** - * Set the groundingService of this {@link GroundingModuleConfig} instance and return the same instance. - * - * @param groundingService The groundingService of this {@link GroundingModuleConfig} - * @return The same instance of this {@link GroundingModuleConfig} class - */ - @Nonnull public GroundingModuleConfig groundingService(@Nonnull final GroundingServiceEnum groundingService) { + protected GroundingModuleConfig() {} + + /** + * Set the groundingService of this {@link GroundingModuleConfig} instance and return the same + * instance. + * + * @param groundingService The groundingService of this {@link GroundingModuleConfig} + * @return The same instance of this {@link GroundingModuleConfig} class + */ + @Nonnull + public GroundingModuleConfig groundingService( + @Nonnull final GroundingServiceEnum groundingService) { this.groundingService = groundingService; return this; } - /** - * Get groundingService - * @return groundingService The groundingService of this {@link GroundingModuleConfig} instance. - */ - @Nonnull public GroundingServiceEnum getGroundingService() { + /** + * Get groundingService + * + * @return groundingService The groundingService of this {@link GroundingModuleConfig} instance. + */ + @Nonnull + public GroundingServiceEnum getGroundingService() { return groundingService; } /** * Set the groundingService of this {@link GroundingModuleConfig} instance. * - * @param groundingService The groundingService of this {@link GroundingModuleConfig} + * @param groundingService The groundingService of this {@link GroundingModuleConfig} */ - public void setGroundingService( @Nonnull final GroundingServiceEnum groundingService) { + public void setGroundingService(@Nonnull final GroundingServiceEnum groundingService) { this.groundingService = groundingService; } - /** - * Set the groundingServiceConfiguration of this {@link GroundingModuleConfig} instance and return the same instance. - * - * @param groundingServiceConfiguration The groundingServiceConfiguration of this {@link GroundingModuleConfig} - * @return The same instance of this {@link GroundingModuleConfig} class - */ - @Nonnull public GroundingModuleConfig groundingServiceConfiguration(@Nonnull final GroundingModuleConfigGroundingServiceConfiguration groundingServiceConfiguration) { + /** + * Set the groundingServiceConfiguration of this {@link GroundingModuleConfig} instance and return + * the same instance. + * + * @param groundingServiceConfiguration The groundingServiceConfiguration of this {@link + * GroundingModuleConfig} + * @return The same instance of this {@link GroundingModuleConfig} class + */ + @Nonnull + public GroundingModuleConfig groundingServiceConfiguration( + @Nonnull + final GroundingModuleConfigGroundingServiceConfiguration groundingServiceConfiguration) { this.groundingServiceConfiguration = groundingServiceConfiguration; return this; } - /** - * Get groundingServiceConfiguration - * @return groundingServiceConfiguration The groundingServiceConfiguration of this {@link GroundingModuleConfig} instance. - */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration getGroundingServiceConfiguration() { + /** + * Get groundingServiceConfiguration + * + * @return groundingServiceConfiguration The groundingServiceConfiguration of this {@link + * GroundingModuleConfig} instance. + */ + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration getGroundingServiceConfiguration() { return groundingServiceConfiguration; } /** * Set the groundingServiceConfiguration of this {@link GroundingModuleConfig} instance. * - * @param groundingServiceConfiguration The groundingServiceConfiguration of this {@link GroundingModuleConfig} + * @param groundingServiceConfiguration The groundingServiceConfiguration of this {@link + * GroundingModuleConfig} */ - public void setGroundingServiceConfiguration( @Nonnull final GroundingModuleConfigGroundingServiceConfiguration groundingServiceConfiguration) { + public void setGroundingServiceConfiguration( + @Nonnull + final GroundingModuleConfigGroundingServiceConfiguration groundingServiceConfiguration) { this.groundingServiceConfiguration = groundingServiceConfiguration; } /** * Get the names of the unrecognizable properties of the {@link GroundingModuleConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -171,31 +178,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link GroundingModuleConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("GroundingModuleConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "GroundingModuleConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link GroundingModuleConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link GroundingModuleConfig} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -205,9 +213,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final GroundingModuleConfig groundingModuleConfig = (GroundingModuleConfig) o; - return Objects.equals(this.cloudSdkCustomFields, groundingModuleConfig.cloudSdkCustomFields) && - Objects.equals(this.groundingService, groundingModuleConfig.groundingService) && - Objects.equals(this.groundingServiceConfiguration, groundingModuleConfig.groundingServiceConfiguration); + return Objects.equals(this.cloudSdkCustomFields, groundingModuleConfig.cloudSdkCustomFields) + && Objects.equals(this.groundingService, groundingModuleConfig.groundingService) + && Objects.equals( + this.groundingServiceConfiguration, + groundingModuleConfig.groundingServiceConfiguration); } @Override @@ -216,19 +226,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class GroundingModuleConfig {\n"); sb.append(" groundingService: ").append(toIndentedString(groundingService)).append("\n"); - sb.append(" groundingServiceConfiguration: ").append(toIndentedString(groundingServiceConfiguration)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" groundingServiceConfiguration: ") + .append(toIndentedString(groundingServiceConfiguration)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -237,24 +251,22 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link GroundingModuleConfig} instance with all required arguments. - */ - public static Builder create() { - return (groundingService) -> new GroundingModuleConfig().groundingService(groundingService); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the groundingService of this {@link GroundingModuleConfig} instance. - * - * @param groundingService The groundingService of this {@link GroundingModuleConfig} - * @return The GroundingModuleConfig instance. - */ - GroundingModuleConfig groundingService( @Nonnull final GroundingServiceEnum groundingService); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link GroundingModuleConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (groundingService) -> new GroundingModuleConfig().groundingService(groundingService); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the groundingService of this {@link GroundingModuleConfig} instance. + * + * @param groundingService The groundingService of this {@link GroundingModuleConfig} + * @return The GroundingModuleConfig instance. + */ + GroundingModuleConfig groundingService(@Nonnull final GroundingServiceEnum groundingService); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java index 8e93100a..7573c36c 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/GroundingModuleConfigGroundingServiceConfiguration.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.GroundingFilter; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * GroundingModuleConfigGroundingServiceConfiguration - */ +/** GroundingModuleConfigGroundingServiceConfiguration */ // CHECKSTYLE:OFF -public class GroundingModuleConfigGroundingServiceConfiguration +public class GroundingModuleConfigGroundingServiceConfiguration // CHECKSTYLE:ON { @JsonProperty("secret_name") @@ -58,55 +44,73 @@ public class GroundingModuleConfigGroundingServiceConfiguration @JsonProperty("grounding_output_parameter") private String groundingOutputParameter; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected GroundingModuleConfigGroundingServiceConfiguration() { } - - /** - * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. - * - * @param secretName Secret name of the generic secret within Gen AI Hub containing document grounding service credentials - * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} class - */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration secretName(@Nonnull final String secretName) { + + protected GroundingModuleConfigGroundingServiceConfiguration() {} + + /** + * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance + * and return the same instance. + * + * @param secretName Secret name of the generic secret within Gen AI Hub containing document + * grounding service credentials + * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} + * class + */ + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration secretName( + @Nonnull final String secretName) { this.secretName = secretName; return this; } - /** - * Secret name of the generic secret within Gen AI Hub containing document grounding service credentials - * @return secretName The secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - */ - @Nonnull public String getSecretName() { + /** + * Secret name of the generic secret within Gen AI Hub containing document grounding service + * credentials + * + * @return secretName The secretName of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + */ + @Nonnull + public String getSecretName() { return secretName; } /** * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. * - * @param secretName Secret name of the generic secret within Gen AI Hub containing document grounding service credentials + * @param secretName Secret name of the generic secret within Gen AI Hub containing document + * grounding service credentials */ - public void setSecretName( @Nonnull final String secretName) { + public void setSecretName(@Nonnull final String secretName) { this.secretName = secretName; } - /** - * Set the filters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. - * - * @param filters Document grounding service filters to be used - * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} class - */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration filters(@Nonnull final List filters) { + /** + * Set the filters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance and + * return the same instance. + * + * @param filters Document grounding service filters to be used + * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} + * class + */ + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration filters( + @Nonnull final List filters) { this.filters = filters; return this; } + /** * Add one filters instance to this {@link GroundingModuleConfigGroundingServiceConfiguration}. + * * @param filtersItem The filters that should be added * @return The same instance of type {@link GroundingModuleConfigGroundingServiceConfiguration} */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration addFiltersItem( @Nonnull final GroundingFilter filtersItem) { + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration addFiltersItem( + @Nonnull final GroundingFilter filtersItem) { if (this.filters == null) { this.filters = new ArrayList<>(); } @@ -114,39 +118,52 @@ public void setSecretName( @Nonnull final String secretName) { return this; } - /** - * Document grounding service filters to be used - * @return filters The filters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - */ - @Nonnull public List getFilters() { + /** + * Document grounding service filters to be used + * + * @return filters The filters of this {@link GroundingModuleConfigGroundingServiceConfiguration} + * instance. + */ + @Nonnull + public List getFilters() { return filters; } /** * Set the filters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. * - * @param filters Document grounding service filters to be used + * @param filters Document grounding service filters to be used */ - public void setFilters( @Nonnull final List filters) { + public void setFilters(@Nonnull final List filters) { this.filters = filters; } - /** - * Set the groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. - * - * @param groundingInputParameters Contains the input parameters used for grounding input questions - * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} class - */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration groundingInputParameters(@Nonnull final List groundingInputParameters) { + /** + * Set the groundingInputParameters of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. + * + * @param groundingInputParameters Contains the input parameters used for grounding input + * questions + * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} + * class + */ + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration groundingInputParameters( + @Nonnull final List groundingInputParameters) { this.groundingInputParameters = groundingInputParameters; return this; } + /** - * Add one groundingInputParameters instance to this {@link GroundingModuleConfigGroundingServiceConfiguration}. + * Add one groundingInputParameters instance to this {@link + * GroundingModuleConfigGroundingServiceConfiguration}. + * * @param groundingInputParametersItem The groundingInputParameters that should be added * @return The same instance of type {@link GroundingModuleConfigGroundingServiceConfiguration} */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration addGroundingInputParametersItem( @Nonnull final String groundingInputParametersItem) { + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration addGroundingInputParametersItem( + @Nonnull final String groundingInputParametersItem) { if (this.groundingInputParameters == null) { this.groundingInputParameters = new ArrayList<>(); } @@ -154,53 +171,68 @@ public void setFilters( @Nonnull final List filters) { return this; } - /** - * Contains the input parameters used for grounding input questions - * @return groundingInputParameters The groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - */ - @Nonnull public List getGroundingInputParameters() { + /** + * Contains the input parameters used for grounding input questions + * + * @return groundingInputParameters The groundingInputParameters of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + */ + @Nonnull + public List getGroundingInputParameters() { return groundingInputParameters; } /** - * Set the groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. + * Set the groundingInputParameters of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. * - * @param groundingInputParameters Contains the input parameters used for grounding input questions + * @param groundingInputParameters Contains the input parameters used for grounding input + * questions */ - public void setGroundingInputParameters( @Nonnull final List groundingInputParameters) { + public void setGroundingInputParameters(@Nonnull final List groundingInputParameters) { this.groundingInputParameters = groundingInputParameters; } - /** - * Set the groundingOutputParameter of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. - * - * @param groundingOutputParameter Parameter name used for grounding output - * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} class - */ - @Nonnull public GroundingModuleConfigGroundingServiceConfiguration groundingOutputParameter(@Nonnull final String groundingOutputParameter) { + /** + * Set the groundingOutputParameter of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance and return the same instance. + * + * @param groundingOutputParameter Parameter name used for grounding output + * @return The same instance of this {@link GroundingModuleConfigGroundingServiceConfiguration} + * class + */ + @Nonnull + public GroundingModuleConfigGroundingServiceConfiguration groundingOutputParameter( + @Nonnull final String groundingOutputParameter) { this.groundingOutputParameter = groundingOutputParameter; return this; } - /** - * Parameter name used for grounding output - * @return groundingOutputParameter The groundingOutputParameter of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - */ - @Nonnull public String getGroundingOutputParameter() { + /** + * Parameter name used for grounding output + * + * @return groundingOutputParameter The groundingOutputParameter of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + */ + @Nonnull + public String getGroundingOutputParameter() { return groundingOutputParameter; } /** - * Set the groundingOutputParameter of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. + * Set the groundingOutputParameter of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. * - * @param groundingOutputParameter Parameter name used for grounding output + * @param groundingOutputParameter Parameter name used for grounding output */ - public void setGroundingOutputParameter( @Nonnull final String groundingOutputParameter) { + public void setGroundingOutputParameter(@Nonnull final String groundingOutputParameter) { this.groundingOutputParameter = groundingOutputParameter; } /** - * Get the names of the unrecognizable properties of the {@link GroundingModuleConfigGroundingServiceConfiguration}. + * Get the names of the unrecognizable properties of the {@link + * GroundingModuleConfigGroundingServiceConfiguration}. + * * @return The set of properties names */ @JsonIgnore @@ -210,32 +242,37 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("GroundingModuleConfigGroundingServiceConfiguration has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "GroundingModuleConfigGroundingServiceConfiguration has no field with name '" + + name + + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. If the map previously contained a + * mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -244,35 +281,55 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final GroundingModuleConfigGroundingServiceConfiguration groundingModuleConfigGroundingServiceConfiguration = (GroundingModuleConfigGroundingServiceConfiguration) o; - return Objects.equals(this.cloudSdkCustomFields, groundingModuleConfigGroundingServiceConfiguration.cloudSdkCustomFields) && - Objects.equals(this.secretName, groundingModuleConfigGroundingServiceConfiguration.secretName) && - Objects.equals(this.filters, groundingModuleConfigGroundingServiceConfiguration.filters) && - Objects.equals(this.groundingInputParameters, groundingModuleConfigGroundingServiceConfiguration.groundingInputParameters) && - Objects.equals(this.groundingOutputParameter, groundingModuleConfigGroundingServiceConfiguration.groundingOutputParameter); + final GroundingModuleConfigGroundingServiceConfiguration + groundingModuleConfigGroundingServiceConfiguration = + (GroundingModuleConfigGroundingServiceConfiguration) o; + return Objects.equals( + this.cloudSdkCustomFields, + groundingModuleConfigGroundingServiceConfiguration.cloudSdkCustomFields) + && Objects.equals( + this.secretName, groundingModuleConfigGroundingServiceConfiguration.secretName) + && Objects.equals(this.filters, groundingModuleConfigGroundingServiceConfiguration.filters) + && Objects.equals( + this.groundingInputParameters, + groundingModuleConfigGroundingServiceConfiguration.groundingInputParameters) + && Objects.equals( + this.groundingOutputParameter, + groundingModuleConfigGroundingServiceConfiguration.groundingOutputParameter); } @Override public int hashCode() { - return Objects.hash(secretName, filters, groundingInputParameters, groundingOutputParameter, cloudSdkCustomFields); + return Objects.hash( + secretName, + filters, + groundingInputParameters, + groundingOutputParameter, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class GroundingModuleConfigGroundingServiceConfiguration {\n"); sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); - sb.append(" groundingInputParameters: ").append(toIndentedString(groundingInputParameters)).append("\n"); - sb.append(" groundingOutputParameter: ").append(toIndentedString(groundingOutputParameter)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" groundingInputParameters: ") + .append(toIndentedString(groundingInputParameters)) + .append("\n"); + sb.append(" groundingOutputParameter: ") + .append(toIndentedString(groundingOutputParameter)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -281,57 +338,68 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance with all required arguments. + */ + public static Builder create() { + return (secretName) -> + (groundingInputParameters) -> + (groundingOutputParameter) -> + new GroundingModuleConfigGroundingServiceConfiguration() + .secretName(secretName) + .groundingInputParameters(groundingInputParameters) + .groundingOutputParameter(groundingOutputParameter); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link GroundingModuleConfigGroundingServiceConfiguration} instance with all required arguments. - */ - public static Builder create() { - return (secretName) -> (groundingInputParameters) -> (groundingOutputParameter) -> new GroundingModuleConfigGroundingServiceConfiguration().secretName(secretName).groundingInputParameters(groundingInputParameters).groundingOutputParameter(groundingOutputParameter); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - * - * @param secretName Secret name of the generic secret within Gen AI Hub containing document grounding service credentials - * @return The GroundingModuleConfigGroundingServiceConfiguration builder. - */ - Builder1 secretName( @Nonnull final String secretName); - } + * Set the secretName of this {@link GroundingModuleConfigGroundingServiceConfiguration} + * instance. + * + * @param secretName Secret name of the generic secret within Gen AI Hub containing document + * grounding service credentials + * @return The GroundingModuleConfigGroundingServiceConfiguration builder. + */ + Builder1 secretName(@Nonnull final String secretName); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - * - * @param groundingInputParameters Contains the input parameters used for grounding input questions - * @return The GroundingModuleConfigGroundingServiceConfiguration builder. - */ - Builder2 groundingInputParameters( @Nonnull final List groundingInputParameters); - /** - * Set the groundingInputParameters of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - * - * @param groundingInputParameters Contains the input parameters used for grounding input questions - * @return The GroundingModuleConfigGroundingServiceConfiguration builder. - */ - default Builder2 groundingInputParameters( @Nonnull final String... groundingInputParameters) { - return groundingInputParameters(Arrays.asList(groundingInputParameters)); - } - } + * Set the groundingInputParameters of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param groundingInputParameters Contains the input parameters used for grounding input + * questions + * @return The GroundingModuleConfigGroundingServiceConfiguration builder. + */ + Builder2 groundingInputParameters(@Nonnull final List groundingInputParameters); + /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the groundingOutputParameter of this {@link GroundingModuleConfigGroundingServiceConfiguration} instance. - * - * @param groundingOutputParameter Parameter name used for grounding output - * @return The GroundingModuleConfigGroundingServiceConfiguration instance. - */ - GroundingModuleConfigGroundingServiceConfiguration groundingOutputParameter( @Nonnull final String groundingOutputParameter); + * Set the groundingInputParameters of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param groundingInputParameters Contains the input parameters used for grounding input + * questions + * @return The GroundingModuleConfigGroundingServiceConfiguration builder. + */ + default Builder2 groundingInputParameters(@Nonnull final String... groundingInputParameters) { + return groundingInputParameters(Arrays.asList(groundingInputParameters)); } + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the groundingOutputParameter of this {@link + * GroundingModuleConfigGroundingServiceConfiguration} instance. + * + * @param groundingOutputParameter Parameter name used for grounding output + * @return The GroundingModuleConfigGroundingServiceConfiguration instance. + */ + GroundingModuleConfigGroundingServiceConfiguration groundingOutputParameter( + @Nonnull final String groundingOutputParameter); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java index 30793ba5..0ea077d4 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMChoice.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.ChatMessage; import java.math.BigDecimal; import java.util.HashMap; +import java.util.LinkedHashMap; import java.util.List; import java.util.Map; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - +import java.util.NoSuchElementException; +import java.util.Objects; +import java.util.Set; import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * LLMChoice - */ +/** LLMChoice */ // CHECKSTYLE:OFF -public class LLMChoice +public class LLMChoice // CHECKSTYLE:ON { @JsonProperty("index") @@ -59,137 +44,153 @@ public class LLMChoice @JsonProperty("finish_reason") private String finishReason; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected LLMChoice() { } - - /** - * Set the index of this {@link LLMChoice} instance and return the same instance. - * - * @param index Index of the choice - * @return The same instance of this {@link LLMChoice} class - */ - @Nonnull public LLMChoice index(@Nonnull final Integer index) { + + protected LLMChoice() {} + + /** + * Set the index of this {@link LLMChoice} instance and return the same instance. + * + * @param index Index of the choice + * @return The same instance of this {@link LLMChoice} class + */ + @Nonnull + public LLMChoice index(@Nonnull final Integer index) { this.index = index; return this; } - /** - * Index of the choice - * @return index The index of this {@link LLMChoice} instance. - */ - @Nonnull public Integer getIndex() { + /** + * Index of the choice + * + * @return index The index of this {@link LLMChoice} instance. + */ + @Nonnull + public Integer getIndex() { return index; } /** * Set the index of this {@link LLMChoice} instance. * - * @param index Index of the choice + * @param index Index of the choice */ - public void setIndex( @Nonnull final Integer index) { + public void setIndex(@Nonnull final Integer index) { this.index = index; } - /** - * Set the message of this {@link LLMChoice} instance and return the same instance. - * - * @param message The message of this {@link LLMChoice} - * @return The same instance of this {@link LLMChoice} class - */ - @Nonnull public LLMChoice message(@Nonnull final ChatMessage message) { + /** + * Set the message of this {@link LLMChoice} instance and return the same instance. + * + * @param message The message of this {@link LLMChoice} + * @return The same instance of this {@link LLMChoice} class + */ + @Nonnull + public LLMChoice message(@Nonnull final ChatMessage message) { this.message = message; return this; } - /** - * Get message - * @return message The message of this {@link LLMChoice} instance. - */ - @Nonnull public ChatMessage getMessage() { + /** + * Get message + * + * @return message The message of this {@link LLMChoice} instance. + */ + @Nonnull + public ChatMessage getMessage() { return message; } /** * Set the message of this {@link LLMChoice} instance. * - * @param message The message of this {@link LLMChoice} + * @param message The message of this {@link LLMChoice} */ - public void setMessage( @Nonnull final ChatMessage message) { + public void setMessage(@Nonnull final ChatMessage message) { this.message = message; } - /** - * Set the logprobs of this {@link LLMChoice} instance and return the same instance. - * - * @param logprobs Log probabilities - * @return The same instance of this {@link LLMChoice} class - */ - @Nonnull public LLMChoice logprobs(@Nonnull final Map> logprobs) { + /** + * Set the logprobs of this {@link LLMChoice} instance and return the same instance. + * + * @param logprobs Log probabilities + * @return The same instance of this {@link LLMChoice} class + */ + @Nonnull + public LLMChoice logprobs(@Nonnull final Map> logprobs) { this.logprobs = logprobs; return this; } - /** - * Put one logprobs instance to this {@link LLMChoice} instance. - * @param key The String key of this logprobs instance - * @param logprobsItem The logprobs that should be added under the given key - * @return The same instance of type {@link LLMChoice} - */ - @Nonnull public LLMChoice putlogprobsItem(@Nonnull final String key, @Nonnull final List logprobsItem) { - this.logprobs = new HashMap<>(); + /** + * Put one logprobs instance to this {@link LLMChoice} instance. + * + * @param key The String key of this logprobs instance + * @param logprobsItem The logprobs that should be added under the given key + * @return The same instance of type {@link LLMChoice} + */ + @Nonnull + public LLMChoice putlogprobsItem( + @Nonnull final String key, @Nonnull final List logprobsItem) { + this.logprobs = new HashMap<>(); this.logprobs.put(key, logprobsItem); return this; } - /** - * Log probabilities - * @return logprobs The logprobs of this {@link LLMChoice} instance. - */ - @Nonnull public Map> getLogprobs() { + /** + * Log probabilities + * + * @return logprobs The logprobs of this {@link LLMChoice} instance. + */ + @Nonnull + public Map> getLogprobs() { return logprobs; } /** * Set the logprobs of this {@link LLMChoice} instance. * - * @param logprobs Log probabilities + * @param logprobs Log probabilities */ - public void setLogprobs( @Nonnull final Map> logprobs) { + public void setLogprobs(@Nonnull final Map> logprobs) { this.logprobs = logprobs; } - /** - * Set the finishReason of this {@link LLMChoice} instance and return the same instance. - * - * @param finishReason Reason for stopping the model - * @return The same instance of this {@link LLMChoice} class - */ - @Nonnull public LLMChoice finishReason(@Nonnull final String finishReason) { + /** + * Set the finishReason of this {@link LLMChoice} instance and return the same instance. + * + * @param finishReason Reason for stopping the model + * @return The same instance of this {@link LLMChoice} class + */ + @Nonnull + public LLMChoice finishReason(@Nonnull final String finishReason) { this.finishReason = finishReason; return this; } - /** - * Reason for stopping the model - * @return finishReason The finishReason of this {@link LLMChoice} instance. - */ - @Nonnull public String getFinishReason() { + /** + * Reason for stopping the model + * + * @return finishReason The finishReason of this {@link LLMChoice} instance. + */ + @Nonnull + public String getFinishReason() { return finishReason; } /** * Set the finishReason of this {@link LLMChoice} instance. * - * @param finishReason Reason for stopping the model + * @param finishReason Reason for stopping the model */ - public void setFinishReason( @Nonnull final String finishReason) { + public void setFinishReason(@Nonnull final String finishReason) { this.finishReason = finishReason; } /** * Get the names of the unrecognizable properties of the {@link LLMChoice}. + * * @return The set of properties names */ @JsonIgnore @@ -200,31 +201,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link LLMChoice} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("LLMChoice has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("LLMChoice has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link LLMChoice} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link LLMChoice} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -234,11 +235,11 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final LLMChoice llMChoice = (LLMChoice) o; - return Objects.equals(this.cloudSdkCustomFields, llMChoice.cloudSdkCustomFields) && - Objects.equals(this.index, llMChoice.index) && - Objects.equals(this.message, llMChoice.message) && - Objects.equals(this.logprobs, llMChoice.logprobs) && - Objects.equals(this.finishReason, llMChoice.finishReason); + return Objects.equals(this.cloudSdkCustomFields, llMChoice.cloudSdkCustomFields) + && Objects.equals(this.index, llMChoice.index) + && Objects.equals(this.message, llMChoice.message) + && Objects.equals(this.logprobs, llMChoice.logprobs) + && Objects.equals(this.finishReason, llMChoice.finishReason); } @Override @@ -247,21 +248,23 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class LLMChoice {\n"); sb.append(" index: ").append(toIndentedString(index)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" logprobs: ").append(toIndentedString(logprobs)).append("\n"); sb.append(" finishReason: ").append(toIndentedString(finishReason)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -270,48 +273,47 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link LLMChoice} instance + * with all required arguments. + */ + public static Builder create() { + return (index) -> + (message) -> + (finishReason) -> + new LLMChoice().index(index).message(message).finishReason(finishReason); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link LLMChoice} instance with all required arguments. - */ - public static Builder create() { - return (index) -> (message) -> (finishReason) -> new LLMChoice().index(index).message(message).finishReason(finishReason); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the index of this {@link LLMChoice} instance. - * - * @param index Index of the choice - * @return The LLMChoice builder. - */ - Builder1 index( @Nonnull final Integer index); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the message of this {@link LLMChoice} instance. - * - * @param message The message of this {@link LLMChoice} - * @return The LLMChoice builder. - */ - Builder2 message( @Nonnull final ChatMessage message); - } + * Set the index of this {@link LLMChoice} instance. + * + * @param index Index of the choice + * @return The LLMChoice builder. + */ + Builder1 index(@Nonnull final Integer index); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the finishReason of this {@link LLMChoice} instance. - * - * @param finishReason Reason for stopping the model - * @return The LLMChoice instance. - */ - LLMChoice finishReason( @Nonnull final String finishReason); - } + * Set the message of this {@link LLMChoice} instance. + * + * @param message The message of this {@link LLMChoice} + * @return The LLMChoice builder. + */ + Builder2 message(@Nonnull final ChatMessage message); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the finishReason of this {@link LLMChoice} instance. + * + * @param finishReason Reason for stopping the model + * @return The LLMChoice instance. + */ + LLMChoice finishReason(@Nonnull final String finishReason); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java index 9c762e00..8482be1b 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * LLMModuleConfig - */ +/** LLMModuleConfig */ // CHECKSTYLE:OFF -public class LLMModuleConfig +public class LLMModuleConfig // CHECKSTYLE:ON { @JsonProperty("model_name") @@ -51,97 +38,107 @@ public class LLMModuleConfig @JsonProperty("model_version") private String modelVersion = "latest"; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected LLMModuleConfig() { } - - /** - * Set the modelName of this {@link LLMModuleConfig} instance and return the same instance. - * - * @param modelName Model name as in LLM Access configuration - * @return The same instance of this {@link LLMModuleConfig} class - */ - @Nonnull public LLMModuleConfig modelName(@Nonnull final String modelName) { + + protected LLMModuleConfig() {} + + /** + * Set the modelName of this {@link LLMModuleConfig} instance and return the same instance. + * + * @param modelName Model name as in LLM Access configuration + * @return The same instance of this {@link LLMModuleConfig} class + */ + @Nonnull + public LLMModuleConfig modelName(@Nonnull final String modelName) { this.modelName = modelName; return this; } - /** - * Model name as in LLM Access configuration - * @return modelName The modelName of this {@link LLMModuleConfig} instance. - */ - @Nonnull public String getModelName() { + /** + * Model name as in LLM Access configuration + * + * @return modelName The modelName of this {@link LLMModuleConfig} instance. + */ + @Nonnull + public String getModelName() { return modelName; } /** * Set the modelName of this {@link LLMModuleConfig} instance. * - * @param modelName Model name as in LLM Access configuration + * @param modelName Model name as in LLM Access configuration */ - public void setModelName( @Nonnull final String modelName) { + public void setModelName(@Nonnull final String modelName) { this.modelName = modelName; } - /** - * Set the modelParams of this {@link LLMModuleConfig} instance and return the same instance. - * - * @param modelParams Model parameters - * @return The same instance of this {@link LLMModuleConfig} class - */ - @Nonnull public LLMModuleConfig modelParams(@Nonnull final Object modelParams) { + /** + * Set the modelParams of this {@link LLMModuleConfig} instance and return the same instance. + * + * @param modelParams Model parameters + * @return The same instance of this {@link LLMModuleConfig} class + */ + @Nonnull + public LLMModuleConfig modelParams(@Nonnull final Object modelParams) { this.modelParams = modelParams; return this; } - /** - * Model parameters - * @return modelParams The modelParams of this {@link LLMModuleConfig} instance. - */ - @Nonnull public Object getModelParams() { + /** + * Model parameters + * + * @return modelParams The modelParams of this {@link LLMModuleConfig} instance. + */ + @Nonnull + public Object getModelParams() { return modelParams; } /** * Set the modelParams of this {@link LLMModuleConfig} instance. * - * @param modelParams Model parameters + * @param modelParams Model parameters */ - public void setModelParams( @Nonnull final Object modelParams) { + public void setModelParams(@Nonnull final Object modelParams) { this.modelParams = modelParams; } - /** - * Set the modelVersion of this {@link LLMModuleConfig} instance and return the same instance. - * - * @param modelVersion Version of the model to use - * @return The same instance of this {@link LLMModuleConfig} class - */ - @Nonnull public LLMModuleConfig modelVersion(@Nonnull final String modelVersion) { + /** + * Set the modelVersion of this {@link LLMModuleConfig} instance and return the same instance. + * + * @param modelVersion Version of the model to use + * @return The same instance of this {@link LLMModuleConfig} class + */ + @Nonnull + public LLMModuleConfig modelVersion(@Nonnull final String modelVersion) { this.modelVersion = modelVersion; return this; } - /** - * Version of the model to use - * @return modelVersion The modelVersion of this {@link LLMModuleConfig} instance. - */ - @Nonnull public String getModelVersion() { + /** + * Version of the model to use + * + * @return modelVersion The modelVersion of this {@link LLMModuleConfig} instance. + */ + @Nonnull + public String getModelVersion() { return modelVersion; } /** * Set the modelVersion of this {@link LLMModuleConfig} instance. * - * @param modelVersion Version of the model to use + * @param modelVersion Version of the model to use */ - public void setModelVersion( @Nonnull final String modelVersion) { + public void setModelVersion(@Nonnull final String modelVersion) { this.modelVersion = modelVersion; } /** * Get the names of the unrecognizable properties of the {@link LLMModuleConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -152,31 +149,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link LLMModuleConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("LLMModuleConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("LLMModuleConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link LLMModuleConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link LLMModuleConfig} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +183,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final LLMModuleConfig llMModuleConfig = (LLMModuleConfig) o; - return Objects.equals(this.cloudSdkCustomFields, llMModuleConfig.cloudSdkCustomFields) && - Objects.equals(this.modelName, llMModuleConfig.modelName) && - Objects.equals(this.modelParams, llMModuleConfig.modelParams) && - Objects.equals(this.modelVersion, llMModuleConfig.modelVersion); + return Objects.equals(this.cloudSdkCustomFields, llMModuleConfig.cloudSdkCustomFields) + && Objects.equals(this.modelName, llMModuleConfig.modelName) + && Objects.equals(this.modelParams, llMModuleConfig.modelParams) + && Objects.equals(this.modelVersion, llMModuleConfig.modelVersion); } @Override @@ -198,20 +195,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class LLMModuleConfig {\n"); sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); sb.append(" modelParams: ").append(toIndentedString(modelParams)).append("\n"); sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,36 +219,34 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link LLMModuleConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (modelName) -> + (modelParams) -> new LLMModuleConfig().modelName(modelName).modelParams(modelParams); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link LLMModuleConfig} instance with all required arguments. - */ - public static Builder create() { - return (modelName) -> (modelParams) -> new LLMModuleConfig().modelName(modelName).modelParams(modelParams); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the modelName of this {@link LLMModuleConfig} instance. - * - * @param modelName Model name as in LLM Access configuration - * @return The LLMModuleConfig builder. - */ - Builder1 modelName( @Nonnull final String modelName); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the modelParams of this {@link LLMModuleConfig} instance. - * - * @param modelParams Model parameters - * @return The LLMModuleConfig instance. - */ - LLMModuleConfig modelParams( @Nonnull final Object modelParams); - } + * Set the modelName of this {@link LLMModuleConfig} instance. + * + * @param modelName Model name as in LLM Access configuration + * @return The LLMModuleConfig builder. + */ + Builder1 modelName(@Nonnull final String modelName); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the modelParams of this {@link LLMModuleConfig} instance. + * + * @param modelParams Model parameters + * @return The LLMModuleConfig instance. + */ + LLMModuleConfig modelParams(@Nonnull final Object modelParams); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java index 325caa15..b829ff94 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/LLMModuleResult.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.LLMChoice; -import com.sap.ai.sdk.orchestration.client.model.TokenUsage; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Output of LLM module. Follows the OpenAI spec. - */ +/** Output of LLM module. Follows the OpenAI spec. */ // CHECKSTYLE:OFF -public class LLMModuleResult +public class LLMModuleResult // CHECKSTYLE:ON { @JsonProperty("id") @@ -68,167 +53,187 @@ public class LLMModuleResult @JsonProperty("usage") private TokenUsage usage; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected LLMModuleResult() { } - - /** - * Set the id of this {@link LLMModuleResult} instance and return the same instance. - * - * @param id ID of the response - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult id(@Nonnull final String id) { + + protected LLMModuleResult() {} + + /** + * Set the id of this {@link LLMModuleResult} instance and return the same instance. + * + * @param id ID of the response + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult id(@Nonnull final String id) { this.id = id; return this; } - /** - * ID of the response - * @return id The id of this {@link LLMModuleResult} instance. - */ - @Nonnull public String getId() { + /** + * ID of the response + * + * @return id The id of this {@link LLMModuleResult} instance. + */ + @Nonnull + public String getId() { return id; } /** * Set the id of this {@link LLMModuleResult} instance. * - * @param id ID of the response + * @param id ID of the response */ - public void setId( @Nonnull final String id) { + public void setId(@Nonnull final String id) { this.id = id; } - /** - * Set the _object of this {@link LLMModuleResult} instance and return the same instance. - * - * @param _object Object type - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult _object(@Nonnull final String _object) { + /** + * Set the _object of this {@link LLMModuleResult} instance and return the same instance. + * + * @param _object Object type + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult _object(@Nonnull final String _object) { this._object = _object; return this; } - /** - * Object type - * @return _object The _object of this {@link LLMModuleResult} instance. - */ - @Nonnull public String getObject() { + /** + * Object type + * + * @return _object The _object of this {@link LLMModuleResult} instance. + */ + @Nonnull + public String getObject() { return _object; } /** * Set the _object of this {@link LLMModuleResult} instance. * - * @param _object Object type + * @param _object Object type */ - public void setObject( @Nonnull final String _object) { + public void setObject(@Nonnull final String _object) { this._object = _object; } - /** - * Set the created of this {@link LLMModuleResult} instance and return the same instance. - * - * @param created Unix timestamp - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult created(@Nonnull final Integer created) { + /** + * Set the created of this {@link LLMModuleResult} instance and return the same instance. + * + * @param created Unix timestamp + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult created(@Nonnull final Integer created) { this.created = created; return this; } - /** - * Unix timestamp - * @return created The created of this {@link LLMModuleResult} instance. - */ - @Nonnull public Integer getCreated() { + /** + * Unix timestamp + * + * @return created The created of this {@link LLMModuleResult} instance. + */ + @Nonnull + public Integer getCreated() { return created; } /** * Set the created of this {@link LLMModuleResult} instance. * - * @param created Unix timestamp + * @param created Unix timestamp */ - public void setCreated( @Nonnull final Integer created) { + public void setCreated(@Nonnull final Integer created) { this.created = created; } - /** - * Set the model of this {@link LLMModuleResult} instance and return the same instance. - * - * @param model Model name - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult model(@Nonnull final String model) { + /** + * Set the model of this {@link LLMModuleResult} instance and return the same instance. + * + * @param model Model name + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult model(@Nonnull final String model) { this.model = model; return this; } - /** - * Model name - * @return model The model of this {@link LLMModuleResult} instance. - */ - @Nonnull public String getModel() { + /** + * Model name + * + * @return model The model of this {@link LLMModuleResult} instance. + */ + @Nonnull + public String getModel() { return model; } /** * Set the model of this {@link LLMModuleResult} instance. * - * @param model Model name + * @param model Model name */ - public void setModel( @Nonnull final String model) { + public void setModel(@Nonnull final String model) { this.model = model; } - /** - * Set the systemFingerprint of this {@link LLMModuleResult} instance and return the same instance. - * - * @param systemFingerprint System fingerprint - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult systemFingerprint(@Nonnull final String systemFingerprint) { + /** + * Set the systemFingerprint of this {@link LLMModuleResult} instance and return the same + * instance. + * + * @param systemFingerprint System fingerprint + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult systemFingerprint(@Nonnull final String systemFingerprint) { this.systemFingerprint = systemFingerprint; return this; } - /** - * System fingerprint - * @return systemFingerprint The systemFingerprint of this {@link LLMModuleResult} instance. - */ - @Nonnull public String getSystemFingerprint() { + /** + * System fingerprint + * + * @return systemFingerprint The systemFingerprint of this {@link LLMModuleResult} instance. + */ + @Nonnull + public String getSystemFingerprint() { return systemFingerprint; } /** * Set the systemFingerprint of this {@link LLMModuleResult} instance. * - * @param systemFingerprint System fingerprint + * @param systemFingerprint System fingerprint */ - public void setSystemFingerprint( @Nonnull final String systemFingerprint) { + public void setSystemFingerprint(@Nonnull final String systemFingerprint) { this.systemFingerprint = systemFingerprint; } - /** - * Set the choices of this {@link LLMModuleResult} instance and return the same instance. - * - * @param choices Choices - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult choices(@Nonnull final List choices) { + /** + * Set the choices of this {@link LLMModuleResult} instance and return the same instance. + * + * @param choices Choices + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult choices(@Nonnull final List choices) { this.choices = choices; return this; } + /** * Add one choices instance to this {@link LLMModuleResult}. + * * @param choicesItem The choices that should be added * @return The same instance of type {@link LLMModuleResult} */ - @Nonnull public LLMModuleResult addChoicesItem( @Nonnull final LLMChoice choicesItem) { + @Nonnull + public LLMModuleResult addChoicesItem(@Nonnull final LLMChoice choicesItem) { if (this.choices == null) { this.choices = new ArrayList<>(); } @@ -236,53 +241,59 @@ public void setSystemFingerprint( @Nonnull final String systemFingerprint) { return this; } - /** - * Choices - * @return choices The choices of this {@link LLMModuleResult} instance. - */ - @Nonnull public List getChoices() { + /** + * Choices + * + * @return choices The choices of this {@link LLMModuleResult} instance. + */ + @Nonnull + public List getChoices() { return choices; } /** * Set the choices of this {@link LLMModuleResult} instance. * - * @param choices Choices + * @param choices Choices */ - public void setChoices( @Nonnull final List choices) { + public void setChoices(@Nonnull final List choices) { this.choices = choices; } - /** - * Set the usage of this {@link LLMModuleResult} instance and return the same instance. - * - * @param usage The usage of this {@link LLMModuleResult} - * @return The same instance of this {@link LLMModuleResult} class - */ - @Nonnull public LLMModuleResult usage(@Nonnull final TokenUsage usage) { + /** + * Set the usage of this {@link LLMModuleResult} instance and return the same instance. + * + * @param usage The usage of this {@link LLMModuleResult} + * @return The same instance of this {@link LLMModuleResult} class + */ + @Nonnull + public LLMModuleResult usage(@Nonnull final TokenUsage usage) { this.usage = usage; return this; } - /** - * Get usage - * @return usage The usage of this {@link LLMModuleResult} instance. - */ - @Nonnull public TokenUsage getUsage() { + /** + * Get usage + * + * @return usage The usage of this {@link LLMModuleResult} instance. + */ + @Nonnull + public TokenUsage getUsage() { return usage; } /** * Set the usage of this {@link LLMModuleResult} instance. * - * @param usage The usage of this {@link LLMModuleResult} + * @param usage The usage of this {@link LLMModuleResult} */ - public void setUsage( @Nonnull final TokenUsage usage) { + public void setUsage(@Nonnull final TokenUsage usage) { this.usage = usage; } /** * Get the names of the unrecognizable properties of the {@link LLMModuleResult}. + * * @return The set of properties names */ @JsonIgnore @@ -293,31 +304,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link LLMModuleResult} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("LLMModuleResult has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("LLMModuleResult has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link LLMModuleResult} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link LLMModuleResult} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -327,23 +338,25 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final LLMModuleResult llMModuleResult = (LLMModuleResult) o; - return Objects.equals(this.cloudSdkCustomFields, llMModuleResult.cloudSdkCustomFields) && - Objects.equals(this.id, llMModuleResult.id) && - Objects.equals(this._object, llMModuleResult._object) && - Objects.equals(this.created, llMModuleResult.created) && - Objects.equals(this.model, llMModuleResult.model) && - Objects.equals(this.systemFingerprint, llMModuleResult.systemFingerprint) && - Objects.equals(this.choices, llMModuleResult.choices) && - Objects.equals(this.usage, llMModuleResult.usage); + return Objects.equals(this.cloudSdkCustomFields, llMModuleResult.cloudSdkCustomFields) + && Objects.equals(this.id, llMModuleResult.id) + && Objects.equals(this._object, llMModuleResult._object) + && Objects.equals(this.created, llMModuleResult.created) + && Objects.equals(this.model, llMModuleResult.model) + && Objects.equals(this.systemFingerprint, llMModuleResult.systemFingerprint) + && Objects.equals(this.choices, llMModuleResult.choices) + && Objects.equals(this.usage, llMModuleResult.usage); } @Override public int hashCode() { - return Objects.hash(id, _object, created, model, systemFingerprint, choices, usage, cloudSdkCustomFields); + return Objects.hash( + id, _object, created, model, systemFingerprint, choices, usage, cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class LLMModuleResult {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); @@ -353,14 +366,15 @@ public int hashCode() { sb.append(" systemFingerprint: ").append(toIndentedString(systemFingerprint)).append("\n"); sb.append(" choices: ").append(toIndentedString(choices)).append("\n"); sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -369,93 +383,99 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link LLMModuleResult} + * instance with all required arguments. + */ + public static Builder create() { + return (id) -> + (_object) -> + (created) -> + (model) -> + (choices) -> + (usage) -> + new LLMModuleResult() + .id(id) + ._object(_object) + .created(created) + .model(model) + .choices(choices) + .usage(usage); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link LLMModuleResult} instance with all required arguments. - */ - public static Builder create() { - return (id) -> (_object) -> (created) -> (model) -> (choices) -> (usage) -> new LLMModuleResult().id(id)._object(_object).created(created).model(model).choices(choices).usage(usage); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the id of this {@link LLMModuleResult} instance. - * - * @param id ID of the response - * @return The LLMModuleResult builder. - */ - Builder1 id( @Nonnull final String id); - } + * Set the id of this {@link LLMModuleResult} instance. + * + * @param id ID of the response + * @return The LLMModuleResult builder. + */ + Builder1 id(@Nonnull final String id); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the _object of this {@link LLMModuleResult} instance. - * - * @param _object Object type - * @return The LLMModuleResult builder. - */ - Builder2 _object( @Nonnull final String _object); - } + * Set the _object of this {@link LLMModuleResult} instance. + * + * @param _object Object type + * @return The LLMModuleResult builder. + */ + Builder2 _object(@Nonnull final String _object); + } + + /** Builder helper class. */ + public interface Builder2 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the created of this {@link LLMModuleResult} instance. - * - * @param created Unix timestamp - * @return The LLMModuleResult builder. - */ - Builder3 created( @Nonnull final Integer created); - } + * Set the created of this {@link LLMModuleResult} instance. + * + * @param created Unix timestamp + * @return The LLMModuleResult builder. + */ + Builder3 created(@Nonnull final Integer created); + } + + /** Builder helper class. */ + public interface Builder3 { /** - * Builder helper class. - */ - public interface Builder3 { - /** - * Set the model of this {@link LLMModuleResult} instance. - * - * @param model Model name - * @return The LLMModuleResult builder. - */ - Builder4 model( @Nonnull final String model); - } + * Set the model of this {@link LLMModuleResult} instance. + * + * @param model Model name + * @return The LLMModuleResult builder. + */ + Builder4 model(@Nonnull final String model); + } + + /** Builder helper class. */ + public interface Builder4 { /** - * Builder helper class. - */ - public interface Builder4 { - /** - * Set the choices of this {@link LLMModuleResult} instance. - * - * @param choices Choices - * @return The LLMModuleResult builder. - */ - Builder5 choices( @Nonnull final List choices); - /** - * Set the choices of this {@link LLMModuleResult} instance. - * - * @param choices Choices - * @return The LLMModuleResult builder. - */ - default Builder5 choices( @Nonnull final LLMChoice... choices) { - return choices(Arrays.asList(choices)); - } - } + * Set the choices of this {@link LLMModuleResult} instance. + * + * @param choices Choices + * @return The LLMModuleResult builder. + */ + Builder5 choices(@Nonnull final List choices); + /** - * Builder helper class. - */ - public interface Builder5 { - /** - * Set the usage of this {@link LLMModuleResult} instance. - * - * @param usage The usage of this {@link LLMModuleResult} - * @return The LLMModuleResult instance. - */ - LLMModuleResult usage( @Nonnull final TokenUsage usage); + * Set the choices of this {@link LLMModuleResult} instance. + * + * @param choices Choices + * @return The LLMModuleResult builder. + */ + default Builder5 choices(@Nonnull final LLMChoice... choices) { + return choices(Arrays.asList(choices)); } + } + /** Builder helper class. */ + public interface Builder5 { + /** + * Set the usage of this {@link LLMModuleResult} instance. + * + * @param usage The usage of this {@link LLMModuleResult} + * @return The LLMModuleResult instance. + */ + LLMModuleResult usage(@Nonnull final TokenUsage usage); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java index ca61a53c..03d213a4 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/Masking.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.MaskingEntitiesInner; -import com.sap.ai.sdk.orchestration.client.model.MaskingProviderType; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Masking - */ +/** Masking */ // CHECKSTYLE:OFF -public class Masking +public class Masking // CHECKSTYLE:ON { @JsonProperty("type") @@ -53,55 +38,62 @@ public class Masking @JsonProperty("entities") private List entities = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected Masking() { } - - /** - * Set the type of this {@link Masking} instance and return the same instance. - * - * @param type The type of this {@link Masking} - * @return The same instance of this {@link Masking} class - */ - @Nonnull public Masking type(@Nonnull final MaskingProviderType type) { + + protected Masking() {} + + /** + * Set the type of this {@link Masking} instance and return the same instance. + * + * @param type The type of this {@link Masking} + * @return The same instance of this {@link Masking} class + */ + @Nonnull + public Masking type(@Nonnull final MaskingProviderType type) { this.type = type; return this; } - /** - * Get type - * @return type The type of this {@link Masking} instance. - */ - @Nonnull public MaskingProviderType getType() { + /** + * Get type + * + * @return type The type of this {@link Masking} instance. + */ + @Nonnull + public MaskingProviderType getType() { return type; } /** * Set the type of this {@link Masking} instance. * - * @param type The type of this {@link Masking} + * @param type The type of this {@link Masking} */ - public void setType( @Nonnull final MaskingProviderType type) { + public void setType(@Nonnull final MaskingProviderType type) { this.type = type; } - /** - * Set the entities of this {@link Masking} instance and return the same instance. - * - * @param entities List of entities to be masked - * @return The same instance of this {@link Masking} class - */ - @Nonnull public Masking entities(@Nonnull final List entities) { + /** + * Set the entities of this {@link Masking} instance and return the same instance. + * + * @param entities List of entities to be masked + * @return The same instance of this {@link Masking} class + */ + @Nonnull + public Masking entities(@Nonnull final List entities) { this.entities = entities; return this; } + /** * Add one entities instance to this {@link Masking}. + * * @param entitiesItem The entities that should be added * @return The same instance of type {@link Masking} */ - @Nonnull public Masking addEntitiesItem( @Nonnull final MaskingEntitiesInner entitiesItem) { + @Nonnull + public Masking addEntitiesItem(@Nonnull final MaskingEntitiesInner entitiesItem) { if (this.entities == null) { this.entities = new ArrayList<>(); } @@ -109,25 +101,28 @@ public void setType( @Nonnull final MaskingProviderType type) { return this; } - /** - * List of entities to be masked - * @return entities The entities of this {@link Masking} instance. - */ - @Nonnull public List getEntities() { + /** + * List of entities to be masked + * + * @return entities The entities of this {@link Masking} instance. + */ + @Nonnull + public List getEntities() { return entities; } /** * Set the entities of this {@link Masking} instance. * - * @param entities List of entities to be masked + * @param entities List of entities to be masked */ - public void setEntities( @Nonnull final List entities) { + public void setEntities(@Nonnull final List entities) { this.entities = entities; } /** * Get the names of the unrecognizable properties of the {@link Masking}. + * * @return The set of properties names */ @JsonIgnore @@ -138,31 +133,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link Masking} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("Masking has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("Masking has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link Masking} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link Masking} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -172,9 +167,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final Masking masking = (Masking) o; - return Objects.equals(this.cloudSdkCustomFields, masking.cloudSdkCustomFields) && - Objects.equals(this.type, masking.type) && - Objects.equals(this.entities, masking.entities); + return Objects.equals(this.cloudSdkCustomFields, masking.cloudSdkCustomFields) + && Objects.equals(this.type, masking.type) + && Objects.equals(this.entities, masking.entities); } @Override @@ -183,19 +178,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class Masking {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" entities: ").append(toIndentedString(entities)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -204,45 +201,43 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link Masking} instance with + * all required arguments. + */ + public static Builder create() { + return (type) -> (entities) -> new Masking().type(type).entities(entities); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link Masking} instance with all required arguments. - */ - public static Builder create() { - return (type) -> (entities) -> new Masking().type(type).entities(entities); - } + * Set the type of this {@link Masking} instance. + * + * @param type The type of this {@link Masking} + * @return The Masking builder. + */ + Builder1 type(@Nonnull final MaskingProviderType type); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the type of this {@link Masking} instance. - * - * @param type The type of this {@link Masking} - * @return The Masking builder. - */ - Builder1 type( @Nonnull final MaskingProviderType type); - } + * Set the entities of this {@link Masking} instance. + * + * @param entities List of entities to be masked + * @return The Masking instance. + */ + Masking entities(@Nonnull final List entities); + /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the entities of this {@link Masking} instance. - * - * @param entities List of entities to be masked - * @return The Masking instance. - */ - Masking entities( @Nonnull final List entities); - /** - * Set the entities of this {@link Masking} instance. - * - * @param entities List of entities to be masked - * @return The Masking instance. - */ - default Masking entities( @Nonnull final MaskingEntitiesInner... entities) { - return entities(Arrays.asList(entities)); - } + * Set the entities of this {@link Masking} instance. + * + * @param entities List of entities to be masked + * @return The Masking instance. + */ + default Masking entities(@Nonnull final MaskingEntitiesInner... entities) { + return entities(Arrays.asList(entities)); } - + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java index c06e1118..cf64cac2 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingEntitiesInner.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,30 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.sap.ai.sdk.orchestration.client.model.DPIEntities; -import com.sap.ai.sdk.orchestration.client.model.PresidioEntities; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MaskingEntitiesInner - */ +/** MaskingEntitiesInner */ // CHECKSTYLE:OFF -public class MaskingEntitiesInner +public class MaskingEntitiesInner // CHECKSTYLE:ON { - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MaskingEntitiesInner() { } + + protected MaskingEntitiesInner() {} /** * Get the names of the unrecognizable properties of the {@link MaskingEntitiesInner}. + * * @return The set of properties names */ @JsonIgnore @@ -57,31 +46,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MaskingEntitiesInner} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MaskingEntitiesInner has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MaskingEntitiesInner has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MaskingEntitiesInner} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MaskingEntitiesInner} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -100,17 +90,19 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MaskingEntitiesInner {\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -119,12 +111,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link MaskingEntitiesInner} instance. No arguments are required. - */ - public static MaskingEntitiesInner create() { - return new MaskingEntitiesInner(); - } - + /** Create a new {@link MaskingEntitiesInner} instance. No arguments are required. */ + public static MaskingEntitiesInner create() { + return new MaskingEntitiesInner(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java index f0cd6d40..08b024a4 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingModuleConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.Masking; -import com.sap.ai.sdk.orchestration.client.model.UnmaskingConfig; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * MaskingModuleConfig - */ +/** MaskingModuleConfig */ // CHECKSTYLE:OFF -public class MaskingModuleConfig +public class MaskingModuleConfig // CHECKSTYLE:ON { @JsonProperty("masking") @@ -53,27 +38,31 @@ public class MaskingModuleConfig @JsonProperty("unmasking") private UnmaskingConfig unmasking; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected MaskingModuleConfig() { } - - /** - * Set the masking of this {@link MaskingModuleConfig} instance and return the same instance. - * - * @param masking Masking services to be used - * @return The same instance of this {@link MaskingModuleConfig} class - */ - @Nonnull public MaskingModuleConfig masking(@Nonnull final List masking) { + + protected MaskingModuleConfig() {} + + /** + * Set the masking of this {@link MaskingModuleConfig} instance and return the same instance. + * + * @param masking Masking services to be used + * @return The same instance of this {@link MaskingModuleConfig} class + */ + @Nonnull + public MaskingModuleConfig masking(@Nonnull final List masking) { this.masking = masking; return this; } + /** * Add one masking instance to this {@link MaskingModuleConfig}. + * * @param maskingItem The masking that should be added * @return The same instance of type {@link MaskingModuleConfig} */ - @Nonnull public MaskingModuleConfig addMaskingItem( @Nonnull final Masking maskingItem) { + @Nonnull + public MaskingModuleConfig addMaskingItem(@Nonnull final Masking maskingItem) { if (this.masking == null) { this.masking = new ArrayList<>(); } @@ -81,53 +70,59 @@ protected MaskingModuleConfig() { } return this; } - /** - * Masking services to be used - * @return masking The masking of this {@link MaskingModuleConfig} instance. - */ - @Nonnull public List getMasking() { + /** + * Masking services to be used + * + * @return masking The masking of this {@link MaskingModuleConfig} instance. + */ + @Nonnull + public List getMasking() { return masking; } /** * Set the masking of this {@link MaskingModuleConfig} instance. * - * @param masking Masking services to be used + * @param masking Masking services to be used */ - public void setMasking( @Nonnull final List masking) { + public void setMasking(@Nonnull final List masking) { this.masking = masking; } - /** - * Set the unmasking of this {@link MaskingModuleConfig} instance and return the same instance. - * - * @param unmasking The unmasking of this {@link MaskingModuleConfig} - * @return The same instance of this {@link MaskingModuleConfig} class - */ - @Nonnull public MaskingModuleConfig unmasking(@Nonnull final UnmaskingConfig unmasking) { + /** + * Set the unmasking of this {@link MaskingModuleConfig} instance and return the same instance. + * + * @param unmasking The unmasking of this {@link MaskingModuleConfig} + * @return The same instance of this {@link MaskingModuleConfig} class + */ + @Nonnull + public MaskingModuleConfig unmasking(@Nonnull final UnmaskingConfig unmasking) { this.unmasking = unmasking; return this; } - /** - * Get unmasking - * @return unmasking The unmasking of this {@link MaskingModuleConfig} instance. - */ - @Nonnull public UnmaskingConfig getUnmasking() { + /** + * Get unmasking + * + * @return unmasking The unmasking of this {@link MaskingModuleConfig} instance. + */ + @Nonnull + public UnmaskingConfig getUnmasking() { return unmasking; } /** * Set the unmasking of this {@link MaskingModuleConfig} instance. * - * @param unmasking The unmasking of this {@link MaskingModuleConfig} + * @param unmasking The unmasking of this {@link MaskingModuleConfig} */ - public void setUnmasking( @Nonnull final UnmaskingConfig unmasking) { + public void setUnmasking(@Nonnull final UnmaskingConfig unmasking) { this.unmasking = unmasking; } /** * Get the names of the unrecognizable properties of the {@link MaskingModuleConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -138,31 +133,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link MaskingModuleConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("MaskingModuleConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "MaskingModuleConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link MaskingModuleConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link MaskingModuleConfig} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -172,9 +168,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final MaskingModuleConfig maskingModuleConfig = (MaskingModuleConfig) o; - return Objects.equals(this.cloudSdkCustomFields, maskingModuleConfig.cloudSdkCustomFields) && - Objects.equals(this.masking, maskingModuleConfig.masking) && - Objects.equals(this.unmasking, maskingModuleConfig.unmasking); + return Objects.equals(this.cloudSdkCustomFields, maskingModuleConfig.cloudSdkCustomFields) + && Objects.equals(this.masking, maskingModuleConfig.masking) + && Objects.equals(this.unmasking, maskingModuleConfig.unmasking); } @Override @@ -183,19 +179,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class MaskingModuleConfig {\n"); sb.append(" masking: ").append(toIndentedString(masking)).append("\n"); sb.append(" unmasking: ").append(toIndentedString(unmasking)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -204,33 +202,32 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link MaskingModuleConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (masking) -> new MaskingModuleConfig().masking(masking); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link MaskingModuleConfig} instance with all required arguments. - */ - public static Builder create() { - return (masking) -> new MaskingModuleConfig().masking(masking); - } + * Set the masking of this {@link MaskingModuleConfig} instance. + * + * @param masking Masking services to be used + * @return The MaskingModuleConfig instance. + */ + MaskingModuleConfig masking(@Nonnull final List masking); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the masking of this {@link MaskingModuleConfig} instance. - * - * @param masking Masking services to be used - * @return The MaskingModuleConfig instance. - */ - MaskingModuleConfig masking( @Nonnull final List masking); - /** - * Set the masking of this {@link MaskingModuleConfig} instance. - * - * @param masking Masking services to be used - * @return The MaskingModuleConfig instance. - */ - default MaskingModuleConfig masking( @Nonnull final Masking... masking) { - return masking(Arrays.asList(masking)); - } + * Set the masking of this {@link MaskingModuleConfig} instance. + * + * @param masking Masking services to be used + * @return The MaskingModuleConfig instance. + */ + default MaskingModuleConfig masking(@Nonnull final Masking... masking) { + return masking(Arrays.asList(masking)); } - + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingProviderType.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingProviderType.java index 048ed9b2..34333873 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingProviderType.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/MaskingProviderType.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,14 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Gets or Sets MaskingProviderType - */ +/** Gets or Sets MaskingProviderType */ public enum MaskingProviderType { - DATA_PRIVACY_INTEGRATION("data_privacy_integration"), - + MS_PRESIDIO("ms_presidio"); private final String value; @@ -60,7 +40,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -68,7 +49,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -81,4 +61,3 @@ public static MaskingProviderType fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java index e3a27288..ac23b278 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleConfigs.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,37 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.FilteringModuleConfig; -import com.sap.ai.sdk.orchestration.client.model.GroundingModuleConfig; -import com.sap.ai.sdk.orchestration.client.model.LLMModuleConfig; -import com.sap.ai.sdk.orchestration.client.model.MaskingModuleConfig; -import com.sap.ai.sdk.orchestration.client.model.TemplatingModuleConfig; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * ModuleConfigs - */ +/** ModuleConfigs */ // CHECKSTYLE:OFF -public class ModuleConfigs +public class ModuleConfigs // CHECKSTYLE:ON { @JsonProperty("llm_module_config") @@ -62,153 +44,178 @@ public class ModuleConfigs @JsonProperty("grounding_module_config") private GroundingModuleConfig groundingModuleConfig; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected ModuleConfigs() { } - - /** - * Set the llmModuleConfig of this {@link ModuleConfigs} instance and return the same instance. - * - * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} - * @return The same instance of this {@link ModuleConfigs} class - */ - @Nonnull public ModuleConfigs llmModuleConfig(@Nonnull final LLMModuleConfig llmModuleConfig) { + + protected ModuleConfigs() {} + + /** + * Set the llmModuleConfig of this {@link ModuleConfigs} instance and return the same instance. + * + * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} + * @return The same instance of this {@link ModuleConfigs} class + */ + @Nonnull + public ModuleConfigs llmModuleConfig(@Nonnull final LLMModuleConfig llmModuleConfig) { this.llmModuleConfig = llmModuleConfig; return this; } - /** - * Get llmModuleConfig - * @return llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} instance. - */ - @Nonnull public LLMModuleConfig getLlmModuleConfig() { + /** + * Get llmModuleConfig + * + * @return llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} instance. + */ + @Nonnull + public LLMModuleConfig getLlmModuleConfig() { return llmModuleConfig; } /** * Set the llmModuleConfig of this {@link ModuleConfigs} instance. * - * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} + * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} */ - public void setLlmModuleConfig( @Nonnull final LLMModuleConfig llmModuleConfig) { + public void setLlmModuleConfig(@Nonnull final LLMModuleConfig llmModuleConfig) { this.llmModuleConfig = llmModuleConfig; } - /** - * Set the templatingModuleConfig of this {@link ModuleConfigs} instance and return the same instance. - * - * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} - * @return The same instance of this {@link ModuleConfigs} class - */ - @Nonnull public ModuleConfigs templatingModuleConfig(@Nonnull final TemplatingModuleConfig templatingModuleConfig) { + /** + * Set the templatingModuleConfig of this {@link ModuleConfigs} instance and return the same + * instance. + * + * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} + * @return The same instance of this {@link ModuleConfigs} class + */ + @Nonnull + public ModuleConfigs templatingModuleConfig( + @Nonnull final TemplatingModuleConfig templatingModuleConfig) { this.templatingModuleConfig = templatingModuleConfig; return this; } - /** - * Get templatingModuleConfig - * @return templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} instance. - */ - @Nonnull public TemplatingModuleConfig getTemplatingModuleConfig() { + /** + * Get templatingModuleConfig + * + * @return templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} + * instance. + */ + @Nonnull + public TemplatingModuleConfig getTemplatingModuleConfig() { return templatingModuleConfig; } /** * Set the templatingModuleConfig of this {@link ModuleConfigs} instance. * - * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} + * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} */ - public void setTemplatingModuleConfig( @Nonnull final TemplatingModuleConfig templatingModuleConfig) { + public void setTemplatingModuleConfig( + @Nonnull final TemplatingModuleConfig templatingModuleConfig) { this.templatingModuleConfig = templatingModuleConfig; } - /** - * Set the filteringModuleConfig of this {@link ModuleConfigs} instance and return the same instance. - * - * @param filteringModuleConfig The filteringModuleConfig of this {@link ModuleConfigs} - * @return The same instance of this {@link ModuleConfigs} class - */ - @Nonnull public ModuleConfigs filteringModuleConfig(@Nonnull final FilteringModuleConfig filteringModuleConfig) { + /** + * Set the filteringModuleConfig of this {@link ModuleConfigs} instance and return the same + * instance. + * + * @param filteringModuleConfig The filteringModuleConfig of this {@link ModuleConfigs} + * @return The same instance of this {@link ModuleConfigs} class + */ + @Nonnull + public ModuleConfigs filteringModuleConfig( + @Nonnull final FilteringModuleConfig filteringModuleConfig) { this.filteringModuleConfig = filteringModuleConfig; return this; } - /** - * Get filteringModuleConfig - * @return filteringModuleConfig The filteringModuleConfig of this {@link ModuleConfigs} instance. - */ - @Nonnull public FilteringModuleConfig getFilteringModuleConfig() { + /** + * Get filteringModuleConfig + * + * @return filteringModuleConfig The filteringModuleConfig of this {@link ModuleConfigs} instance. + */ + @Nonnull + public FilteringModuleConfig getFilteringModuleConfig() { return filteringModuleConfig; } /** * Set the filteringModuleConfig of this {@link ModuleConfigs} instance. * - * @param filteringModuleConfig The filteringModuleConfig of this {@link ModuleConfigs} + * @param filteringModuleConfig The filteringModuleConfig of this {@link ModuleConfigs} */ - public void setFilteringModuleConfig( @Nonnull final FilteringModuleConfig filteringModuleConfig) { + public void setFilteringModuleConfig(@Nonnull final FilteringModuleConfig filteringModuleConfig) { this.filteringModuleConfig = filteringModuleConfig; } - /** - * Set the maskingModuleConfig of this {@link ModuleConfigs} instance and return the same instance. - * - * @param maskingModuleConfig The maskingModuleConfig of this {@link ModuleConfigs} - * @return The same instance of this {@link ModuleConfigs} class - */ - @Nonnull public ModuleConfigs maskingModuleConfig(@Nonnull final MaskingModuleConfig maskingModuleConfig) { + /** + * Set the maskingModuleConfig of this {@link ModuleConfigs} instance and return the same + * instance. + * + * @param maskingModuleConfig The maskingModuleConfig of this {@link ModuleConfigs} + * @return The same instance of this {@link ModuleConfigs} class + */ + @Nonnull + public ModuleConfigs maskingModuleConfig(@Nonnull final MaskingModuleConfig maskingModuleConfig) { this.maskingModuleConfig = maskingModuleConfig; return this; } - /** - * Get maskingModuleConfig - * @return maskingModuleConfig The maskingModuleConfig of this {@link ModuleConfigs} instance. - */ - @Nonnull public MaskingModuleConfig getMaskingModuleConfig() { + /** + * Get maskingModuleConfig + * + * @return maskingModuleConfig The maskingModuleConfig of this {@link ModuleConfigs} instance. + */ + @Nonnull + public MaskingModuleConfig getMaskingModuleConfig() { return maskingModuleConfig; } /** * Set the maskingModuleConfig of this {@link ModuleConfigs} instance. * - * @param maskingModuleConfig The maskingModuleConfig of this {@link ModuleConfigs} + * @param maskingModuleConfig The maskingModuleConfig of this {@link ModuleConfigs} */ - public void setMaskingModuleConfig( @Nonnull final MaskingModuleConfig maskingModuleConfig) { + public void setMaskingModuleConfig(@Nonnull final MaskingModuleConfig maskingModuleConfig) { this.maskingModuleConfig = maskingModuleConfig; } - /** - * Set the groundingModuleConfig of this {@link ModuleConfigs} instance and return the same instance. - * - * @param groundingModuleConfig The groundingModuleConfig of this {@link ModuleConfigs} - * @return The same instance of this {@link ModuleConfigs} class - */ - @Nonnull public ModuleConfigs groundingModuleConfig(@Nonnull final GroundingModuleConfig groundingModuleConfig) { + /** + * Set the groundingModuleConfig of this {@link ModuleConfigs} instance and return the same + * instance. + * + * @param groundingModuleConfig The groundingModuleConfig of this {@link ModuleConfigs} + * @return The same instance of this {@link ModuleConfigs} class + */ + @Nonnull + public ModuleConfigs groundingModuleConfig( + @Nonnull final GroundingModuleConfig groundingModuleConfig) { this.groundingModuleConfig = groundingModuleConfig; return this; } - /** - * Get groundingModuleConfig - * @return groundingModuleConfig The groundingModuleConfig of this {@link ModuleConfigs} instance. - */ - @Nonnull public GroundingModuleConfig getGroundingModuleConfig() { + /** + * Get groundingModuleConfig + * + * @return groundingModuleConfig The groundingModuleConfig of this {@link ModuleConfigs} instance. + */ + @Nonnull + public GroundingModuleConfig getGroundingModuleConfig() { return groundingModuleConfig; } /** * Set the groundingModuleConfig of this {@link ModuleConfigs} instance. * - * @param groundingModuleConfig The groundingModuleConfig of this {@link ModuleConfigs} + * @param groundingModuleConfig The groundingModuleConfig of this {@link ModuleConfigs} */ - public void setGroundingModuleConfig( @Nonnull final GroundingModuleConfig groundingModuleConfig) { + public void setGroundingModuleConfig(@Nonnull final GroundingModuleConfig groundingModuleConfig) { this.groundingModuleConfig = groundingModuleConfig; } /** * Get the names of the unrecognizable properties of the {@link ModuleConfigs}. + * * @return The set of properties names */ @JsonIgnore @@ -219,31 +226,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link ModuleConfigs} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("ModuleConfigs has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("ModuleConfigs has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link ModuleConfigs} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link ModuleConfigs} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -253,36 +260,52 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final ModuleConfigs moduleConfigs = (ModuleConfigs) o; - return Objects.equals(this.cloudSdkCustomFields, moduleConfigs.cloudSdkCustomFields) && - Objects.equals(this.llmModuleConfig, moduleConfigs.llmModuleConfig) && - Objects.equals(this.templatingModuleConfig, moduleConfigs.templatingModuleConfig) && - Objects.equals(this.filteringModuleConfig, moduleConfigs.filteringModuleConfig) && - Objects.equals(this.maskingModuleConfig, moduleConfigs.maskingModuleConfig) && - Objects.equals(this.groundingModuleConfig, moduleConfigs.groundingModuleConfig); + return Objects.equals(this.cloudSdkCustomFields, moduleConfigs.cloudSdkCustomFields) + && Objects.equals(this.llmModuleConfig, moduleConfigs.llmModuleConfig) + && Objects.equals(this.templatingModuleConfig, moduleConfigs.templatingModuleConfig) + && Objects.equals(this.filteringModuleConfig, moduleConfigs.filteringModuleConfig) + && Objects.equals(this.maskingModuleConfig, moduleConfigs.maskingModuleConfig) + && Objects.equals(this.groundingModuleConfig, moduleConfigs.groundingModuleConfig); } @Override public int hashCode() { - return Objects.hash(llmModuleConfig, templatingModuleConfig, filteringModuleConfig, maskingModuleConfig, groundingModuleConfig, cloudSdkCustomFields); + return Objects.hash( + llmModuleConfig, + templatingModuleConfig, + filteringModuleConfig, + maskingModuleConfig, + groundingModuleConfig, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class ModuleConfigs {\n"); sb.append(" llmModuleConfig: ").append(toIndentedString(llmModuleConfig)).append("\n"); - sb.append(" templatingModuleConfig: ").append(toIndentedString(templatingModuleConfig)).append("\n"); - sb.append(" filteringModuleConfig: ").append(toIndentedString(filteringModuleConfig)).append("\n"); - sb.append(" maskingModuleConfig: ").append(toIndentedString(maskingModuleConfig)).append("\n"); - sb.append(" groundingModuleConfig: ").append(toIndentedString(groundingModuleConfig)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" templatingModuleConfig: ") + .append(toIndentedString(templatingModuleConfig)) + .append("\n"); + sb.append(" filteringModuleConfig: ") + .append(toIndentedString(filteringModuleConfig)) + .append("\n"); + sb.append(" maskingModuleConfig: ") + .append(toIndentedString(maskingModuleConfig)) + .append("\n"); + sb.append(" groundingModuleConfig: ") + .append(toIndentedString(groundingModuleConfig)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -291,36 +314,38 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link ModuleConfigs} instance + * with all required arguments. + */ + public static Builder create() { + return (llmModuleConfig) -> + (templatingModuleConfig) -> + new ModuleConfigs() + .llmModuleConfig(llmModuleConfig) + .templatingModuleConfig(templatingModuleConfig); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link ModuleConfigs} instance with all required arguments. - */ - public static Builder create() { - return (llmModuleConfig) -> (templatingModuleConfig) -> new ModuleConfigs().llmModuleConfig(llmModuleConfig).templatingModuleConfig(templatingModuleConfig); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the llmModuleConfig of this {@link ModuleConfigs} instance. - * - * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} - * @return The ModuleConfigs builder. - */ - Builder1 llmModuleConfig( @Nonnull final LLMModuleConfig llmModuleConfig); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the templatingModuleConfig of this {@link ModuleConfigs} instance. - * - * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} - * @return The ModuleConfigs instance. - */ - ModuleConfigs templatingModuleConfig( @Nonnull final TemplatingModuleConfig templatingModuleConfig); - } + * Set the llmModuleConfig of this {@link ModuleConfigs} instance. + * + * @param llmModuleConfig The llmModuleConfig of this {@link ModuleConfigs} + * @return The ModuleConfigs builder. + */ + Builder1 llmModuleConfig(@Nonnull final LLMModuleConfig llmModuleConfig); + } + /** Builder helper class. */ + public interface Builder1 { + /** + * Set the templatingModuleConfig of this {@link ModuleConfigs} instance. + * + * @param templatingModuleConfig The templatingModuleConfig of this {@link ModuleConfigs} + * @return The ModuleConfigs instance. + */ + ModuleConfigs templatingModuleConfig( + @Nonnull final TemplatingModuleConfig templatingModuleConfig); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java index 77608b81..447e2d03 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ModuleResults.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,38 +12,23 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.ChatMessage; -import com.sap.ai.sdk.orchestration.client.model.GenericModuleResult; -import com.sap.ai.sdk.orchestration.client.model.LLMModuleResult; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Results of each module. - */ +/** Results of each module. */ // CHECKSTYLE:OFF -public class ModuleResults +public class ModuleResults // CHECKSTYLE:ON { @JsonProperty("grounding") @@ -69,55 +52,62 @@ public class ModuleResults @JsonProperty("output_unmasking") private GenericModuleResult outputUnmasking; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected ModuleResults() { } - - /** - * Set the grounding of this {@link ModuleResults} instance and return the same instance. - * - * @param grounding The grounding of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults grounding(@Nonnull final GenericModuleResult grounding) { + + protected ModuleResults() {} + + /** + * Set the grounding of this {@link ModuleResults} instance and return the same instance. + * + * @param grounding The grounding of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults grounding(@Nonnull final GenericModuleResult grounding) { this.grounding = grounding; return this; } - /** - * Get grounding - * @return grounding The grounding of this {@link ModuleResults} instance. - */ - @Nonnull public GenericModuleResult getGrounding() { + /** + * Get grounding + * + * @return grounding The grounding of this {@link ModuleResults} instance. + */ + @Nonnull + public GenericModuleResult getGrounding() { return grounding; } /** * Set the grounding of this {@link ModuleResults} instance. * - * @param grounding The grounding of this {@link ModuleResults} + * @param grounding The grounding of this {@link ModuleResults} */ - public void setGrounding( @Nonnull final GenericModuleResult grounding) { + public void setGrounding(@Nonnull final GenericModuleResult grounding) { this.grounding = grounding; } - /** - * Set the templating of this {@link ModuleResults} instance and return the same instance. - * - * @param templating The templating of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults templating(@Nonnull final List templating) { + /** + * Set the templating of this {@link ModuleResults} instance and return the same instance. + * + * @param templating The templating of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults templating(@Nonnull final List templating) { this.templating = templating; return this; } + /** * Add one templating instance to this {@link ModuleResults}. + * * @param templatingItem The templating that should be added * @return The same instance of type {@link ModuleResults} */ - @Nonnull public ModuleResults addTemplatingItem( @Nonnull final ChatMessage templatingItem) { + @Nonnull + public ModuleResults addTemplatingItem(@Nonnull final ChatMessage templatingItem) { if (this.templating == null) { this.templating = new ArrayList<>(); } @@ -125,165 +115,183 @@ public void setGrounding( @Nonnull final GenericModuleResult grounding) { return this; } - /** - * Get templating - * @return templating The templating of this {@link ModuleResults} instance. - */ - @Nonnull public List getTemplating() { + /** + * Get templating + * + * @return templating The templating of this {@link ModuleResults} instance. + */ + @Nonnull + public List getTemplating() { return templating; } /** * Set the templating of this {@link ModuleResults} instance. * - * @param templating The templating of this {@link ModuleResults} + * @param templating The templating of this {@link ModuleResults} */ - public void setTemplating( @Nonnull final List templating) { + public void setTemplating(@Nonnull final List templating) { this.templating = templating; } - /** - * Set the inputMasking of this {@link ModuleResults} instance and return the same instance. - * - * @param inputMasking The inputMasking of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults inputMasking(@Nonnull final GenericModuleResult inputMasking) { + /** + * Set the inputMasking of this {@link ModuleResults} instance and return the same instance. + * + * @param inputMasking The inputMasking of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults inputMasking(@Nonnull final GenericModuleResult inputMasking) { this.inputMasking = inputMasking; return this; } - /** - * Get inputMasking - * @return inputMasking The inputMasking of this {@link ModuleResults} instance. - */ - @Nonnull public GenericModuleResult getInputMasking() { + /** + * Get inputMasking + * + * @return inputMasking The inputMasking of this {@link ModuleResults} instance. + */ + @Nonnull + public GenericModuleResult getInputMasking() { return inputMasking; } /** * Set the inputMasking of this {@link ModuleResults} instance. * - * @param inputMasking The inputMasking of this {@link ModuleResults} + * @param inputMasking The inputMasking of this {@link ModuleResults} */ - public void setInputMasking( @Nonnull final GenericModuleResult inputMasking) { + public void setInputMasking(@Nonnull final GenericModuleResult inputMasking) { this.inputMasking = inputMasking; } - /** - * Set the inputFiltering of this {@link ModuleResults} instance and return the same instance. - * - * @param inputFiltering The inputFiltering of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults inputFiltering(@Nonnull final GenericModuleResult inputFiltering) { + /** + * Set the inputFiltering of this {@link ModuleResults} instance and return the same instance. + * + * @param inputFiltering The inputFiltering of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults inputFiltering(@Nonnull final GenericModuleResult inputFiltering) { this.inputFiltering = inputFiltering; return this; } - /** - * Get inputFiltering - * @return inputFiltering The inputFiltering of this {@link ModuleResults} instance. - */ - @Nonnull public GenericModuleResult getInputFiltering() { + /** + * Get inputFiltering + * + * @return inputFiltering The inputFiltering of this {@link ModuleResults} instance. + */ + @Nonnull + public GenericModuleResult getInputFiltering() { return inputFiltering; } /** * Set the inputFiltering of this {@link ModuleResults} instance. * - * @param inputFiltering The inputFiltering of this {@link ModuleResults} + * @param inputFiltering The inputFiltering of this {@link ModuleResults} */ - public void setInputFiltering( @Nonnull final GenericModuleResult inputFiltering) { + public void setInputFiltering(@Nonnull final GenericModuleResult inputFiltering) { this.inputFiltering = inputFiltering; } - /** - * Set the llm of this {@link ModuleResults} instance and return the same instance. - * - * @param llm The llm of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults llm(@Nonnull final LLMModuleResult llm) { + /** + * Set the llm of this {@link ModuleResults} instance and return the same instance. + * + * @param llm The llm of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults llm(@Nonnull final LLMModuleResult llm) { this.llm = llm; return this; } - /** - * Get llm - * @return llm The llm of this {@link ModuleResults} instance. - */ - @Nonnull public LLMModuleResult getLlm() { + /** + * Get llm + * + * @return llm The llm of this {@link ModuleResults} instance. + */ + @Nonnull + public LLMModuleResult getLlm() { return llm; } /** * Set the llm of this {@link ModuleResults} instance. * - * @param llm The llm of this {@link ModuleResults} + * @param llm The llm of this {@link ModuleResults} */ - public void setLlm( @Nonnull final LLMModuleResult llm) { + public void setLlm(@Nonnull final LLMModuleResult llm) { this.llm = llm; } - /** - * Set the outputFiltering of this {@link ModuleResults} instance and return the same instance. - * - * @param outputFiltering The outputFiltering of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults outputFiltering(@Nonnull final GenericModuleResult outputFiltering) { + /** + * Set the outputFiltering of this {@link ModuleResults} instance and return the same instance. + * + * @param outputFiltering The outputFiltering of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults outputFiltering(@Nonnull final GenericModuleResult outputFiltering) { this.outputFiltering = outputFiltering; return this; } - /** - * Get outputFiltering - * @return outputFiltering The outputFiltering of this {@link ModuleResults} instance. - */ - @Nonnull public GenericModuleResult getOutputFiltering() { + /** + * Get outputFiltering + * + * @return outputFiltering The outputFiltering of this {@link ModuleResults} instance. + */ + @Nonnull + public GenericModuleResult getOutputFiltering() { return outputFiltering; } /** * Set the outputFiltering of this {@link ModuleResults} instance. * - * @param outputFiltering The outputFiltering of this {@link ModuleResults} + * @param outputFiltering The outputFiltering of this {@link ModuleResults} */ - public void setOutputFiltering( @Nonnull final GenericModuleResult outputFiltering) { + public void setOutputFiltering(@Nonnull final GenericModuleResult outputFiltering) { this.outputFiltering = outputFiltering; } - /** - * Set the outputUnmasking of this {@link ModuleResults} instance and return the same instance. - * - * @param outputUnmasking The outputUnmasking of this {@link ModuleResults} - * @return The same instance of this {@link ModuleResults} class - */ - @Nonnull public ModuleResults outputUnmasking(@Nonnull final GenericModuleResult outputUnmasking) { + /** + * Set the outputUnmasking of this {@link ModuleResults} instance and return the same instance. + * + * @param outputUnmasking The outputUnmasking of this {@link ModuleResults} + * @return The same instance of this {@link ModuleResults} class + */ + @Nonnull + public ModuleResults outputUnmasking(@Nonnull final GenericModuleResult outputUnmasking) { this.outputUnmasking = outputUnmasking; return this; } - /** - * Get outputUnmasking - * @return outputUnmasking The outputUnmasking of this {@link ModuleResults} instance. - */ - @Nonnull public GenericModuleResult getOutputUnmasking() { + /** + * Get outputUnmasking + * + * @return outputUnmasking The outputUnmasking of this {@link ModuleResults} instance. + */ + @Nonnull + public GenericModuleResult getOutputUnmasking() { return outputUnmasking; } /** * Set the outputUnmasking of this {@link ModuleResults} instance. * - * @param outputUnmasking The outputUnmasking of this {@link ModuleResults} + * @param outputUnmasking The outputUnmasking of this {@link ModuleResults} */ - public void setOutputUnmasking( @Nonnull final GenericModuleResult outputUnmasking) { + public void setOutputUnmasking(@Nonnull final GenericModuleResult outputUnmasking) { this.outputUnmasking = outputUnmasking; } /** * Get the names of the unrecognizable properties of the {@link ModuleResults}. + * * @return The set of properties names */ @JsonIgnore @@ -294,31 +302,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link ModuleResults} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("ModuleResults has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("ModuleResults has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link ModuleResults} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link ModuleResults} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -328,23 +336,32 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final ModuleResults moduleResults = (ModuleResults) o; - return Objects.equals(this.cloudSdkCustomFields, moduleResults.cloudSdkCustomFields) && - Objects.equals(this.grounding, moduleResults.grounding) && - Objects.equals(this.templating, moduleResults.templating) && - Objects.equals(this.inputMasking, moduleResults.inputMasking) && - Objects.equals(this.inputFiltering, moduleResults.inputFiltering) && - Objects.equals(this.llm, moduleResults.llm) && - Objects.equals(this.outputFiltering, moduleResults.outputFiltering) && - Objects.equals(this.outputUnmasking, moduleResults.outputUnmasking); + return Objects.equals(this.cloudSdkCustomFields, moduleResults.cloudSdkCustomFields) + && Objects.equals(this.grounding, moduleResults.grounding) + && Objects.equals(this.templating, moduleResults.templating) + && Objects.equals(this.inputMasking, moduleResults.inputMasking) + && Objects.equals(this.inputFiltering, moduleResults.inputFiltering) + && Objects.equals(this.llm, moduleResults.llm) + && Objects.equals(this.outputFiltering, moduleResults.outputFiltering) + && Objects.equals(this.outputUnmasking, moduleResults.outputUnmasking); } @Override public int hashCode() { - return Objects.hash(grounding, templating, inputMasking, inputFiltering, llm, outputFiltering, outputUnmasking, cloudSdkCustomFields); + return Objects.hash( + grounding, + templating, + inputMasking, + inputFiltering, + llm, + outputFiltering, + outputUnmasking, + cloudSdkCustomFields); } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class ModuleResults {\n"); sb.append(" grounding: ").append(toIndentedString(grounding)).append("\n"); @@ -354,14 +371,15 @@ public int hashCode() { sb.append(" llm: ").append(toIndentedString(llm)).append("\n"); sb.append(" outputFiltering: ").append(toIndentedString(outputFiltering)).append("\n"); sb.append(" outputUnmasking: ").append(toIndentedString(outputUnmasking)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -370,12 +388,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link ModuleResults} instance. No arguments are required. - */ - public static ModuleResults create() { - return new ModuleResults(); - } - + /** Create a new {@link ModuleResults} instance. No arguments are required. */ + public static ModuleResults create() { + return new ModuleResults(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java index b1e2ac84..999e0274 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,73 +12,68 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.ModuleConfigs; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * OrchestrationConfig - */ +/** OrchestrationConfig */ // CHECKSTYLE:OFF -public class OrchestrationConfig +public class OrchestrationConfig // CHECKSTYLE:ON { @JsonProperty("module_configurations") private ModuleConfigs moduleConfigurations; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected OrchestrationConfig() { } - - /** - * Set the moduleConfigurations of this {@link OrchestrationConfig} instance and return the same instance. - * - * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} - * @return The same instance of this {@link OrchestrationConfig} class - */ - @Nonnull public OrchestrationConfig moduleConfigurations(@Nonnull final ModuleConfigs moduleConfigurations) { + + protected OrchestrationConfig() {} + + /** + * Set the moduleConfigurations of this {@link OrchestrationConfig} instance and return the same + * instance. + * + * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} + * @return The same instance of this {@link OrchestrationConfig} class + */ + @Nonnull + public OrchestrationConfig moduleConfigurations( + @Nonnull final ModuleConfigs moduleConfigurations) { this.moduleConfigurations = moduleConfigurations; return this; } - /** - * Get moduleConfigurations - * @return moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} instance. - */ - @Nonnull public ModuleConfigs getModuleConfigurations() { + /** + * Get moduleConfigurations + * + * @return moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} + * instance. + */ + @Nonnull + public ModuleConfigs getModuleConfigurations() { return moduleConfigurations; } /** * Set the moduleConfigurations of this {@link OrchestrationConfig} instance. * - * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} + * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} */ - public void setModuleConfigurations( @Nonnull final ModuleConfigs moduleConfigurations) { + public void setModuleConfigurations(@Nonnull final ModuleConfigs moduleConfigurations) { this.moduleConfigurations = moduleConfigurations; } /** * Get the names of the unrecognizable properties of the {@link OrchestrationConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -91,31 +84,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link OrchestrationConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("OrchestrationConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "OrchestrationConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link OrchestrationConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link OrchestrationConfig} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -125,8 +119,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final OrchestrationConfig orchestrationConfig = (OrchestrationConfig) o; - return Objects.equals(this.cloudSdkCustomFields, orchestrationConfig.cloudSdkCustomFields) && - Objects.equals(this.moduleConfigurations, orchestrationConfig.moduleConfigurations); + return Objects.equals(this.cloudSdkCustomFields, orchestrationConfig.cloudSdkCustomFields) + && Objects.equals(this.moduleConfigurations, orchestrationConfig.moduleConfigurations); } @Override @@ -135,18 +129,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class OrchestrationConfig {\n"); - sb.append(" moduleConfigurations: ").append(toIndentedString(moduleConfigurations)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + sb.append(" moduleConfigurations: ") + .append(toIndentedString(moduleConfigurations)) + .append("\n"); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -155,24 +153,23 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a type-safe, fluent-api builder object to construct a new {@link OrchestrationConfig} instance with all required arguments. - */ - public static Builder create() { - return (moduleConfigurations) -> new OrchestrationConfig().moduleConfigurations(moduleConfigurations); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the moduleConfigurations of this {@link OrchestrationConfig} instance. - * - * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} - * @return The OrchestrationConfig instance. - */ - OrchestrationConfig moduleConfigurations( @Nonnull final ModuleConfigs moduleConfigurations); - } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link OrchestrationConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (moduleConfigurations) -> + new OrchestrationConfig().moduleConfigurations(moduleConfigurations); + } + /** Builder helper class. */ + public interface Builder { + /** + * Set the moduleConfigurations of this {@link OrchestrationConfig} instance. + * + * @param moduleConfigurations The moduleConfigurations of this {@link OrchestrationConfig} + * @return The OrchestrationConfig instance. + */ + OrchestrationConfig moduleConfigurations(@Nonnull final ModuleConfigs moduleConfigurations); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java index 5d61d58a..03edcf39 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/OrchestrationV1EndpointsHealthz503Response.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,72 +12,67 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * OrchestrationV1EndpointsHealthz503Response - */ +/** OrchestrationV1EndpointsHealthz503Response */ // CHECKSTYLE:OFF -public class OrchestrationV1EndpointsHealthz503Response +public class OrchestrationV1EndpointsHealthz503Response // CHECKSTYLE:ON { @JsonProperty("status") private String status; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected OrchestrationV1EndpointsHealthz503Response() { } - - /** - * Set the status of this {@link OrchestrationV1EndpointsHealthz503Response} instance and return the same instance. - * - * @param status The status of this {@link OrchestrationV1EndpointsHealthz503Response} - * @return The same instance of this {@link OrchestrationV1EndpointsHealthz503Response} class - */ - @Nonnull public OrchestrationV1EndpointsHealthz503Response status(@Nonnull final String status) { + + protected OrchestrationV1EndpointsHealthz503Response() {} + + /** + * Set the status of this {@link OrchestrationV1EndpointsHealthz503Response} instance and return + * the same instance. + * + * @param status The status of this {@link OrchestrationV1EndpointsHealthz503Response} + * @return The same instance of this {@link OrchestrationV1EndpointsHealthz503Response} class + */ + @Nonnull + public OrchestrationV1EndpointsHealthz503Response status(@Nonnull final String status) { this.status = status; return this; } - /** - * Get status - * @return status The status of this {@link OrchestrationV1EndpointsHealthz503Response} instance. - */ - @Nonnull public String getStatus() { + /** + * Get status + * + * @return status The status of this {@link OrchestrationV1EndpointsHealthz503Response} instance. + */ + @Nonnull + public String getStatus() { return status; } /** * Set the status of this {@link OrchestrationV1EndpointsHealthz503Response} instance. * - * @param status The status of this {@link OrchestrationV1EndpointsHealthz503Response} + * @param status The status of this {@link OrchestrationV1EndpointsHealthz503Response} */ - public void setStatus( @Nonnull final String status) { + public void setStatus(@Nonnull final String status) { this.status = status; } /** - * Get the names of the unrecognizable properties of the {@link OrchestrationV1EndpointsHealthz503Response}. + * Get the names of the unrecognizable properties of the {@link + * OrchestrationV1EndpointsHealthz503Response}. + * * @return The set of properties names */ @JsonIgnore @@ -89,32 +82,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link OrchestrationV1EndpointsHealthz503Response} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link + * OrchestrationV1EndpointsHealthz503Response} instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("OrchestrationV1EndpointsHealthz503Response has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "OrchestrationV1EndpointsHealthz503Response has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link OrchestrationV1EndpointsHealthz503Response} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link OrchestrationV1EndpointsHealthz503Response} + * instance. If the map previously contained a mapping for the key, the old value is replaced by + * the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -123,9 +119,12 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final OrchestrationV1EndpointsHealthz503Response orchestrationV1EndpointsHealthz503Response = (OrchestrationV1EndpointsHealthz503Response) o; - return Objects.equals(this.cloudSdkCustomFields, orchestrationV1EndpointsHealthz503Response.cloudSdkCustomFields) && - Objects.equals(this.status, orchestrationV1EndpointsHealthz503Response.status); + final OrchestrationV1EndpointsHealthz503Response orchestrationV1EndpointsHealthz503Response = + (OrchestrationV1EndpointsHealthz503Response) o; + return Objects.equals( + this.cloudSdkCustomFields, + orchestrationV1EndpointsHealthz503Response.cloudSdkCustomFields) + && Objects.equals(this.status, orchestrationV1EndpointsHealthz503Response.status); } @Override @@ -134,18 +133,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class OrchestrationV1EndpointsHealthz503Response {\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -154,12 +155,11 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link OrchestrationV1EndpointsHealthz503Response} instance. No arguments are required. - */ - public static OrchestrationV1EndpointsHealthz503Response create() { - return new OrchestrationV1EndpointsHealthz503Response(); - } - + /** + * Create a new {@link OrchestrationV1EndpointsHealthz503Response} instance. No arguments are + * required. + */ + public static OrchestrationV1EndpointsHealthz503Response create() { + return new OrchestrationV1EndpointsHealthz503Response(); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/PresidioEntities.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/PresidioEntities.java index 5abb47c3..c474ac4d 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/PresidioEntities.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/PresidioEntities.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,30 +12,12 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Gets or Sets PresidioEntities - */ +/** Gets or Sets PresidioEntities */ public enum PresidioEntities { - URL("URL"); private final String value; @@ -58,7 +38,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -66,7 +47,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -79,4 +59,3 @@ public static PresidioEntities fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ProviderType.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ProviderType.java index ffa1fbb6..9961b52e 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ProviderType.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/ProviderType.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,30 +12,12 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; -import java.util.LinkedHashMap; -import java.util.Map; -import java.util.NoSuchElementException; -import java.util.Objects; -import java.util.Set; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -import javax.annotation.Nonnull; -import javax.annotation.Nullable; - import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; +import javax.annotation.Nonnull; -/** - * Gets or Sets ProviderType - */ +/** Gets or Sets ProviderType */ public enum ProviderType { - AZURE_CONTENT_SAFETY("azure_content_safety"); private final String value; @@ -58,7 +38,8 @@ public String getValue() { * @return The String representation of the enum value. */ @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { return String.valueOf(value); } @@ -66,7 +47,6 @@ public String getValue() { * Converts the given value to its enum representation. * * @param value The input value. - * * @return The enum representation of the given value. */ @JsonCreator @@ -79,4 +59,3 @@ public static ProviderType fromValue(@Nonnull final String value) { throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java index 869d0122..d03ec8ef 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TemplatingModuleConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,36 +12,24 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.ChatMessage; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * TemplatingModuleConfig - */ +/** TemplatingModuleConfig */ // CHECKSTYLE:OFF -public class TemplatingModuleConfig +public class TemplatingModuleConfig // CHECKSTYLE:ON { @JsonProperty("template") @@ -52,27 +38,33 @@ public class TemplatingModuleConfig @JsonProperty("defaults") private Object defaults; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TemplatingModuleConfig() { } - - /** - * Set the template of this {@link TemplatingModuleConfig} instance and return the same instance. - * - * @param template A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. - * @return The same instance of this {@link TemplatingModuleConfig} class - */ - @Nonnull public TemplatingModuleConfig template(@Nonnull final List template) { + + protected TemplatingModuleConfig() {} + + /** + * Set the template of this {@link TemplatingModuleConfig} instance and return the same instance. + * + * @param template A chat message array to be formatted with values from input_params. Both role + * and content can be templated. If messages_history is provided, the templated messages will + * be appended. + * @return The same instance of this {@link TemplatingModuleConfig} class + */ + @Nonnull + public TemplatingModuleConfig template(@Nonnull final List template) { this.template = template; return this; } + /** * Add one template instance to this {@link TemplatingModuleConfig}. + * * @param templateItem The template that should be added * @return The same instance of type {@link TemplatingModuleConfig} */ - @Nonnull public TemplatingModuleConfig addTemplateItem( @Nonnull final ChatMessage templateItem) { + @Nonnull + public TemplatingModuleConfig addTemplateItem(@Nonnull final ChatMessage templateItem) { if (this.template == null) { this.template = new ArrayList<>(); } @@ -80,53 +72,64 @@ protected TemplatingModuleConfig() { } return this; } - /** - * A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. - * @return template The template of this {@link TemplatingModuleConfig} instance. - */ - @Nonnull public List getTemplate() { + /** + * A chat message array to be formatted with values from input_params. Both role and content can + * be templated. If messages_history is provided, the templated messages will be appended. + * + * @return template The template of this {@link TemplatingModuleConfig} instance. + */ + @Nonnull + public List getTemplate() { return template; } /** * Set the template of this {@link TemplatingModuleConfig} instance. * - * @param template A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. + * @param template A chat message array to be formatted with values from input_params. Both role + * and content can be templated. If messages_history is provided, the templated messages will + * be appended. */ - public void setTemplate( @Nonnull final List template) { + public void setTemplate(@Nonnull final List template) { this.template = template; } - /** - * Set the defaults of this {@link TemplatingModuleConfig} instance and return the same instance. - * - * @param defaults Optional default values for the template. If a parameter has no default it is required. - * @return The same instance of this {@link TemplatingModuleConfig} class - */ - @Nonnull public TemplatingModuleConfig defaults(@Nonnull final Object defaults) { + /** + * Set the defaults of this {@link TemplatingModuleConfig} instance and return the same instance. + * + * @param defaults Optional default values for the template. If a parameter has no default it is + * required. + * @return The same instance of this {@link TemplatingModuleConfig} class + */ + @Nonnull + public TemplatingModuleConfig defaults(@Nonnull final Object defaults) { this.defaults = defaults; return this; } - /** - * Optional default values for the template. If a parameter has no default it is required. - * @return defaults The defaults of this {@link TemplatingModuleConfig} instance. - */ - @Nonnull public Object getDefaults() { + /** + * Optional default values for the template. If a parameter has no default it is required. + * + * @return defaults The defaults of this {@link TemplatingModuleConfig} instance. + */ + @Nonnull + public Object getDefaults() { return defaults; } /** * Set the defaults of this {@link TemplatingModuleConfig} instance. * - * @param defaults Optional default values for the template. If a parameter has no default it is required. + * @param defaults Optional default values for the template. If a parameter has no default it is + * required. */ - public void setDefaults( @Nonnull final Object defaults) { + public void setDefaults(@Nonnull final Object defaults) { this.defaults = defaults; } /** * Get the names of the unrecognizable properties of the {@link TemplatingModuleConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -137,31 +140,32 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TemplatingModuleConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TemplatingModuleConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "TemplatingModuleConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TemplatingModuleConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TemplatingModuleConfig} instance. If the map + * previously contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -171,9 +175,9 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TemplatingModuleConfig templatingModuleConfig = (TemplatingModuleConfig) o; - return Objects.equals(this.cloudSdkCustomFields, templatingModuleConfig.cloudSdkCustomFields) && - Objects.equals(this.template, templatingModuleConfig.template) && - Objects.equals(this.defaults, templatingModuleConfig.defaults); + return Objects.equals(this.cloudSdkCustomFields, templatingModuleConfig.cloudSdkCustomFields) + && Objects.equals(this.template, templatingModuleConfig.template) + && Objects.equals(this.defaults, templatingModuleConfig.defaults); } @Override @@ -182,19 +186,21 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TemplatingModuleConfig {\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); sb.append(" defaults: ").append(toIndentedString(defaults)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -203,33 +209,36 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TemplatingModuleConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (template) -> new TemplatingModuleConfig().template(template); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TemplatingModuleConfig} instance with all required arguments. - */ - public static Builder create() { - return (template) -> new TemplatingModuleConfig().template(template); - } + * Set the template of this {@link TemplatingModuleConfig} instance. + * + * @param template A chat message array to be formatted with values from input_params. Both role + * and content can be templated. If messages_history is provided, the templated messages + * will be appended. + * @return The TemplatingModuleConfig instance. + */ + TemplatingModuleConfig template(@Nonnull final List template); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the template of this {@link TemplatingModuleConfig} instance. - * - * @param template A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. - * @return The TemplatingModuleConfig instance. - */ - TemplatingModuleConfig template( @Nonnull final List template); - /** - * Set the template of this {@link TemplatingModuleConfig} instance. - * - * @param template A chat message array to be formatted with values from input_params. Both role and content can be templated. If messages_history is provided, the templated messages will be appended. - * @return The TemplatingModuleConfig instance. - */ - default TemplatingModuleConfig template( @Nonnull final ChatMessage... template) { - return template(Arrays.asList(template)); - } + * Set the template of this {@link TemplatingModuleConfig} instance. + * + * @param template A chat message array to be formatted with values from input_params. Both role + * and content can be templated. If messages_history is provided, the templated messages + * will be appended. + * @return The TemplatingModuleConfig instance. + */ + default TemplatingModuleConfig template(@Nonnull final ChatMessage... template) { + return template(Arrays.asList(template)); } - + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java index 8ba19b58..4d114d36 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/TokenUsage.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,32 +12,21 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * Usage of tokens in the response - */ +/** Usage of tokens in the response */ // CHECKSTYLE:OFF -public class TokenUsage +public class TokenUsage // CHECKSTYLE:ON { @JsonProperty("completion_tokens") @@ -51,97 +38,107 @@ public class TokenUsage @JsonProperty("total_tokens") private Integer totalTokens; - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected TokenUsage() { } - /** - * Set the completionTokens of this {@link TokenUsage} instance and return the same instance. - * - * @param completionTokens Number of tokens used in the input - * @return The same instance of this {@link TokenUsage} class - */ - @Nonnull public TokenUsage completionTokens(@Nonnull final Integer completionTokens) { + protected TokenUsage() {} + + /** + * Set the completionTokens of this {@link TokenUsage} instance and return the same instance. + * + * @param completionTokens Number of tokens used in the input + * @return The same instance of this {@link TokenUsage} class + */ + @Nonnull + public TokenUsage completionTokens(@Nonnull final Integer completionTokens) { this.completionTokens = completionTokens; return this; } - /** - * Number of tokens used in the input - * @return completionTokens The completionTokens of this {@link TokenUsage} instance. - */ - @Nonnull public Integer getCompletionTokens() { + /** + * Number of tokens used in the input + * + * @return completionTokens The completionTokens of this {@link TokenUsage} instance. + */ + @Nonnull + public Integer getCompletionTokens() { return completionTokens; } /** * Set the completionTokens of this {@link TokenUsage} instance. * - * @param completionTokens Number of tokens used in the input + * @param completionTokens Number of tokens used in the input */ - public void setCompletionTokens( @Nonnull final Integer completionTokens) { + public void setCompletionTokens(@Nonnull final Integer completionTokens) { this.completionTokens = completionTokens; } - /** - * Set the promptTokens of this {@link TokenUsage} instance and return the same instance. - * - * @param promptTokens Number of tokens used in the output - * @return The same instance of this {@link TokenUsage} class - */ - @Nonnull public TokenUsage promptTokens(@Nonnull final Integer promptTokens) { + /** + * Set the promptTokens of this {@link TokenUsage} instance and return the same instance. + * + * @param promptTokens Number of tokens used in the output + * @return The same instance of this {@link TokenUsage} class + */ + @Nonnull + public TokenUsage promptTokens(@Nonnull final Integer promptTokens) { this.promptTokens = promptTokens; return this; } - /** - * Number of tokens used in the output - * @return promptTokens The promptTokens of this {@link TokenUsage} instance. - */ - @Nonnull public Integer getPromptTokens() { + /** + * Number of tokens used in the output + * + * @return promptTokens The promptTokens of this {@link TokenUsage} instance. + */ + @Nonnull + public Integer getPromptTokens() { return promptTokens; } /** * Set the promptTokens of this {@link TokenUsage} instance. * - * @param promptTokens Number of tokens used in the output + * @param promptTokens Number of tokens used in the output */ - public void setPromptTokens( @Nonnull final Integer promptTokens) { + public void setPromptTokens(@Nonnull final Integer promptTokens) { this.promptTokens = promptTokens; } - /** - * Set the totalTokens of this {@link TokenUsage} instance and return the same instance. - * - * @param totalTokens Total number of tokens used - * @return The same instance of this {@link TokenUsage} class - */ - @Nonnull public TokenUsage totalTokens(@Nonnull final Integer totalTokens) { + /** + * Set the totalTokens of this {@link TokenUsage} instance and return the same instance. + * + * @param totalTokens Total number of tokens used + * @return The same instance of this {@link TokenUsage} class + */ + @Nonnull + public TokenUsage totalTokens(@Nonnull final Integer totalTokens) { this.totalTokens = totalTokens; return this; } - /** - * Total number of tokens used - * @return totalTokens The totalTokens of this {@link TokenUsage} instance. - */ - @Nonnull public Integer getTotalTokens() { + /** + * Total number of tokens used + * + * @return totalTokens The totalTokens of this {@link TokenUsage} instance. + */ + @Nonnull + public Integer getTotalTokens() { return totalTokens; } /** * Set the totalTokens of this {@link TokenUsage} instance. * - * @param totalTokens Total number of tokens used + * @param totalTokens Total number of tokens used */ - public void setTotalTokens( @Nonnull final Integer totalTokens) { + public void setTotalTokens(@Nonnull final Integer totalTokens) { this.totalTokens = totalTokens; } /** * Get the names of the unrecognizable properties of the {@link TokenUsage}. + * * @return The set of properties names */ @JsonIgnore @@ -152,31 +149,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link TokenUsage} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("TokenUsage has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("TokenUsage has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link TokenUsage} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link TokenUsage} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -186,10 +183,10 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final TokenUsage tokenUsage = (TokenUsage) o; - return Objects.equals(this.cloudSdkCustomFields, tokenUsage.cloudSdkCustomFields) && - Objects.equals(this.completionTokens, tokenUsage.completionTokens) && - Objects.equals(this.promptTokens, tokenUsage.promptTokens) && - Objects.equals(this.totalTokens, tokenUsage.totalTokens); + return Objects.equals(this.cloudSdkCustomFields, tokenUsage.cloudSdkCustomFields) + && Objects.equals(this.completionTokens, tokenUsage.completionTokens) + && Objects.equals(this.promptTokens, tokenUsage.promptTokens) + && Objects.equals(this.totalTokens, tokenUsage.totalTokens); } @Override @@ -198,20 +195,22 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class TokenUsage {\n"); sb.append(" completionTokens: ").append(toIndentedString(completionTokens)).append("\n"); sb.append(" promptTokens: ").append(toIndentedString(promptTokens)).append("\n"); sb.append(" totalTokens: ").append(toIndentedString(totalTokens)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -220,48 +219,50 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link TokenUsage} instance + * with all required arguments. + */ + public static Builder create() { + return (completionTokens) -> + (promptTokens) -> + (totalTokens) -> + new TokenUsage() + .completionTokens(completionTokens) + .promptTokens(promptTokens) + .totalTokens(totalTokens); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link TokenUsage} instance with all required arguments. - */ - public static Builder create() { - return (completionTokens) -> (promptTokens) -> (totalTokens) -> new TokenUsage().completionTokens(completionTokens).promptTokens(promptTokens).totalTokens(totalTokens); - } - /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the completionTokens of this {@link TokenUsage} instance. - * - * @param completionTokens Number of tokens used in the input - * @return The TokenUsage builder. - */ - Builder1 completionTokens( @Nonnull final Integer completionTokens); - } - /** - * Builder helper class. - */ - public interface Builder1 { - /** - * Set the promptTokens of this {@link TokenUsage} instance. - * - * @param promptTokens Number of tokens used in the output - * @return The TokenUsage builder. - */ - Builder2 promptTokens( @Nonnull final Integer promptTokens); - } + * Set the completionTokens of this {@link TokenUsage} instance. + * + * @param completionTokens Number of tokens used in the input + * @return The TokenUsage builder. + */ + Builder1 completionTokens(@Nonnull final Integer completionTokens); + } + + /** Builder helper class. */ + public interface Builder1 { /** - * Builder helper class. - */ - public interface Builder2 { - /** - * Set the totalTokens of this {@link TokenUsage} instance. - * - * @param totalTokens Total number of tokens used - * @return The TokenUsage instance. - */ - TokenUsage totalTokens( @Nonnull final Integer totalTokens); - } + * Set the promptTokens of this {@link TokenUsage} instance. + * + * @param promptTokens Number of tokens used in the output + * @return The TokenUsage builder. + */ + Builder2 promptTokens(@Nonnull final Integer promptTokens); + } + /** Builder helper class. */ + public interface Builder2 { + /** + * Set the totalTokens of this {@link TokenUsage} instance. + * + * @param totalTokens Total number of tokens used + * @return The TokenUsage instance. + */ + TokenUsage totalTokens(@Nonnull final Integer totalTokens); + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java index 1a80626f..e1472f5f 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfig.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,62 +12,54 @@ package com.sap.ai.sdk.orchestration.client.model; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashMap; +import java.util.List; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.sap.ai.sdk.orchestration.client.model.UnmaskingConfigEntitiesInner; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * UnmaskingConfig - */ +/** UnmaskingConfig */ // CHECKSTYLE:OFF -public class UnmaskingConfig +public class UnmaskingConfig // CHECKSTYLE:ON { @JsonProperty("entities") private List entities = new ArrayList<>(); - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected UnmaskingConfig() { } - - /** - * Set the entities of this {@link UnmaskingConfig} instance and return the same instance. - * - * @param entities List of entities to be unmasked - * @return The same instance of this {@link UnmaskingConfig} class - */ - @Nonnull public UnmaskingConfig entities(@Nonnull final List entities) { + + protected UnmaskingConfig() {} + + /** + * Set the entities of this {@link UnmaskingConfig} instance and return the same instance. + * + * @param entities List of entities to be unmasked + * @return The same instance of this {@link UnmaskingConfig} class + */ + @Nonnull + public UnmaskingConfig entities(@Nonnull final List entities) { this.entities = entities; return this; } + /** * Add one entities instance to this {@link UnmaskingConfig}. + * * @param entitiesItem The entities that should be added * @return The same instance of type {@link UnmaskingConfig} */ - @Nonnull public UnmaskingConfig addEntitiesItem( @Nonnull final UnmaskingConfigEntitiesInner entitiesItem) { + @Nonnull + public UnmaskingConfig addEntitiesItem(@Nonnull final UnmaskingConfigEntitiesInner entitiesItem) { if (this.entities == null) { this.entities = new ArrayList<>(); } @@ -77,25 +67,28 @@ protected UnmaskingConfig() { } return this; } - /** - * List of entities to be unmasked - * @return entities The entities of this {@link UnmaskingConfig} instance. - */ - @Nonnull public List getEntities() { + /** + * List of entities to be unmasked + * + * @return entities The entities of this {@link UnmaskingConfig} instance. + */ + @Nonnull + public List getEntities() { return entities; } /** * Set the entities of this {@link UnmaskingConfig} instance. * - * @param entities List of entities to be unmasked + * @param entities List of entities to be unmasked */ - public void setEntities( @Nonnull final List entities) { + public void setEntities(@Nonnull final List entities) { this.entities = entities; } /** * Get the names of the unrecognizable properties of the {@link UnmaskingConfig}. + * * @return The set of properties names */ @JsonIgnore @@ -106,31 +99,31 @@ public Set getCustomFieldNames() { /** * Get the value of an unrecognizable property of this {@link UnmaskingConfig} instance. - * @param name The name of the property + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("UnmaskingConfig has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException("UnmaskingConfig has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link UnmaskingConfig} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link UnmaskingConfig} instance. If the map previously + * contained a mapping for the key, the old value is replaced by the specified value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -140,8 +133,8 @@ public boolean equals(@Nullable final java.lang.Object o) { return false; } final UnmaskingConfig unmaskingConfig = (UnmaskingConfig) o; - return Objects.equals(this.cloudSdkCustomFields, unmaskingConfig.cloudSdkCustomFields) && - Objects.equals(this.entities, unmaskingConfig.entities); + return Objects.equals(this.cloudSdkCustomFields, unmaskingConfig.cloudSdkCustomFields) + && Objects.equals(this.entities, unmaskingConfig.entities); } @Override @@ -150,18 +143,20 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class UnmaskingConfig {\n"); sb.append(" entities: ").append(toIndentedString(entities)).append("\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -170,33 +165,32 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } + /** + * Create a type-safe, fluent-api builder object to construct a new {@link UnmaskingConfig} + * instance with all required arguments. + */ + public static Builder create() { + return (entities) -> new UnmaskingConfig().entities(entities); + } + + /** Builder helper class. */ + public interface Builder { /** - * Create a type-safe, fluent-api builder object to construct a new {@link UnmaskingConfig} instance with all required arguments. - */ - public static Builder create() { - return (entities) -> new UnmaskingConfig().entities(entities); - } + * Set the entities of this {@link UnmaskingConfig} instance. + * + * @param entities List of entities to be unmasked + * @return The UnmaskingConfig instance. + */ + UnmaskingConfig entities(@Nonnull final List entities); + /** - * Builder helper class. - */ - public interface Builder { - /** - * Set the entities of this {@link UnmaskingConfig} instance. - * - * @param entities List of entities to be unmasked - * @return The UnmaskingConfig instance. - */ - UnmaskingConfig entities( @Nonnull final List entities); - /** - * Set the entities of this {@link UnmaskingConfig} instance. - * - * @param entities List of entities to be unmasked - * @return The UnmaskingConfig instance. - */ - default UnmaskingConfig entities( @Nonnull final UnmaskingConfigEntitiesInner... entities) { - return entities(Arrays.asList(entities)); - } + * Set the entities of this {@link UnmaskingConfig} instance. + * + * @param entities List of entities to be unmasked + * @return The UnmaskingConfig instance. + */ + default UnmaskingConfig entities(@Nonnull final UnmaskingConfigEntitiesInner... entities) { + return entities(Arrays.asList(entities)); } - + } } - diff --git a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java index a4cc2e53..c9f4249a 100644 --- a/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java +++ b/orchestration/src/main/java/com/sap/ai/sdk/orchestration/client/model/UnmaskingConfigEntitiesInner.java @@ -1,11 +1,9 @@ - - /* * Internal Orchestration Service API * SAP AI Core - Orchestration Service API * * The version of the OpenAPI document: 0.0.1 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -14,39 +12,30 @@ package com.sap.ai.sdk.orchestration.client.model; -import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonAnyGetter; +import com.fasterxml.jackson.annotation.JsonAnySetter; +import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.LinkedHashMap; import java.util.Map; import java.util.NoSuchElementException; import java.util.Objects; import java.util.Set; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.sap.ai.sdk.orchestration.client.model.DPIEntities; -import com.sap.ai.sdk.orchestration.client.model.PresidioEntities; -import java.io.Serializable; -import com.fasterxml.jackson.annotation.JsonAnySetter; -import com.fasterxml.jackson.annotation.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - import javax.annotation.Nonnull; import javax.annotation.Nullable; -/** - * UnmaskingConfigEntitiesInner - */ +/** UnmaskingConfigEntitiesInner */ // CHECKSTYLE:OFF -public class UnmaskingConfigEntitiesInner +public class UnmaskingConfigEntitiesInner // CHECKSTYLE:ON { - @JsonAnySetter - @JsonAnyGetter + @JsonAnySetter @JsonAnyGetter private final Map cloudSdkCustomFields = new LinkedHashMap<>(); - protected UnmaskingConfigEntitiesInner() { } + + protected UnmaskingConfigEntitiesInner() {} /** * Get the names of the unrecognizable properties of the {@link UnmaskingConfigEntitiesInner}. + * * @return The set of properties names */ @JsonIgnore @@ -56,32 +45,35 @@ public Set getCustomFieldNames() { } /** - * Get the value of an unrecognizable property of this {@link UnmaskingConfigEntitiesInner} instance. - * @param name The name of the property + * Get the value of an unrecognizable property of this {@link UnmaskingConfigEntitiesInner} + * instance. + * + * @param name The name of the property * @return The value of the property - * @throws NoSuchElementException If no property with the given name could be found. + * @throws NoSuchElementException If no property with the given name could be found. */ @Nullable public Object getCustomField(@Nonnull final String name) throws NoSuchElementException { - if( !cloudSdkCustomFields.containsKey(name) ) { - throw new NoSuchElementException("UnmaskingConfigEntitiesInner has no field with name '" + name + "'."); + if (!cloudSdkCustomFields.containsKey(name)) { + throw new NoSuchElementException( + "UnmaskingConfigEntitiesInner has no field with name '" + name + "'."); } return cloudSdkCustomFields.get(name); } /** - * Set an unrecognizable property of this {@link UnmaskingConfigEntitiesInner} instance. If the map previously contained a mapping - * for the key, the old value is replaced by the specified value. + * Set an unrecognizable property of this {@link UnmaskingConfigEntitiesInner} instance. If the + * map previously contained a mapping for the key, the old value is replaced by the specified + * value. + * * @param customFieldName The name of the property * @param customFieldValue The value of the property */ @JsonIgnore - public void setCustomField( @Nonnull String customFieldName, @Nullable Object customFieldValue ) - { - cloudSdkCustomFields.put(customFieldName, customFieldValue); + public void setCustomField(@Nonnull String customFieldName, @Nullable Object customFieldValue) { + cloudSdkCustomFields.put(customFieldName, customFieldValue); } - @Override public boolean equals(@Nullable final java.lang.Object o) { if (this == o) { @@ -90,8 +82,10 @@ public boolean equals(@Nullable final java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - final UnmaskingConfigEntitiesInner unmaskingConfigEntitiesInner = (UnmaskingConfigEntitiesInner) o; - return Objects.equals(this.cloudSdkCustomFields, unmaskingConfigEntitiesInner.cloudSdkCustomFields); + final UnmaskingConfigEntitiesInner unmaskingConfigEntitiesInner = + (UnmaskingConfigEntitiesInner) o; + return Objects.equals( + this.cloudSdkCustomFields, unmaskingConfigEntitiesInner.cloudSdkCustomFields); } @Override @@ -100,17 +94,19 @@ public int hashCode() { } @Override - @Nonnull public String toString() { + @Nonnull + public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("class UnmaskingConfigEntitiesInner {\n"); - cloudSdkCustomFields.forEach((k,v) -> sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); + cloudSdkCustomFields.forEach( + (k, v) -> + sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n")); sb.append("}"); return sb.toString(); } /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). + * Convert the given object to string with each line indented by 4 spaces (except the first line). */ private String toIndentedString(final java.lang.Object o) { if (o == null) { @@ -119,12 +115,8 @@ private String toIndentedString(final java.lang.Object o) { return o.toString().replace("\n", "\n "); } - /** - * Create a new {@link UnmaskingConfigEntitiesInner} instance. No arguments are required. - */ - public static UnmaskingConfigEntitiesInner create() { - return new UnmaskingConfigEntitiesInner(); - } - + /** Create a new {@link UnmaskingConfigEntitiesInner} instance. No arguments are required. */ + public static UnmaskingConfigEntitiesInner create() { + return new UnmaskingConfigEntitiesInner(); + } } -