Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Orchestration] Update to Orchestration Spec 0.36.1 #203

Merged
merged 3 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -155,6 +155,9 @@ public static MethodEnum fromValue(@Nonnull final String value) {
@JsonProperty("entities")
private List<DPIEntityConfig> entities = new ArrayList<>();

@JsonProperty("allowlist")
private List<String> allowlist = new ArrayList<>();

@JsonAnySetter @JsonAnyGetter
private final Map<String, Object> cloudSdkCustomFields = new LinkedHashMap<>();

Expand Down Expand Up @@ -269,6 +272,52 @@ public void setEntities(@Nonnull final List<DPIEntityConfig> entities) {
this.entities = entities;
}

/**
* Set the allowlist of this {@link DPIConfig} instance and return the same instance.
*
* @param allowlist List of strings that should not be masked
* @return The same instance of this {@link DPIConfig} class
*/
@Nonnull
public DPIConfig allowlist(@Nullable final List<String> allowlist) {
this.allowlist = allowlist;
return this;
}

/**
* Add one allowlist instance to this {@link DPIConfig}.
*
* @param allowlistItem The allowlist that should be added
* @return The same instance of type {@link DPIConfig}
*/
@Nonnull
public DPIConfig addAllowlistItem(@Nonnull final String allowlistItem) {
if (this.allowlist == null) {
this.allowlist = new ArrayList<>();
}
this.allowlist.add(allowlistItem);
return this;
}

/**
* List of strings that should not be masked
*
* @return allowlist The allowlist of this {@link DPIConfig} instance.
*/
@Nonnull
public List<String> getAllowlist() {
return allowlist;
}

/**
* Set the allowlist of this {@link DPIConfig} instance.
*
* @param allowlist List of strings that should not be masked
*/
public void setAllowlist(@Nullable final List<String> allowlist) {
this.allowlist = allowlist;
}

/**
* Get the names of the unrecognizable properties of the {@link DPIConfig}.
*
Expand Down Expand Up @@ -319,12 +368,13 @@ public boolean equals(@Nullable final java.lang.Object o) {
return Objects.equals(this.cloudSdkCustomFields, dpIConfig.cloudSdkCustomFields)
&& Objects.equals(this.type, dpIConfig.type)
&& Objects.equals(this.method, dpIConfig.method)
&& Objects.equals(this.entities, dpIConfig.entities);
&& Objects.equals(this.entities, dpIConfig.entities)
&& Objects.equals(this.allowlist, dpIConfig.allowlist);
}

@Override
public int hashCode() {
return Objects.hash(type, method, entities, cloudSdkCustomFields);
return Objects.hash(type, method, entities, allowlist, cloudSdkCustomFields);
}

@Override
Expand All @@ -335,6 +385,7 @@ public String toString() {
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" method: ").append(toIndentedString(method)).append("\n");
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
sb.append(" allowlist: ").append(toIndentedString(allowlist)).append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.29.3
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* Orchestration
* Orchestration is an inference service which provides common additional capabilities for business AI scenarios, such as content filtering and data masking. At the core of the service is the LLM module which allows for an easy, harmonized access to the language models of gen AI hub. The service is designed to be modular and extensible, allowing for the addition of new modules in the future. Each module can be configured independently and at runtime, allowing for a high degree of flexibility in the orchestration of AI services.
*
* The version of the OpenAPI document: 0.36.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.sap.ai.sdk.orchestration.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import javax.annotation.Nonnull;

/** Gets or Sets DataRepositoryType */
public enum DataRepositoryType {
VECTOR("vector"),

HELP_SAP_COM("help.sap.com"),

UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private final String value;

DataRepositoryType(String value) {
this.value = value;
}

/**
* @return The enum value.
*/
@JsonValue
public String getValue() {
return value;
}

/**
* @return The String representation of the enum value.
*/
@Override
@Nonnull
public String toString() {
return String.valueOf(value);
}

/**
* Converts the given value to its enum representation.
*
* @param value The input value.
* @return The enum representation of the given value.
*/
@JsonCreator
public static DataRepositoryType fromValue(@Nonnull final String value) {
for (final DataRepositoryType b : DataRepositoryType.values()) {
if (b.value.equals(value)) {
return b;
}
}
return null;
}
}
Loading