Skip to content

Commit

Permalink
Fix orchestration
Browse files Browse the repository at this point in the history
  • Loading branch information
newtork committed Sep 4, 2024
1 parent c81fddd commit ef80759
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public class AzureContentSafetyFilterConfig
/** String represents name of the filter provider */
public enum TypeEnum {
/** The AZURE_CONTENT_SAFETY option of this AzureContentSafetyFilterConfig */
AZURE_CONTENT_SAFETY("azure_content_safety");
AZURE_CONTENT_SAFETY("azure_content_safety"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this AzureContentSafetyFilterConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -78,7 +81,7 @@ public static TypeEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public enum AzureThreshold {

NUMBER_4(4),

NUMBER_6(6);
NUMBER_6(6),

NUMBER_unknown_default_open_api(11184809);

private final Integer value;

Expand Down Expand Up @@ -62,6 +64,6 @@ public static AzureThreshold fromValue(@Nonnull final Integer value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return NUMBER_unknown_default_open_api;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public class DPIConfig
/** Type of masking service provider */
public enum TypeEnum {
/** The SAP_DATA_PRIVACY_INTEGRATION option of this DPIConfig */
SAP_DATA_PRIVACY_INTEGRATION("sap_data_privacy_integration");
SAP_DATA_PRIVACY_INTEGRATION("sap_data_privacy_integration"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this DPIConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -81,7 +84,7 @@ public static TypeEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand All @@ -94,7 +97,10 @@ public enum MethodEnum {
ANONYMIZATION("anonymization"),

/** The PSEUDONYMIZATION option of this DPIConfig */
PSEUDONYMIZATION("pseudonymization");
PSEUDONYMIZATION("pseudonymization"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this DPIConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -138,7 +144,7 @@ public static MethodEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public enum DPIEntities {

TRADE_UNION("profile-trade-union"),

SENSITIVE_DATA("profile-sensitive-data");
SENSITIVE_DATA("profile-sensitive-data"),

UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private final String value;

Expand Down Expand Up @@ -104,6 +106,6 @@ public static DPIEntities fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public class FilterConfig
/** String represents name of the filter provider */
public enum TypeEnum {
/** The AZURE_CONTENT_SAFETY option of this FilterConfig */
AZURE_CONTENT_SAFETY("azure_content_safety");
AZURE_CONTENT_SAFETY("azure_content_safety"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this FilterConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -78,7 +81,7 @@ public static TypeEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public enum DataRepositoryTypeEnum {
VECTOR("vector"),

/** The HELP_SAP_COM option of this GroundingFilter */
HELP_SAP_COM("help.sap.com");
HELP_SAP_COM("help.sap.com"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this GroundingFilter */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -92,7 +95,7 @@ public static DataRepositoryTypeEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public class GroundingModuleConfig
/** Gets or Sets groundingService */
public enum GroundingServiceEnum {
/** The DOCUMENT_GROUNDING_SERVICE option of this GroundingModuleConfig */
DOCUMENT_GROUNDING_SERVICE("document_grounding_service");
DOCUMENT_GROUNDING_SERVICE("document_grounding_service"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this GroundingModuleConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -78,7 +81,7 @@ public static GroundingServiceEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ public class MaskingProviderConfig
/** Type of masking service provider */
public enum TypeEnum {
/** The SAP_DATA_PRIVACY_INTEGRATION option of this MaskingProviderConfig */
SAP_DATA_PRIVACY_INTEGRATION("sap_data_privacy_integration");
SAP_DATA_PRIVACY_INTEGRATION("sap_data_privacy_integration"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this MaskingProviderConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -81,7 +84,7 @@ public static TypeEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand All @@ -94,7 +97,10 @@ public enum MethodEnum {
ANONYMIZATION("anonymization"),

/** The PSEUDONYMIZATION option of this MaskingProviderConfig */
PSEUDONYMIZATION("pseudonymization");
PSEUDONYMIZATION("pseudonymization"),

/** The UNKNOWN_DEFAULT_OPEN_API option of this MaskingProviderConfig */
UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api");

private String value;

Expand Down Expand Up @@ -138,7 +144,7 @@ public static MethodEnum fromValue(@Nonnull final String value) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
return UNKNOWN_DEFAULT_OPEN_API;
}
}

Expand Down

0 comments on commit ef80759

Please sign in to comment.