Skip to main content

io.enterpriseai.resources.ManifestsClient

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/resources/ManifestsClient.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 ManifestsClient​

Manifest apply and export (Agent, Model, Tool, Skill, Plugin, Connector, Channel).

Constructor ManifestsClient​

ManifestsClient(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.

ManifestsClient.apply​

JsonNode apply(Object body)

Apply a manifest. Creates or updates the object described by a manifest, in one transaction. Needs tenant_admin or developer.

Route: /v1/manifests/apply (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesManifest document with kind, metadata and the specification of the object.

Returns: JsonNode. Decoded JSON answer of the operation "Apply a manifest".

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

ManifestsClient.apply​

JsonNode apply(Object body, RequestOptions options)

Apply a manifest. Creates or updates the object described by a manifest, in one transaction. Needs tenant_admin or developer.

Route: /v1/manifests/apply (POST).

NameTypeDefaultRequiredDescription
bodyObjectyesManifest document with kind, metadata and the specification of the object.
optionsRequestOptionsyesPer call options (idempotency key, traceparent, headers, abort signal).

Returns: JsonNode. Decoded JSON answer of the operation "Apply a manifest".

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

ManifestsClient.export​

JsonNode export(String kind, String name)

Export a manifest. Returns the current manifest of an object of the tenant: built by the registry of the kind when it can export, otherwise the last applied document. Open to any member of the tenant. An unknown kind answers 422 unknown_kind (with the supported kinds); an unknown object 404 not_found.

Route: /v1/manifests/{kind}/{name} (GET).

NameTypeDefaultRequiredDescription
kindStringyesKind of manifest, without case: Agent, Model, Tool, Skill, Plugin, Connector or Channel.
nameStringyesName of the object, the metadata.name of its manifest.

Returns: JsonNode. Decoded JSON answer of the operation "Export a manifest".

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