Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PushItem

import type { PushItem } from "https://googleapis.deno.dev/v1/cloudsearch:v1.ts";

Represents an item to be pushed to the indexing queue.

interface PushItem {
contentHash?: string;
metadataHash?: string;
payload?: Uint8Array;
queue?: string;
repositoryError?: RepositoryError;
structuredDataHash?: string;
type?:
| "UNSPECIFIED"
| "MODIFIED"
| "NOT_MODIFIED"
| "REPOSITORY_ERROR"
| "REQUEUE";
}

§Properties

§
contentHash?: string
[src]

Content hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.

§
metadataHash?: string
[src]

The metadata hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.

§
payload?: Uint8Array
[src]

Provides additional document state information for the connector, such as an alternate repository ID and other metadata. The maximum length is 8192 bytes.

§
queue?: string
[src]

Queue to which this item belongs. The default queue is chosen if this field is not specified. The maximum length is 512 characters.

§
repositoryError?: RepositoryError
[src]

Populate this field to store Connector or repository error details. This information is displayed in the Admin Console. This field may only be populated when the Type is REPOSITORY_ERROR.

§
structuredDataHash?: string
[src]

Structured data hash of the item according to the repository. If specified, this is used to determine how to modify this item's status. Setting this field and the type field results in argument error. The maximum length is 2048 characters.

§
type?: "UNSPECIFIED" | "MODIFIED" | "NOT_MODIFIED" | "REPOSITORY_ERROR" | "REQUEUE"
[src]

The type of the push operation that defines the push behavior.