Skip to content

Commit f129243

Browse files
committed
Update document-grounding based on main
1 parent a1f0a60 commit f129243

13 files changed

+1459
-149
lines changed

core-services/document-grounding/src/main/java/com/sap/ai/sdk/grounding/client/PipelinesApi.java

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,26 +1014,27 @@ public GetPipelineStatus getPipelineStatus(
10141014
* <p><b>400</b> - The specification of the resource was incorrect
10151015
*
10161016
* @param aiResourceGroup Resource Group ID
1017-
* @param body The value for the parameter body
1017+
* @param manualPipelineTrigger The value for the parameter manualPipelineTrigger
10181018
* @return An OpenApiResponse containing the status code of the HttpResponse.
10191019
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
10201020
*/
10211021
@Nonnull
10221022
public OpenApiResponse manualTriggerPipeline(
1023-
@Nonnull final String aiResourceGroup, @Nonnull final ManualPipelineTrigger body)
1023+
@Nonnull final String aiResourceGroup,
1024+
@Nonnull final ManualPipelineTrigger manualPipelineTrigger)
10241025
throws OpenApiRequestException {
1025-
final Object localVarPostBody = body;
1026+
final Object localVarPostBody = manualPipelineTrigger;
10261027

10271028
// verify the required parameter 'aiResourceGroup' is set
10281029
if (aiResourceGroup == null) {
10291030
throw new OpenApiRequestException(
10301031
"Missing the required parameter 'aiResourceGroup' when calling manualTriggerPipeline");
10311032
}
10321033

1033-
// verify the required parameter 'body' is set
1034-
if (body == null) {
1034+
// verify the required parameter 'manualPipelineTrigger' is set
1035+
if (manualPipelineTrigger == null) {
10351036
throw new OpenApiRequestException(
1036-
"Missing the required parameter 'body' when calling pipelineV1PipelineEndpointsTriggerPipeline");
1037+
"Missing the required parameter 'manualPipelineTrigger' when calling pipelineV1PipelineEndpointsTriggerPipeline");
10371038
}
10381039

10391040
final String localVarPath =

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

Lines changed: 215 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ public class DocumentsStatusResponseResourcesInner
3434
@JsonProperty("status")
3535
private DocumentStatus status;
3636

37+
@JsonProperty("absoluteUrl")
38+
private String absoluteUrl;
39+
40+
@JsonProperty("title")
41+
private String title;
42+
43+
@JsonProperty("metadataId")
44+
private String metadataId;
45+
46+
@JsonProperty("createdTimestamp")
47+
private String createdTimestamp;
48+
49+
@JsonProperty("lastUpdatedTimestamp")
50+
private String lastUpdatedTimestamp;
51+
3752
@JsonAnySetter @JsonAnyGetter
3853
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
3954

@@ -104,6 +119,176 @@ public void setStatus(@Nullable final DocumentStatus status) {
104119
this.status = status;
105120
}
106121

122+
/**
123+
* Set the absoluteUrl of this {@link DocumentsStatusResponseResourcesInner} instance and return
124+
* the same instance.
125+
*
126+
* @param absoluteUrl The absoluteUrl of this {@link DocumentsStatusResponseResourcesInner}
127+
* @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
128+
*/
129+
@Nonnull
130+
public DocumentsStatusResponseResourcesInner absoluteUrl(@Nullable final String absoluteUrl) {
131+
this.absoluteUrl = absoluteUrl;
132+
return this;
133+
}
134+
135+
/**
136+
* Get absoluteUrl
137+
*
138+
* @return absoluteUrl The absoluteUrl of this {@link DocumentsStatusResponseResourcesInner}
139+
* instance.
140+
*/
141+
@Nullable
142+
public String getAbsoluteUrl() {
143+
return absoluteUrl;
144+
}
145+
146+
/**
147+
* Set the absoluteUrl of this {@link DocumentsStatusResponseResourcesInner} instance.
148+
*
149+
* @param absoluteUrl The absoluteUrl of this {@link DocumentsStatusResponseResourcesInner}
150+
*/
151+
public void setAbsoluteUrl(@Nullable final String absoluteUrl) {
152+
this.absoluteUrl = absoluteUrl;
153+
}
154+
155+
/**
156+
* Set the title of this {@link DocumentsStatusResponseResourcesInner} instance and return the
157+
* same instance.
158+
*
159+
* @param title The title of this {@link DocumentsStatusResponseResourcesInner}
160+
* @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
161+
*/
162+
@Nonnull
163+
public DocumentsStatusResponseResourcesInner title(@Nullable final String title) {
164+
this.title = title;
165+
return this;
166+
}
167+
168+
/**
169+
* Get title
170+
*
171+
* @return title The title of this {@link DocumentsStatusResponseResourcesInner} instance.
172+
*/
173+
@Nullable
174+
public String getTitle() {
175+
return title;
176+
}
177+
178+
/**
179+
* Set the title of this {@link DocumentsStatusResponseResourcesInner} instance.
180+
*
181+
* @param title The title of this {@link DocumentsStatusResponseResourcesInner}
182+
*/
183+
public void setTitle(@Nullable final String title) {
184+
this.title = title;
185+
}
186+
187+
/**
188+
* Set the metadataId of this {@link DocumentsStatusResponseResourcesInner} instance and return
189+
* the same instance.
190+
*
191+
* @param metadataId The metadataId of this {@link DocumentsStatusResponseResourcesInner}
192+
* @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
193+
*/
194+
@Nonnull
195+
public DocumentsStatusResponseResourcesInner metadataId(@Nullable final String metadataId) {
196+
this.metadataId = metadataId;
197+
return this;
198+
}
199+
200+
/**
201+
* Get metadataId
202+
*
203+
* @return metadataId The metadataId of this {@link DocumentsStatusResponseResourcesInner}
204+
* instance.
205+
*/
206+
@Nullable
207+
public String getMetadataId() {
208+
return metadataId;
209+
}
210+
211+
/**
212+
* Set the metadataId of this {@link DocumentsStatusResponseResourcesInner} instance.
213+
*
214+
* @param metadataId The metadataId of this {@link DocumentsStatusResponseResourcesInner}
215+
*/
216+
public void setMetadataId(@Nullable final String metadataId) {
217+
this.metadataId = metadataId;
218+
}
219+
220+
/**
221+
* Set the createdTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance and
222+
* return the same instance.
223+
*
224+
* @param createdTimestamp The createdTimestamp of this {@link
225+
* DocumentsStatusResponseResourcesInner}
226+
* @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
227+
*/
228+
@Nonnull
229+
public DocumentsStatusResponseResourcesInner createdTimestamp(
230+
@Nullable final String createdTimestamp) {
231+
this.createdTimestamp = createdTimestamp;
232+
return this;
233+
}
234+
235+
/**
236+
* Get createdTimestamp
237+
*
238+
* @return createdTimestamp The createdTimestamp of this {@link
239+
* DocumentsStatusResponseResourcesInner} instance.
240+
*/
241+
@Nonnull
242+
public String getCreatedTimestamp() {
243+
return createdTimestamp;
244+
}
245+
246+
/**
247+
* Set the createdTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance.
248+
*
249+
* @param createdTimestamp The createdTimestamp of this {@link
250+
* DocumentsStatusResponseResourcesInner}
251+
*/
252+
public void setCreatedTimestamp(@Nullable final String createdTimestamp) {
253+
this.createdTimestamp = createdTimestamp;
254+
}
255+
256+
/**
257+
* Set the lastUpdatedTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance and
258+
* return the same instance.
259+
*
260+
* @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link
261+
* DocumentsStatusResponseResourcesInner}
262+
* @return The same instance of this {@link DocumentsStatusResponseResourcesInner} class
263+
*/
264+
@Nonnull
265+
public DocumentsStatusResponseResourcesInner lastUpdatedTimestamp(
266+
@Nullable final String lastUpdatedTimestamp) {
267+
this.lastUpdatedTimestamp = lastUpdatedTimestamp;
268+
return this;
269+
}
270+
271+
/**
272+
* Get lastUpdatedTimestamp
273+
*
274+
* @return lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link
275+
* DocumentsStatusResponseResourcesInner} instance.
276+
*/
277+
@Nonnull
278+
public String getLastUpdatedTimestamp() {
279+
return lastUpdatedTimestamp;
280+
}
281+
282+
/**
283+
* Set the lastUpdatedTimestamp of this {@link DocumentsStatusResponseResourcesInner} instance.
284+
*
285+
* @param lastUpdatedTimestamp The lastUpdatedTimestamp of this {@link
286+
* DocumentsStatusResponseResourcesInner}
287+
*/
288+
public void setLastUpdatedTimestamp(@Nullable final String lastUpdatedTimestamp) {
289+
this.lastUpdatedTimestamp = lastUpdatedTimestamp;
290+
}
291+
107292
/**
108293
* Get the names of the unrecognizable properties of the {@link
109294
* DocumentsStatusResponseResourcesInner}.
@@ -147,6 +332,12 @@ public Map<String, Object> toMap() {
147332
final Map<String, Object> declaredFields = new LinkedHashMap<>(cloudSdkCustomFields);
148333
if (id != null) declaredFields.put("id", id);
149334
if (status != null) declaredFields.put("status", status);
335+
if (absoluteUrl != null) declaredFields.put("absoluteUrl", absoluteUrl);
336+
if (title != null) declaredFields.put("title", title);
337+
if (metadataId != null) declaredFields.put("metadataId", metadataId);
338+
if (createdTimestamp != null) declaredFields.put("createdTimestamp", createdTimestamp);
339+
if (lastUpdatedTimestamp != null)
340+
declaredFields.put("lastUpdatedTimestamp", lastUpdatedTimestamp);
150341
return declaredFields;
151342
}
152343

@@ -176,12 +367,27 @@ public boolean equals(@Nullable final java.lang.Object o) {
176367
return Objects.equals(
177368
this.cloudSdkCustomFields, documentsStatusResponseResourcesInner.cloudSdkCustomFields)
178369
&& Objects.equals(this.id, documentsStatusResponseResourcesInner.id)
179-
&& Objects.equals(this.status, documentsStatusResponseResourcesInner.status);
370+
&& Objects.equals(this.status, documentsStatusResponseResourcesInner.status)
371+
&& Objects.equals(this.absoluteUrl, documentsStatusResponseResourcesInner.absoluteUrl)
372+
&& Objects.equals(this.title, documentsStatusResponseResourcesInner.title)
373+
&& Objects.equals(this.metadataId, documentsStatusResponseResourcesInner.metadataId)
374+
&& Objects.equals(
375+
this.createdTimestamp, documentsStatusResponseResourcesInner.createdTimestamp)
376+
&& Objects.equals(
377+
this.lastUpdatedTimestamp, documentsStatusResponseResourcesInner.lastUpdatedTimestamp);
180378
}
181379

182380
@Override
183381
public int hashCode() {
184-
return Objects.hash(id, status, cloudSdkCustomFields);
382+
return Objects.hash(
383+
id,
384+
status,
385+
absoluteUrl,
386+
title,
387+
metadataId,
388+
createdTimestamp,
389+
lastUpdatedTimestamp,
390+
cloudSdkCustomFields);
185391
}
186392

187393
@Override
@@ -191,6 +397,13 @@ public String toString() {
191397
sb.append("class DocumentsStatusResponseResourcesInner {\n");
192398
sb.append(" id: ").append(toIndentedString(id)).append("\n");
193399
sb.append(" status: ").append(toIndentedString(status)).append("\n");
400+
sb.append(" absoluteUrl: ").append(toIndentedString(absoluteUrl)).append("\n");
401+
sb.append(" title: ").append(toIndentedString(title)).append("\n");
402+
sb.append(" metadataId: ").append(toIndentedString(metadataId)).append("\n");
403+
sb.append(" createdTimestamp: ").append(toIndentedString(createdTimestamp)).append("\n");
404+
sb.append(" lastUpdatedTimestamp: ")
405+
.append(toIndentedString(lastUpdatedTimestamp))
406+
.append("\n");
194407
cloudSdkCustomFields.forEach(
195408
(k, v) ->
196409
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));

0 commit comments

Comments
 (0)