Skip to content

Commit 9ac2913

Browse files
committed
Generate client and successful compilation
1 parent bcc4a49 commit 9ac2913

19 files changed

+2605
-195
lines changed

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

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.sap.ai.sdk.grounding.model.GetPipelineExecutions;
99
import com.sap.ai.sdk.grounding.model.GetPipelineStatus;
1010
import com.sap.ai.sdk.grounding.model.GetPipelines;
11+
import com.sap.ai.sdk.grounding.model.ManualPipelineTrigger;
1112
import com.sap.ai.sdk.grounding.model.PipelineDocumentResponse;
1213
import com.sap.ai.sdk.grounding.model.PipelineId;
1314
import com.sap.cloud.sdk.cloudplatform.connectivity.Destination;
@@ -1002,4 +1003,72 @@ public GetPipelineStatus getPipelineStatus(
10021003
localVarAuthNames,
10031004
localVarReturnType);
10041005
}
1006+
1007+
/**
1008+
* Pipeline Trigger
1009+
*
1010+
* <p>Manually trigger a pipeline
1011+
*
1012+
* <p><b>202</b> - Accepted
1013+
*
1014+
* <p><b>400</b> - The specification of the resource was incorrect
1015+
*
1016+
* @param aiResourceGroup Resource Group ID
1017+
* @param manualPipelineTrigger The value for the parameter manualPipelineTrigger
1018+
* @return An OpenApiResponse containing the status code of the HttpResponse.
1019+
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
1020+
*/
1021+
@Nonnull
1022+
public OpenApiResponse manualTriggerPipeline(
1023+
@Nonnull final String aiResourceGroup,
1024+
@Nonnull final ManualPipelineTrigger manualPipelineTrigger)
1025+
throws OpenApiRequestException {
1026+
final Object localVarPostBody = manualPipelineTrigger;
1027+
1028+
// verify the required parameter 'aiResourceGroup' is set
1029+
if (aiResourceGroup == null) {
1030+
throw new OpenApiRequestException(
1031+
"Missing the required parameter 'aiResourceGroup' when calling manualTriggerPipeline");
1032+
}
1033+
1034+
// verify the required parameter 'manualPipelineTrigger' is set
1035+
if (manualPipelineTrigger == null) {
1036+
throw new OpenApiRequestException(
1037+
"Missing the required parameter 'manualPipelineTrigger' when calling pipelineV1PipelineEndpointsTriggerPipeline");
1038+
}
1039+
1040+
final String localVarPath =
1041+
UriComponentsBuilder.fromPath("/pipelines/trigger").build().toUriString();
1042+
1043+
final MultiValueMap<String, String> localVarQueryParams =
1044+
new LinkedMultiValueMap<String, String>();
1045+
final HttpHeaders localVarHeaderParams = new HttpHeaders();
1046+
final MultiValueMap<String, Object> localVarFormParams =
1047+
new LinkedMultiValueMap<String, Object>();
1048+
1049+
if (aiResourceGroup != null)
1050+
localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
1051+
1052+
final String[] localVarAccepts = {"application/json"};
1053+
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
1054+
final String[] localVarContentTypes = {"application/json"};
1055+
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1056+
1057+
final String[] localVarAuthNames = new String[] {};
1058+
1059+
final ParameterizedTypeReference<Void> localVarReturnType =
1060+
new ParameterizedTypeReference<Void>() {};
1061+
apiClient.invokeAPI(
1062+
localVarPath,
1063+
HttpMethod.POST,
1064+
localVarQueryParams,
1065+
localVarPostBody,
1066+
localVarHeaderParams,
1067+
localVarFormParams,
1068+
localVarAccept,
1069+
localVarContentType,
1070+
localVarAuthNames,
1071+
localVarReturnType);
1072+
return new OpenApiResponse(apiClient);
1073+
}
10051074
}

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@
1919
@JsonSubTypes({
2020
@JsonSubTypes.Type(value = MSSharePointPipelineCreateRequest.class, name = "MSSharePoint"),
2121
@JsonSubTypes.Type(value = S3PipelineCreateRequest.class, name = "S3"),
22+
@JsonSubTypes.Type(value = SDMPipelineCreateRequest.class, name = "SDM"),
2223
@JsonSubTypes.Type(value = SFTPPipelineCreateRequest.class, name = "SFTP"),
24+
@JsonSubTypes.Type(value = WorkZonePipelineCreateRequest.class, name = "WorkZone"),
2325
@JsonSubTypes.Type(
2426
value = MSSharePointPipelineCreateRequest.class,
2527
name = "MSSharePointPipelineCreateRequest"),
2628
@JsonSubTypes.Type(value = S3PipelineCreateRequest.class, name = "S3PipelineCreateRequest"),
29+
@JsonSubTypes.Type(value = SDMPipelineCreateRequest.class, name = "SDMPipelineCreateRequest"),
2730
@JsonSubTypes.Type(value = SFTPPipelineCreateRequest.class, name = "SFTPPipelineCreateRequest"),
31+
@JsonSubTypes.Type(
32+
value = WorkZonePipelineCreateRequest.class,
33+
name = "WorkZonePipelineCreateRequest"),
2834
})
2935
public interface CreatePipeline {
3036
Object getType();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public enum DocumentStatus {
2929

3030
FAILED_TO_BE_RETRIED("FAILED_TO_BE_RETRIED"),
3131

32+
TO_BE_SCHEDULED("TO_BE_SCHEDULED"),
33+
3234
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");
3335

3436
private final String value;

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"));

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,18 @@
1919
@JsonSubTypes({
2020
@JsonSubTypes.Type(value = MSSharePointPipelineGetResponse.class, name = "MSSharePoint"),
2121
@JsonSubTypes.Type(value = S3PipelineGetResponse.class, name = "S3"),
22+
@JsonSubTypes.Type(value = SDMPipelineGetResponse.class, name = "SDM"),
2223
@JsonSubTypes.Type(value = SFTPPipelineGetResponse.class, name = "SFTP"),
24+
@JsonSubTypes.Type(value = WorkZonePipelineGetResponse.class, name = "WorkZone"),
2325
@JsonSubTypes.Type(
2426
value = MSSharePointPipelineGetResponse.class,
2527
name = "MSSharePointPipelineGetResponse"),
2628
@JsonSubTypes.Type(value = S3PipelineGetResponse.class, name = "S3PipelineGetResponse"),
29+
@JsonSubTypes.Type(value = SDMPipelineGetResponse.class, name = "SDMPipelineGetResponse"),
2730
@JsonSubTypes.Type(value = SFTPPipelineGetResponse.class, name = "SFTPPipelineGetResponse"),
31+
@JsonSubTypes.Type(
32+
value = WorkZonePipelineGetResponse.class,
33+
name = "WorkZonePipelineGetResponse"),
2834
})
2935
public interface GetPipeline {
3036
Object getType();

0 commit comments

Comments
 (0)