Skip to main content

io.enterpriseai.resources.PrivacyClient

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/resources/PrivacyClient.java. Back to the Java SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Class PrivacyClient​

Data classification.

Constructor PrivacyClient​

PrivacyClient(Transport transport)

Creates the client on the shared transport; EnterpriseAIClient builds it and exposes it through the accessor of the same name.

NameTypeDefaultRequiredDescription
transportTransportyesTransport shared by the sub-clients of one client.

PrivacyClient.classify​

JsonNode classify(Object body)

Classify a text or a media. With text, detects the entities with the tenant rules and returns classification, findings and engine, without changing the text. With media_id, returns the classification, findings and DLP result already computed for that media (404 not_found for an unknown media). One of the two is required (400 invalid_request). Open to any member of the tenant.

Route: /v1/privacy/classify (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesText or media to classify, and language.

Returns: JsonNode. Decoded JSON answer of the operation "Classify a text or a media".

Raises: the typed errors of the transport (Errors).

PrivacyClient.classify​

JsonNode classify(Object body, RequestOptions options)

Classify a text or a media. With text, detects the entities with the tenant rules and returns classification, findings and engine, without changing the text. With media_id, returns the classification, findings and DLP result already computed for that media (404 not_found for an unknown media). One of the two is required (400 invalid_request). Open to any member of the tenant.

Route: /v1/privacy/classify (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesText or media to classify, and language.
optionsRequestOptionsyesPer call options (idempotency key, traceparent, headers, abort signal).

Returns: JsonNode. Decoded JSON answer of the operation "Classify a text or a media".

Raises: the typed errors of the transport (Errors).