Skip to content

Commit 41b4717

Browse files
feat: [DevOps] Update prompt-registry specification (#574)
* Update prompt-registry based on sdk * added resource group scope * Update prompt-registry based on sdk * Update prompt-registry based on sdk * Use combined spec + false for scope * fix spec path * Update prompt-registry based on main --------- Co-authored-by: I538344 <charles.dubois@sap.com>
1 parent 2e7c5e8 commit 41b4717

File tree

76 files changed

+15055
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+15055
-280
lines changed

.github/workflows/spec-update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
FILE_PATH='orchestration/src/main/resources/spec/orchestration.yaml'
8888
;;
8989
prompt-registry)
90-
API_URL="$API_BASE_URL/AI/prompt-registry/contents/src/spec/prompt-registry.yaml?ref=$REF"
90+
API_URL="$API_BASE_URL/AI/prompt-registry/contents/src/spec/generated/prompt-registry-combined.yaml?ref=$REF"
9191
FILE_PATH='core-services/prompt-registry/src/main/resources/spec/prompt-registry.yaml'
9292
;;
9393
esac

core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/client/OrchestrationConfigsApi.java

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ public OrchestrationConfigsApi(@Nonnull final ApiClient apiClient) {
5757
*
5858
* <p><b>200</b> - Successful response
5959
*
60-
* <p><b>403</b> - Forbidden Error
61-
*
6260
* <p><b>400</b> - Bad Request
6361
*
62+
* <p><b>403</b> - Forbidden Error
63+
*
6464
* <p><b>0</b> - Common Error
6565
*
6666
* @param orchestrationConfigPostRequest (required) The value for the parameter
@@ -83,7 +83,7 @@ public OrchestrationConfigPostResponse createUpdateOrchestrationConfig(
8383
}
8484

8585
final String localVarPath =
86-
UriComponentsBuilder.fromPath("/lm/orchestrationConfigs").build().toUriString();
86+
UriComponentsBuilder.fromPath("/registry/v2/orchestrationConfigs").build().toUriString();
8787

8888
final MultiValueMap<String, String> localVarQueryParams =
8989
new LinkedMultiValueMap<String, String>();
@@ -121,10 +121,10 @@ public OrchestrationConfigPostResponse createUpdateOrchestrationConfig(
121121
*
122122
* <p><b>200</b> - Successful response
123123
*
124-
* <p><b>403</b> - Forbidden Error
125-
*
126124
* <p><b>400</b> - Bad Request
127125
*
126+
* <p><b>403</b> - Forbidden Error
127+
*
128128
* <p><b>0</b> - Common Error
129129
*
130130
* @param orchestrationConfigPostRequest The value for the parameter
@@ -144,10 +144,10 @@ public OrchestrationConfigPostResponse createUpdateOrchestrationConfig(
144144
*
145145
* <p><b>200</b> - Successful response
146146
*
147-
* <p><b>404</b> - Bad Request
148-
*
149147
* <p><b>403</b> - Forbidden Error
150148
*
149+
* <p><b>404</b> - Bad Request
150+
*
151151
* <p><b>0</b> - Common Error
152152
*
153153
* @param orchestrationConfigId (required) The value for the parameter orchestrationConfigId
@@ -171,7 +171,7 @@ public OrchestrationConfigDeleteResponse deleteOrchestrationConfig(
171171
final Map<String, Object> localVarPathParams = new HashMap<String, Object>();
172172
localVarPathParams.put("orchestrationConfigId", orchestrationConfigId);
173173
final String localVarPath =
174-
UriComponentsBuilder.fromPath("/lm/orchestrationConfigs/{orchestrationConfigId}")
174+
UriComponentsBuilder.fromPath("/registry/v2/orchestrationConfigs/{orchestrationConfigId}")
175175
.buildAndExpand(localVarPathParams)
176176
.toUriString();
177177

@@ -211,10 +211,10 @@ public OrchestrationConfigDeleteResponse deleteOrchestrationConfig(
211211
*
212212
* <p><b>200</b> - Successful response
213213
*
214-
* <p><b>404</b> - Bad Request
215-
*
216214
* <p><b>403</b> - Forbidden Error
217215
*
216+
* <p><b>404</b> - Bad Request
217+
*
218218
* <p><b>0</b> - Common Error
219219
*
220220
* @param orchestrationConfigId The value for the parameter orchestrationConfigId
@@ -257,7 +257,8 @@ public File exportOrchestrationConfig(
257257
final Map<String, Object> localVarPathParams = new HashMap<String, Object>();
258258
localVarPathParams.put("orchestrationConfigId", orchestrationConfigId);
259259
final String localVarPath =
260-
UriComponentsBuilder.fromPath("/lm/orchestrationConfigs/{orchestrationConfigId}/export")
260+
UriComponentsBuilder.fromPath(
261+
"/registry/v2/orchestrationConfigs/{orchestrationConfigId}/export")
261262
.buildAndExpand(localVarPathParams)
262263
.toUriString();
263264

@@ -347,7 +348,7 @@ public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(
347348
final Map<String, Object> localVarPathParams = new HashMap<String, Object>();
348349
localVarPathParams.put("orchestrationConfigId", orchestrationConfigId);
349350
final String localVarPath =
350-
UriComponentsBuilder.fromPath("/lm/orchestrationConfigs/{orchestrationConfigId}")
351+
UriComponentsBuilder.fromPath("/registry/v2/orchestrationConfigs/{orchestrationConfigId}")
351352
.buildAndExpand(localVarPathParams)
352353
.toUriString();
353354

@@ -427,7 +428,9 @@ public OrchestrationConfigPostResponse importOrchestrationConfig(
427428
final Object localVarPostBody = null;
428429

429430
final String localVarPath =
430-
UriComponentsBuilder.fromPath("/lm/orchestrationConfigs/import").build().toUriString();
431+
UriComponentsBuilder.fromPath("/registry/v2/orchestrationConfigs/import")
432+
.build()
433+
.toUriString();
431434

432435
final MultiValueMap<String, String> localVarQueryParams =
433436
new LinkedMultiValueMap<String, String>();
@@ -546,7 +549,7 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
546549
localVarPathParams.put("model_name", modelName);
547550
final String localVarPath =
548551
UriComponentsBuilder.fromPath(
549-
"/lm/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/models/{model_name}/history")
552+
"/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/models/{model_name}/history")
550553
.buildAndExpand(localVarPathParams)
551554
.toUriString();
552555

@@ -651,7 +654,7 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
651654
final Object localVarPostBody = null;
652655

653656
final String localVarPath =
654-
UriComponentsBuilder.fromPath("/lm/orchestrationConfigs").build().toUriString();
657+
UriComponentsBuilder.fromPath("/registry/v2/orchestrationConfigs").build().toUriString();
655658

656659
final MultiValueMap<String, String> localVarQueryParams =
657660
new LinkedMultiValueMap<String, String>();

0 commit comments

Comments
 (0)