Skip to content
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 @@ -323,16 +323,18 @@ public byte[] exportOrchestrationConfig(@Nonnull final UUID orchestrationConfigI
*
* @param orchestrationConfigId (required) The value for the parameter orchestrationConfigId
* @param aiResourceGroup (optional) Specify a resource group id to use
* @param resolveTemplateRef (optional, default to false) The value for the parameter
* resolveTemplateRef
* @param resolveTemplateRef (optional, default to false) DEPRECATED: Use resolveTemplateRef
* instead
* @param resolveTemplateRef2 (optional) The value for the parameter resolveTemplateRef2
* @return OrchestrationConfigGetResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
@Nonnull
public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(
@Nonnull final UUID orchestrationConfigId,
@Nullable final String aiResourceGroup,
@Nullable final Boolean resolveTemplateRef)
@Nullable final Boolean resolveTemplateRef,
@Nullable final Boolean resolveTemplateRef2)
throws OpenApiRequestException {
final Object localVarPostBody = null;

Expand All @@ -358,6 +360,8 @@ public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(

localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "resolve_template_ref", resolveTemplateRef));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "resolveTemplateRef", resolveTemplateRef2));

if (aiResourceGroup != null)
localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
Expand Down Expand Up @@ -402,7 +406,7 @@ public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(
@Nonnull
public OrchestrationConfigGetResponse getOrchestrationConfigByUuid(
@Nonnull final UUID orchestrationConfigId) throws OpenApiRequestException {
return getOrchestrationConfigByUuid(orchestrationConfigId, null, null);
return getOrchestrationConfigByUuid(orchestrationConfigId, null, null, null);
}

/**
Expand Down Expand Up @@ -497,9 +501,11 @@ public OrchestrationConfigPostResponse importOrchestrationConfig()
* @param version (required) The value for the parameter version
* @param name (required) The value for the parameter name
* @param aiResourceGroup (optional) Specify a resource group id to use
* @param includeSpec (optional, default to false) The value for the parameter includeSpec
* @param resolveTemplateRef (optional, default to false) The value for the parameter
* resolveTemplateRef
* @param includeSpec (optional, default to false) DEPRECATED: Use includeSpec instead
* @param includeSpec2 (optional) The value for the parameter includeSpec2
* @param resolveTemplateRef (optional, default to false) DEPRECATED: Use resolveTemplateRef
* instead
* @param resolveTemplateRef2 (optional) The value for the parameter resolveTemplateRef2
* @return OrchestrationConfigListResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
Expand All @@ -510,7 +516,9 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
@Nonnull final String name,
@Nullable final String aiResourceGroup,
@Nullable final Boolean includeSpec,
@Nullable final Boolean resolveTemplateRef)
@Nullable final Boolean includeSpec2,
@Nullable final Boolean resolveTemplateRef,
@Nullable final Boolean resolveTemplateRef2)
throws OpenApiRequestException {
final Object localVarPostBody = null;

Expand Down Expand Up @@ -551,8 +559,12 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(

localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "include_spec", includeSpec));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "includeSpec", includeSpec2));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "resolve_template_ref", resolveTemplateRef));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "resolveTemplateRef", resolveTemplateRef2));

if (aiResourceGroup != null)
localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
Expand Down Expand Up @@ -600,7 +612,7 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
public OrchestrationConfigListResponse listOrchestrationConfigHistory(
@Nonnull final String scenario, @Nonnull final String version, @Nonnull final String name)
throws OpenApiRequestException {
return listOrchestrationConfigHistory(scenario, version, name, null, null, null);
return listOrchestrationConfigHistory(scenario, version, name, null, null, null, null, null);
}

/**
Expand All @@ -619,9 +631,11 @@ public OrchestrationConfigListResponse listOrchestrationConfigHistory(
* @param name (optional) The value for the parameter name
* @param version (optional) The value for the parameter version
* @param retrieve (optional, default to both) The value for the parameter retrieve
* @param includeSpec (optional, default to false) The value for the parameter includeSpec
* @param resolveTemplateRef (optional, default to false) The value for the parameter
* resolveTemplateRef
* @param includeSpec (optional, default to false) DEPRECATED: Use includeSpec instead
* @param includeSpec2 (optional) The value for the parameter includeSpec2
* @param resolveTemplateRef (optional, default to false) DEPRECATED: Use resolveTemplateRef
* instead
* @param resolveTemplateRef2 (optional) The value for the parameter resolveTemplateRef2
* @return OrchestrationConfigListResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
Expand All @@ -633,7 +647,9 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
@Nullable final String version,
@Nullable final String retrieve,
@Nullable final Boolean includeSpec,
@Nullable final Boolean resolveTemplateRef)
@Nullable final Boolean includeSpec2,
@Nullable final Boolean resolveTemplateRef,
@Nullable final Boolean resolveTemplateRef2)
throws OpenApiRequestException {
final Object localVarPostBody = null;

Expand All @@ -652,8 +668,12 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "retrieve", retrieve));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "include_spec", includeSpec));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "includeSpec", includeSpec2));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "resolve_template_ref", resolveTemplateRef));
localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "resolveTemplateRef", resolveTemplateRef2));

if (aiResourceGroup != null)
localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
Expand Down Expand Up @@ -696,6 +716,6 @@ public OrchestrationConfigListResponse listOrchestrationConfigs(
*/
@Nonnull
public OrchestrationConfigListResponse listOrchestrationConfigs() throws OpenApiRequestException {
return listOrchestrationConfigs(null, null, null, null, null, null, null);
return listOrchestrationConfigs(null, null, null, null, null, null, null, null, null);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@ public PromptTemplatePostResponse importPromptTemplate() throws OpenApiRequestEx
* @param name (required) The value for the parameter name
* @param aiResourceGroup (optional) Specify a resource group id to use
* @param aiResourceGroupScope (optional) Specify whether the resource group scope is to be used
* @param includeSpec (optional, default to false) The value for the parameter includeSpec
* @return PromptTemplateListResponse
* @throws OpenApiRequestException if an error occurs while attempting to invoke the API
*/
Expand All @@ -525,7 +526,8 @@ public PromptTemplateListResponse listPromptTemplateHistory(
@Nonnull final String version,
@Nonnull final String name,
@Nullable final String aiResourceGroup,
@Nullable final String aiResourceGroupScope)
@Nullable final String aiResourceGroupScope,
@Nullable final Boolean includeSpec)
throws OpenApiRequestException {
final Object localVarPostBody = null;

Expand Down Expand Up @@ -564,6 +566,9 @@ public PromptTemplateListResponse listPromptTemplateHistory(
final MultiValueMap<String, Object> localVarFormParams =
new LinkedMultiValueMap<String, Object>();

localVarQueryParams.putAll(
apiClient.parameterToMultiValueMap(null, "includeSpec", includeSpec));

if (aiResourceGroup != null)
localVarHeaderParams.add("AI-Resource-Group", apiClient.parameterToString(aiResourceGroup));
if (aiResourceGroupScope != null)
Expand Down Expand Up @@ -613,7 +618,7 @@ public PromptTemplateListResponse listPromptTemplateHistory(
public PromptTemplateListResponse listPromptTemplateHistory(
@Nonnull final String scenario, @Nonnull final String version, @Nonnull final String name)
throws OpenApiRequestException {
return listPromptTemplateHistory(scenario, version, name, null, null);
return listPromptTemplateHistory(scenario, version, name, null, null, null);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,66 @@ public static MethodEnum fromValue(@Nonnull final String value) {
@JsonProperty("mask_grounding_input")
private DPIConfigMaskGroundingInput maskGroundingInput;

/** Type of masking method to be used for file inputs. Required if file inputs are provided. */
public enum MaskFileInputMethodEnum {
/** The ANONYMIZATION option of this DPIConfig */
ANONYMIZATION("anonymization"),

/** The SKIP option of this DPIConfig */
SKIP("skip"),

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

private String value;

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

/**
* Get the value of the enum
*
* @return The enum value
*/
@JsonValue
@Nonnull
public String getValue() {
return value;
}

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

/**
* Get the enum value from a String value
*
* @param value The String value
* @return The enum value of type DPIConfig
*/
@JsonCreator
@Nonnull
public static MaskFileInputMethodEnum fromValue(@Nonnull final String value) {
for (MaskFileInputMethodEnum b : MaskFileInputMethodEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
return UNKNOWN_DEFAULT_OPEN_API;
}
}

@JsonProperty("mask_file_input_method")
private MaskFileInputMethodEnum maskFileInputMethod;

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

Expand Down Expand Up @@ -352,6 +412,40 @@ public void setMaskGroundingInput(
this.maskGroundingInput = maskGroundingInput;
}

/**
* Set the maskFileInputMethod of this {@link DPIConfig} instance and return the same instance.
*
* @param maskFileInputMethod Type of masking method to be used for file inputs. Required if file
* inputs are provided.
* @return The same instance of this {@link DPIConfig} class
*/
@Nonnull
public DPIConfig maskFileInputMethod(
@Nullable final MaskFileInputMethodEnum maskFileInputMethod) {
this.maskFileInputMethod = maskFileInputMethod;
return this;
}

/**
* Type of masking method to be used for file inputs. Required if file inputs are provided.
*
* @return maskFileInputMethod The maskFileInputMethod of this {@link DPIConfig} instance.
*/
@Nonnull
public MaskFileInputMethodEnum getMaskFileInputMethod() {
return maskFileInputMethod;
}

/**
* Set the maskFileInputMethod of this {@link DPIConfig} instance.
*
* @param maskFileInputMethod Type of masking method to be used for file inputs. Required if file
* inputs are provided.
*/
public void setMaskFileInputMethod(@Nullable final MaskFileInputMethodEnum maskFileInputMethod) {
this.maskFileInputMethod = maskFileInputMethod;
}

/**
* Get the names of the unrecognizable properties of the {@link DPIConfig}.
*
Expand Down Expand Up @@ -395,6 +489,7 @@ public Map<String, Object> toMap() {
if (entities != null) declaredFields.put("entities", entities);
if (allowlist != null) declaredFields.put("allowlist", allowlist);
if (maskGroundingInput != null) declaredFields.put("maskGroundingInput", maskGroundingInput);
if (maskFileInputMethod != null) declaredFields.put("maskFileInputMethod", maskFileInputMethod);
return declaredFields;
}

Expand Down Expand Up @@ -424,13 +519,20 @@ public boolean equals(@Nullable final java.lang.Object o) {
&& Objects.equals(this.method, dpIConfig.method)
&& Objects.equals(this.entities, dpIConfig.entities)
&& Objects.equals(this.allowlist, dpIConfig.allowlist)
&& Objects.equals(this.maskGroundingInput, dpIConfig.maskGroundingInput);
&& Objects.equals(this.maskGroundingInput, dpIConfig.maskGroundingInput)
&& Objects.equals(this.maskFileInputMethod, dpIConfig.maskFileInputMethod);
}

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

@Override
Expand All @@ -443,6 +545,9 @@ public String toString() {
sb.append(" entities: ").append(toIndentedString(entities)).append("\n");
sb.append(" allowlist: ").append(toIndentedString(allowlist)).append("\n");
sb.append(" maskGroundingInput: ").append(toIndentedString(maskGroundingInput)).append("\n");
sb.append(" maskFileInputMethod: ")
.append(toIndentedString(maskFileInputMethod))
.append("\n");
cloudSdkCustomFields.forEach(
(k, v) ->
sb.append(" ").append(k).append(": ").append(toIndentedString(v)).append("\n"));
Expand Down
Loading
Loading