Skip to content

Commit 232c921

Browse files
committed
Update prompt-registry based on main
1 parent e08a9fc commit 232c921

File tree

4 files changed

+14
-134
lines changed

4 files changed

+14
-134
lines changed

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

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ public OrchestrationConfigPostResponse importOrchestrationConfig()
497497
* @param scenario (required) The value for the parameter scenario
498498
* @param version (required) The value for the parameter version
499499
* @param name (required) The value for the parameter name
500-
* @param modelName (required) The value for the parameter modelName
501500
* @param aiResourceGroup (optional) Specify a resource group id to use
502501
* @param includeSpec (optional, default to false) The value for the parameter includeSpec
503502
* @param resolveTemplateRef (optional, default to false) The value for the parameter
@@ -510,7 +509,6 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
510509
@Nonnull final String scenario,
511510
@Nonnull final String version,
512511
@Nonnull final String name,
513-
@Nonnull final String modelName,
514512
@Nullable final String aiResourceGroup,
515513
@Nullable final Boolean includeSpec,
516514
@Nullable final Boolean resolveTemplateRef)
@@ -535,21 +533,14 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
535533
"Missing the required parameter 'name' when calling listOrchestrationConfigHistory");
536534
}
537535

538-
// verify the required parameter 'modelName' is set
539-
if (modelName == null) {
540-
throw new OpenApiRequestException(
541-
"Missing the required parameter 'modelName' when calling listOrchestrationConfigHistory");
542-
}
543-
544536
// create path and map variables
545537
final Map<String, Object> localVarPathParams = new HashMap<String, Object>();
546538
localVarPathParams.put("scenario", scenario);
547539
localVarPathParams.put("version", version);
548540
localVarPathParams.put("name", name);
549-
localVarPathParams.put("model_name", modelName);
550541
final String localVarPath =
551542
UriComponentsBuilder.fromPath(
552-
"/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/models/{model_name}/history")
543+
"/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/history")
553544
.buildAndExpand(localVarPathParams)
554545
.toUriString();
555546

@@ -603,18 +594,14 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
603594
* @param scenario The value for the parameter scenario
604595
* @param version The value for the parameter version
605596
* @param name The value for the parameter name
606-
* @param modelName The value for the parameter modelName
607597
* @return OrchestrationConfigListResponse
608598
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
609599
*/
610600
@Nonnull
611601
public OrchestrationConfigListResponse listOrchestrationConfigHistory(
612-
@Nonnull final String scenario,
613-
@Nonnull final String version,
614-
@Nonnull final String name,
615-
@Nonnull final String modelName)
602+
@Nonnull final String scenario, @Nonnull final String version, @Nonnull final String name)
616603
throws OpenApiRequestException {
617-
return listOrchestrationConfigHistory(scenario, version, name, modelName, null, null, null);
604+
return listOrchestrationConfigHistory(scenario, version, name, null, null, null);
618605
}
619606

620607
/**
@@ -632,7 +619,6 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
632619
* @param scenario (optional) The value for the parameter scenario
633620
* @param name (optional) The value for the parameter name
634621
* @param version (optional) The value for the parameter version
635-
* @param modelName (optional) The value for the parameter modelName
636622
* @param retrieve (optional, default to both) The value for the parameter retrieve
637623
* @param includeSpec (optional, default to false) The value for the parameter includeSpec
638624
* @param resolveTemplateRef (optional, default to false) The value for the parameter
@@ -646,7 +632,6 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
646632
@Nullable final String scenario,
647633
@Nullable final String name,
648634
@Nullable final String version,
649-
@Nullable final String modelName,
650635
@Nullable final String retrieve,
651636
@Nullable final Boolean includeSpec,
652637
@Nullable final Boolean resolveTemplateRef)
@@ -665,7 +650,6 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
665650
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "scenario", scenario));
666651
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "name", name));
667652
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "version", version));
668-
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "model_name", modelName));
669653
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "retrieve", retrieve));
670654
localVarQueryParams.putAll(
671655
apiClient.parameterToMultiValueMap(null, "include_spec", includeSpec));
@@ -713,6 +697,6 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
713697
*/
714698
@Nonnull
715699
public OrchestrationConfigListResponse listOrchestrationConfigs() throws OpenApiRequestException {
716-
return listOrchestrationConfigs(null, null, null, null, null, null, null, null);
700+
return listOrchestrationConfigs(null, null, null, null, null, null, null);
717701
}
718702
}

core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/model/OrchestrationConfigGetResponse.java

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public class OrchestrationConfigGetResponse
4141
@JsonProperty("scenario")
4242
private String scenario;
4343

44-
@JsonProperty("model_name")
45-
private String modelName;
46-
4744
@JsonProperty("creation_timestamp")
4845
private String creationTimestamp;
4946

@@ -193,38 +190,6 @@ public void setScenario(@Nullable final String scenario) {
193190
this.scenario = scenario;
194191
}
195192

