SDK reference / Models / Ai

AiBatchJob

Kind: class

Namespace: Egulu.Sdk.Models.Ai

A batch job: one AI service operation run over every object under a bucket prefix, one result object per input written under theoutput prefix as {input key}.json (plus {input key}.redacted or an image where the operation makes one). The job runsin the cell; the operation of create ends when the job does. Billed per page, per 1,000 characters or per image, as the same call is.

Properties

NameTypeJSON nameDescription
AnnotationsModels.Ai.AiBatchJob_annotations?annotationsAt most 256 KiB in all; never policy input.
BilledUnitslong?billedUnitsUnits billed so far (pages, 1,000-character blocks or images, by product).
ChargedMicroslong?chargedMicrosMicro-euros charged so far.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
FailedItemsint?failedItemsThe failedItems property
FinishTimeDateTimeOffset?finishTimeThe finishTime property
InputModels.Ai.AiBatchLocation?inputWhere a batch job reads or writes: a bucket of the project and a key prefix.
LabelsModels.Ai.AiBatchJob_labels?labelsAt most 64.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
Operationstring?operationThe operation of the product: for `document` one of layout | general | invoice | receipt | idDocument | auto.
OptionsModels.Ai.AiBatchJob_options?optionsOptions of the operation (for example `targetLanguage` of a translation).
OutputModels.Ai.AiBatchLocation?outputWhere a batch job reads or writes: a bucket of the project and a key prefix.
Productstring?productdocument | language | vision | speech.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
Statestring?statePENDING | LISTING | RUNNING | SUCCEEDED | PARTIAL | FAILED | CANCELLING | CANCELLED.
StateReasonstring?stateReasonWhy the job ended as it did (`no-input`, `engine-unavailable`, `spend-cap`, `cancelled`).
SucceededItemsint?succeededItemsThe succeededItems property
TotalItemsint?totalItemsThe totalItems property
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property