import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../../types/output"; /** * Gets a Document. */ export declare function getDocument(args: GetDocumentArgs, opts?: pulumi.InvokeOptions): Promise; export interface GetDocumentArgs { branchId: string; collectionId: string; dataStoreId: string; documentId: string; location: string; project?: string; } export interface GetDocumentResult { /** * The unstructured data linked to this document. Content must be set if this document is under a `CONTENT_REQUIRED` data store. */ readonly content: outputs.discoveryengine.v1alpha.GoogleCloudDiscoveryengineV1alphaDocumentContentResponse; /** * This field is OUTPUT_ONLY. It contains derived data that are not in the original input document. */ readonly derivedStructData: { [key: string]: string; }; /** * The JSON string representation of the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */ readonly jsonData: string; /** * Immutable. The full resource name of the document. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. This field must be a UTF-8 encoded string with a length limit of 1024 characters. */ readonly name: string; /** * The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length limit of 63 characters. */ readonly parentDocumentId: string; /** * The identifier of the schema located in the same data store. */ readonly schemaId: string; /** * The structured JSON data for the document. It should conform to the registered Schema or an `INVALID_ARGUMENT` error is thrown. */ readonly structData: { [key: string]: string; }; } /** * Gets a Document. */ export declare function getDocumentOutput(args: GetDocumentOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output; export interface GetDocumentOutputArgs { branchId: pulumi.Input; collectionId: pulumi.Input; dataStoreId: pulumi.Input; documentId: pulumi.Input; location: pulumi.Input; project?: pulumi.Input; }