Skip to content

Commit f1d4401

Browse files
authored
Update document-grounding based on main (#661)
1 parent fc50730 commit f1d4401

File tree

3 files changed

+8
-47
lines changed

3 files changed

+8
-47
lines changed

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/S3PipelineMinimalResponse.java

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public void setType(@Nonnull final TypeEnum type) {
207207
*/
208208
@Nonnull
209209
public S3PipelineMinimalResponse _configuration(
210-
@Nonnull final S3ConfigurationMinimal _configuration) {
210+
@Nullable final S3ConfigurationMinimal _configuration) {
211211
this._configuration = _configuration;
212212
return this;
213213
}
@@ -227,7 +227,7 @@ public S3ConfigurationMinimal getConfiguration() {
227227
*
228228
* @param _configuration The _configuration of this {@link S3PipelineMinimalResponse}
229229
*/
230-
public void setConfiguration(@Nonnull final S3ConfigurationMinimal _configuration) {
230+
public void setConfiguration(@Nullable final S3ConfigurationMinimal _configuration) {
231231
this._configuration = _configuration;
232232
}
233233

@@ -377,14 +377,7 @@ private String toIndentedString(final java.lang.Object o) {
377377
*/
378378
public static Builder create() {
379379
return (id) ->
380-
(status) ->
381-
(type) ->
382-
(_configuration) ->
383-
new S3PipelineMinimalResponse()
384-
.id(id)
385-
.status(status)
386-
.type(type)
387-
._configuration(_configuration);
380+
(status) -> (type) -> new S3PipelineMinimalResponse().id(id).status(status).type(type);
388381
}
389382

390383
/** Builder helper class. */
@@ -415,19 +408,8 @@ public interface Builder2 {
415408
* Set the type of this {@link S3PipelineMinimalResponse} instance.
416409
*
417410
* @param type The type of this {@link S3PipelineMinimalResponse}
418-
* @return The S3PipelineMinimalResponse builder.
419-
*/
420-
Builder3 type(@Nonnull final TypeEnum type);
421-
}
422-
423-
/** Builder helper class. */
424-
public interface Builder3 {
425-
/**
426-
* Set the _configuration of this {@link S3PipelineMinimalResponse} instance.
427-
*
428-
* @param _configuration The _configuration of this {@link S3PipelineMinimalResponse}
429411
* @return The S3PipelineMinimalResponse instance.
430412
*/
431-
S3PipelineMinimalResponse _configuration(@Nonnull final S3ConfigurationMinimal _configuration);
413+
S3PipelineMinimalResponse type(@Nonnull final TypeEnum type);
432414
}
433415
}

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/model/SFTPPipelineMinimalResponse.java

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public void setType(@Nonnull final TypeEnum type) {
208208
*/
209209
@Nonnull
210210
public SFTPPipelineMinimalResponse _configuration(
211-
@Nonnull final SFTPConfigurationMinimal _configuration) {
211+
@Nullable final SFTPConfigurationMinimal _configuration) {
212212
this._configuration = _configuration;
213213
return this;
214214
}
@@ -228,7 +228,7 @@ public SFTPConfigurationMinimal getConfiguration() {
228228
*
229229
* @param _configuration The _configuration of this {@link SFTPPipelineMinimalResponse}
230230
*/
231-
public void setConfiguration(@Nonnull final SFTPConfigurationMinimal _configuration) {
231+
public void setConfiguration(@Nullable final SFTPConfigurationMinimal _configuration) {
232232
this._configuration = _configuration;
233233
}
234234

@@ -380,14 +380,7 @@ private String toIndentedString(final java.lang.Object o) {
380380
*/
381381
public static Builder create() {
382382
return (id) ->
383-
(status) ->
384-
(type) ->
385-
(_configuration) ->
386-
new SFTPPipelineMinimalResponse()
387-
.id(id)
388-
.status(status)
389-
.type(type)
390-
._configuration(_configuration);
383+
(status) -> (type) -> new SFTPPipelineMinimalResponse().id(id).status(status).type(type);
391384
}
392385

393386
/** Builder helper class. */
@@ -418,20 +411,8 @@ public interface Builder2 {
418411
* Set the type of this {@link SFTPPipelineMinimalResponse} instance.
419412
*
420413
* @param type The type of this {@link SFTPPipelineMinimalResponse}
421-
* @return The SFTPPipelineMinimalResponse builder.
422-
*/
423-
Builder3 type(@Nonnull final TypeEnum type);
424-
}
425-
426-
/** Builder helper class. */
427-
public interface Builder3 {
428-
/**
429-
* Set the _configuration of this {@link SFTPPipelineMinimalResponse} instance.
430-
*
431-
* @param _configuration The _configuration of this {@link SFTPPipelineMinimalResponse}
432414
* @return The SFTPPipelineMinimalResponse instance.
433415
*/
434-
SFTPPipelineMinimalResponse _configuration(
435-
@Nonnull final SFTPConfigurationMinimal _configuration);
416+
SFTPPipelineMinimalResponse type(@Nonnull final TypeEnum type);
436417
}
437418
}

core-services/document-grounding/src/main/resources/spec/grounding.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,7 +1652,6 @@ components:
16521652
- type: object
16531653
required:
16541654
- type
1655-
- configuration
16561655
properties:
16571656
type:
16581657
type: string
@@ -1670,7 +1669,6 @@ components:
16701669
- type: object
16711670
required:
16721671
- type
1673-
- configuration
16741672
properties:
16751673
type:
16761674
type: string

0 commit comments

Comments
 (0)