196-
/**
197-
* Set the modelName of this {@link OrchestrationConfigGetResponse} instance and return the same
198-
* instance.
199-
*
200-
* @param modelName The modelName of this {@link OrchestrationConfigGetResponse}
201-
* @return The same instance of this {@link OrchestrationConfigGetResponse} class
202-
*/
203-
@Nonnull
204-
public OrchestrationConfigGetResponse modelName(@Nullable final String modelName) {
205-
this.modelName = modelName;
206-
return this;
207-
}
208-
209-
/**
210-
* Get modelName
211-
*
212-
* @return modelName The modelName of this {@link OrchestrationConfigGetResponse} instance.
213-
*/
214-
@Nonnull
215-
public String getModelName() {
216-
return modelName;
217-
}
218-
219-
/**
220-
* Set the modelName of this {@link OrchestrationConfigGetResponse} instance.
221-
*
222-
* @param modelName The modelName of this {@link OrchestrationConfigGetResponse}
223-
*/
224-
public void setModelName(@Nullable final String modelName) {
225-
this.modelName = modelName;
226-
}
227-
228193
/**
229194
* Set the creationTimestamp of this {@link OrchestrationConfigGetResponse} instance and return
230195
* the same instance.
@@ -433,7 +398,6 @@ public Map<String, Object> toMap() {
433398
if (name != null) declaredFields.put("name", name);
434399
if (version != null) declaredFields.put("version", version);
435400
if (scenario != null) declaredFields.put("scenario", scenario);
436-
if (modelName != null) declaredFields.put("modelName", modelName);
437401
if (creationTimestamp != null) declaredFields.put("creationTimestamp", creationTimestamp);
438402
if (managedBy != null) declaredFields.put("managedBy", managedBy);
439403
if (isVersionHead != null) declaredFields.put("isVersionHead", isVersionHead);
@@ -471,7 +435,6 @@ public boolean equals(@Nullable final java.lang.Object o) {
471435
&& Objects.equals(this.name, orchestrationConfigGetResponse.name)
472436
&& Objects.equals(this.version, orchestrationConfigGetResponse.version)
473437
&& Objects.equals(this.scenario, orchestrationConfigGetResponse.scenario)
474-
&& Objects.equals(this.modelName, orchestrationConfigGetResponse.modelName)
475438
&& Objects.equals(this.creationTimestamp, orchestrationConfigGetResponse.creationTimestamp)
476439
&& Objects.equals(this.managedBy, orchestrationConfigGetResponse.managedBy)
477440
&& Objects.equals(this.isVersionHead, orchestrationConfigGetResponse.isVersionHead)
@@ -486,7 +449,6 @@ public int hashCode() {
486449
name,
487450
version,
488451
scenario,
489-
modelName,
490452
creationTimestamp,
491453
managedBy,
492454
isVersionHead,
@@ -504,7 +466,6 @@ public String toString() {
504466
sb.append(" name: ").append(toIndentedString(name)).append("\n");
505467
sb.append(" version: ").append(toIndentedString(version)).append("\n");
506468
sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n");
507-
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
508469
sb.append(" creationTimestamp: ").append(toIndentedString(creationTimestamp)).append("\n");
509470
sb.append(" managedBy: ").append(toIndentedString(managedBy)).append("\n");
510471
sb.append(" isVersionHead: ").append(toIndentedString(isVersionHead)).append("\n");

core-services/prompt-registry/src/main/java/com/sap/ai/sdk/prompt/registry/model/OrchestrationConfigPostResponse.java

Lines changed: 9 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,6 @@ public class OrchestrationConfigPostResponse
4444
@JsonProperty("version")
4545
private String version;
4646

47-
@JsonProperty("model_name")
48-
private String modelName;
49-
5047
@JsonAnySetter @JsonAnyGetter
5148
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();
5249

@@ -213,38 +210,6 @@ public void setVersion(@Nonnull final String version) {
213210
this.version = version;
214211
}
215212

216-
/**
217-
* Set the modelName of this {@link OrchestrationConfigPostResponse} instance and return the same
218-
* instance.
219-
*
220-
* @param modelName The modelName of this {@link OrchestrationConfigPostResponse}
221-
* @return The same instance of this {@link OrchestrationConfigPostResponse} class
222-
*/
223-
@Nonnull
224-
public OrchestrationConfigPostResponse modelName(@Nonnull final String modelName) {
225-
this.modelName = modelName;
226-
return this;
227-
}
228-
229-
/**
230-
* Get modelName
231-
*
232-
* @return modelName The modelName of this {@link OrchestrationConfigPostResponse} instance.
233-
*/
234-
@Nonnull
235-
public String getModelName() {
236-
return modelName;
237-
}
238-
239-
/**
240-
* Set the modelName of this {@link OrchestrationConfigPostResponse} instance.
241-
*
242-
* @param modelName The modelName of this {@link OrchestrationConfigPostResponse}
243-
*/
244-
public void setModelName(@Nonnull final String modelName) {
245-
this.modelName = modelName;
246-
}
247-
248213
/**
249214
* Get the names of the unrecognizable properties of the {@link OrchestrationConfigPostResponse}.
250215
*
@@ -290,7 +255,6 @@ public Map<String, Object> toMap() {
290255
if (scenario != null) declaredFields.put("scenario", scenario);
291256
if (name != null) declaredFields.put("name", name);
292257
if (version != null) declaredFields.put("version", version);
293-
if (modelName != null) declaredFields.put("modelName", modelName);
294258
return declaredFields;
295259
}
296260

@@ -323,13 +287,12 @@ public boolean equals(@Nullable final java.lang.Object o) {
323287
&& Objects.equals(this.id, orchestrationConfigPostResponse.id)
324288
&& Objects.equals(this.scenario, orchestrationConfigPostResponse.scenario)
325289
&& Objects.equals(this.name, orchestrationConfigPostResponse.name)
326-
&& Objects.equals(this.version, orchestrationConfigPostResponse.version)
327-
&& Objects.equals(this.modelName, orchestrationConfigPostResponse.modelName);
290+
&& Objects.equals(this.version, orchestrationConfigPostResponse.version);
328291
}
329292

330293
@Override
331294
public int hashCode() {
332-
return Objects.hash(message, id, scenario, name, version, modelName, cloudSdkCustomFields);
295+
return Objects.hash(message, id, scenario, name, version, cloudSdkCustomFields);
333296
}
334297

335298
@Override
@@ -342,7 +305,6 @@ public String toString() {
342305
sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n");
343306
sb.append(" name: ").append(toIndentedString(name)).append("\n");
344307
sb.append(" version: ").append(toIndentedString(version)).append("\n");
345-
sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n");
346308
cloudSdkCustomFields.forEach(
347309
(k, v) ->
348310
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
@@ -370,14 +332,12 @@ public static Builder create() {
370332
(scenario) ->
371333
(name) ->
372334
(version) ->
373-
(modelName) ->
374-
new OrchestrationConfigPostResponse()
375-
.message(message)
376-
.id(id)
377-
.scenario(scenario)
378-
.name(name)
379-
.version(version)
380-
.modelName(modelName);
335+
new OrchestrationConfigPostResponse()
336+
.message(message)
337+
.id(id)
338+
.scenario(scenario)
339+
.name(name)
340+
.version(version);
381341
}
382342

383343
/** Builder helper class. */
@@ -430,19 +390,8 @@ public interface Builder4 {
430390
* Set the version of this {@link OrchestrationConfigPostResponse} instance.
431391
*
432392
* @param version The version of this {@link OrchestrationConfigPostResponse}
433-
* @return The OrchestrationConfigPostResponse builder.
434-
*/
435-
Builder5 version(@Nonnull final String version);
436-
}
437-
438-
/** Builder helper class. */
439-
public interface Builder5 {
440-
/**
441-
* Set the modelName of this {@link OrchestrationConfigPostResponse} instance.
442-
*
443-
* @param modelName The modelName of this {@link OrchestrationConfigPostResponse}
444393
* @return The OrchestrationConfigPostResponse instance.
445394
*/
446-
OrchestrationConfigPostResponse modelName(@Nonnull final String modelName);
395+
OrchestrationConfigPostResponse version(@Nonnull final String version);
447396
}
448397
}

core-services/prompt-registry/src/main/resources/spec/prompt-registry.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,6 @@ paths:
370370
in: query
371371
schema:
372372
type: string
373-
- name: model_name
374-
in: query
375-
schema:
376-
type: string
377373
- name: retrieve
378374
in: query
379375
schema:
@@ -406,7 +402,7 @@ paths:
406402
$ref: '#/components/responses/ForbiddenError'
407403
default:
408404
$ref: '#/components/responses/CommonError'
409-
/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/models/{model_name}/history:
405+
/registry/v2/scenarios/{scenario}/orchestrationConfigs/{name}/versions/{version}/history:
410406
get:
411407
operationId: registry.controller.orchestration_config_controller.list_orchestration_config_history
412408
x-sap-cloud-sdk-operation-name: listOrchestrationConfigHistory
@@ -430,11 +426,6 @@ paths:
430426
required: true
431427
schema:
432428
type: string
433-
- name: model_name
434-
in: path
435-
required: true
436-
schema:
437-
type: string
438429
- name: include_spec
439430
in: query
440431
schema:
@@ -963,7 +954,6 @@ components:
963954
- scenario
964955
- name
965956
- version
966-
- model_name
967957
properties:
968958
message:
969959
type: string
@@ -976,8 +966,6 @@ components:
976966
type: string
977967
version:
978968
type: string
979-
model_name:
980-
type: string
981969
OrchestrationConfigGetResponse:
982970
type: object
983971
properties:
@@ -990,8 +978,6 @@ components:
990978
type: string
991979
scenario:
992980
type: string
993-
model_name:
994-
type: string
995981
creation_timestamp:
996982
type: string
997983
format: timestamp

0 commit comments

Comments
 (0)