Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
google-native.discoveryengine/v1alpha.getDocument
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi
Gets a Document.
Using getDocument
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDocument(args: GetDocumentArgs, opts?: InvokeOptions): Promise<GetDocumentResult>
function getDocumentOutput(args: GetDocumentOutputArgs, opts?: InvokeOptions): Output<GetDocumentResult>def get_document(branch_id: Optional[str] = None,
                 collection_id: Optional[str] = None,
                 data_store_id: Optional[str] = None,
                 document_id: Optional[str] = None,
                 location: Optional[str] = None,
                 project: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetDocumentResult
def get_document_output(branch_id: Optional[pulumi.Input[str]] = None,
                 collection_id: Optional[pulumi.Input[str]] = None,
                 data_store_id: Optional[pulumi.Input[str]] = None,
                 document_id: Optional[pulumi.Input[str]] = None,
                 location: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetDocumentResult]func LookupDocument(ctx *Context, args *LookupDocumentArgs, opts ...InvokeOption) (*LookupDocumentResult, error)
func LookupDocumentOutput(ctx *Context, args *LookupDocumentOutputArgs, opts ...InvokeOption) LookupDocumentResultOutput> Note: This function is named LookupDocument in the Go SDK.
public static class GetDocument 
{
    public static Task<GetDocumentResult> InvokeAsync(GetDocumentArgs args, InvokeOptions? opts = null)
    public static Output<GetDocumentResult> Invoke(GetDocumentInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDocumentResult> getDocument(GetDocumentArgs args, InvokeOptions options)
public static Output<GetDocumentResult> getDocument(GetDocumentArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:discoveryengine/v1alpha:getDocument
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BranchId string
- CollectionId string
- DataStore stringId 
- DocumentId string
- Location string
- Project string
- BranchId string
- CollectionId string
- DataStore stringId 
- DocumentId string
- Location string
- Project string
- branchId String
- collectionId String
- dataStore StringId 
- documentId String
- location String
- project String
- branchId string
- collectionId string
- dataStore stringId 
- documentId string
- location string
- project string
- branch_id str
- collection_id str
- data_store_ strid 
- document_id str
- location str
- project str
- branchId String
- collectionId String
- dataStore StringId 
- documentId String
- location String
- project String
getDocument Result
The following output properties are available:
- Content
Pulumi.Google Native. Discovery Engine. V1Alpha. Outputs. Google Cloud Discoveryengine V1alpha Document Content Response 
- The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIREDdata store.
- DerivedStruct Dictionary<string, string>Data 
- This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- JsonData string
- The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- Name 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.
- ParentDocument stringId 
- The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
- SchemaId string
- The identifier of the schema located in the same data store.
- StructData Dictionary<string, string>
- The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- Content
GoogleCloud Discoveryengine V1alpha Document Content Response 
- The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIREDdata store.
- DerivedStruct map[string]stringData 
- This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- JsonData string
- The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- Name 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.
- ParentDocument stringId 
- The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
- SchemaId string
- The identifier of the schema located in the same data store.
- StructData map[string]string
- The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- content
GoogleCloud Discoveryengine V1alpha Document Content Response 
- The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIREDdata store.
- derivedStruct Map<String,String>Data 
- This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- jsonData String
- The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- name 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.
- parentDocument StringId 
- The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
- schemaId String
- The identifier of the schema located in the same data store.
- structData Map<String,String>
- The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- content
GoogleCloud Discoveryengine V1alpha Document Content Response 
- The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIREDdata store.
- derivedStruct {[key: string]: string}Data 
- This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- jsonData string
- The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- name 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.
- parentDocument stringId 
- The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
- schemaId string
- The identifier of the schema located in the same data store.
- structData {[key: string]: string}
- The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- content
GoogleCloud Discoveryengine V1alpha Document Content Response 
- The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIREDdata store.
- derived_struct_ Mapping[str, str]data 
- This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- json_data str
- The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- name str
- 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.
- parent_document_ strid 
- The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
- schema_id str
- The identifier of the schema located in the same data store.
- struct_data Mapping[str, str]
- The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- content Property Map
- The unstructured data linked to this document. Content must be set if this document is under a CONTENT_REQUIREDdata store.
- derivedStruct Map<String>Data 
- This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- jsonData String
- The JSON string representation of the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
- name 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.
- parentDocument StringId 
- The identifier of the parent document. Currently supports at most two level document hierarchy. Id should conform to RFC-1034 standard with a length limit of 63 characters.
- schemaId String
- The identifier of the schema located in the same data store.
- structData Map<String>
- The structured JSON data for the document. It should conform to the registered Schema or an INVALID_ARGUMENTerror is thrown.
Supporting Types
GoogleCloudDiscoveryengineV1alphaDocumentContentResponse      
- MimeType string
- The MIME type of the content. Supported types: * application/pdf(PDF, only native PDFs are supported for now) *text/html(HTML) *application/vnd.openxmlformats-officedocument.wordprocessingml.document(DOCX) *application/vnd.openxmlformats-officedocument.presentationml.presentation(PPTX) *text/plain(TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
- RawBytes string
- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytesfields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example,abc123!?$*&()'-=@~should be represented asYWJjMTIzIT8kKiYoKSctPUB+in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
- Uri string
- The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
- MimeType string
- The MIME type of the content. Supported types: * application/pdf(PDF, only native PDFs are supported for now) *text/html(HTML) *application/vnd.openxmlformats-officedocument.wordprocessingml.document(DOCX) *application/vnd.openxmlformats-officedocument.presentationml.presentation(PPTX) *text/plain(TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
- RawBytes string
- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytesfields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example,abc123!?$*&()'-=@~should be represented asYWJjMTIzIT8kKiYoKSctPUB+in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
- Uri string
- The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
- mimeType String
- The MIME type of the content. Supported types: * application/pdf(PDF, only native PDFs are supported for now) *text/html(HTML) *application/vnd.openxmlformats-officedocument.wordprocessingml.document(DOCX) *application/vnd.openxmlformats-officedocument.presentationml.presentation(PPTX) *text/plain(TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
- rawBytes String
- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytesfields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example,abc123!?$*&()'-=@~should be represented asYWJjMTIzIT8kKiYoKSctPUB+in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
- uri String
- The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
- mimeType string
- The MIME type of the content. Supported types: * application/pdf(PDF, only native PDFs are supported for now) *text/html(HTML) *application/vnd.openxmlformats-officedocument.wordprocessingml.document(DOCX) *application/vnd.openxmlformats-officedocument.presentationml.presentation(PPTX) *text/plain(TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
- rawBytes string
- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytesfields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example,abc123!?$*&()'-=@~should be represented asYWJjMTIzIT8kKiYoKSctPUB+in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
- uri string
- The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
- mime_type str
- The MIME type of the content. Supported types: * application/pdf(PDF, only native PDFs are supported for now) *text/html(HTML) *application/vnd.openxmlformats-officedocument.wordprocessingml.document(DOCX) *application/vnd.openxmlformats-officedocument.presentationml.presentation(PPTX) *text/plain(TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
- raw_bytes str
- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytesfields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example,abc123!?$*&()'-=@~should be represented asYWJjMTIzIT8kKiYoKSctPUB+in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
- uri str
- The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
- mimeType String
- The MIME type of the content. Supported types: * application/pdf(PDF, only native PDFs are supported for now) *text/html(HTML) *application/vnd.openxmlformats-officedocument.wordprocessingml.document(DOCX) *application/vnd.openxmlformats-officedocument.presentationml.presentation(PPTX) *text/plain(TXT) See https://www.iana.org/assignments/media-types/media-types.xhtml.
- rawBytes String
- The content represented as a stream of bytes. The maximum length is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all bytesfields, this field is represented as pure binary in Protocol Buffers and base64-encoded string in JSON. For example,abc123!?$*&()'-=@~should be represented asYWJjMTIzIT8kKiYoKSctPUB+in JSON. See https://developers.google.com/protocol-buffers/docs/proto3#json.
- uri String
- The URI of the content. Only Cloud Storage URIs (e.g. gs://bucket-name/path/to/file) are supported. The maximum file size is 100 MB.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi