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
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Ai.AiBatchJob_annotations? | annotations | At most 256 KiB in all; never policy input. |
BilledUnits | long? | billedUnits | Units billed so far (pages, 1,000-character blocks or images, by product). |
ChargedMicros | long? | chargedMicros | Micro-euros charged so far. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
FailedItems | int? | failedItems | The failedItems property |
FinishTime | DateTimeOffset? | finishTime | The finishTime property |
Input | Models.Ai.AiBatchLocation? | input | Where a batch job reads or writes: a bucket of the project and a key prefix. |
Labels | Models.Ai.AiBatchJob_labels? | labels | At most 64. |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
Operation | string? | operation | The operation of the product: for `document` one of layout | general | invoice | receipt | idDocument | auto. |
Options | Models.Ai.AiBatchJob_options? | options | Options of the operation (for example `targetLanguage` of a translation). |
Output | Models.Ai.AiBatchLocation? | output | Where a batch job reads or writes: a bucket of the project and a key prefix. |
Product | string? | product | document | language | vision | speech. |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
State | string? | state | PENDING | LISTING | RUNNING | SUCCEEDED | PARTIAL | FAILED | CANCELLING | CANCELLED. |
StateReason | string? | stateReason | Why the job ended as it did (`no-input`, `engine-unavailable`, `spend-cap`, `cancelled`). |
SucceededItems | int? | succeededItems | The succeededItems property |
TotalItems | int? | totalItems | The totalItems property |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |