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/v1beta.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:discoveryengine/v1beta:getDocument
arguments:
# arguments dictionary
The following arguments are supported:
- Branch
Id string - Collection
Id string - Data
Store stringId - Document
Id string - Location string
- Project string
- Branch
Id string - Collection
Id string - Data
Store stringId - Document
Id string - Location string
- Project string
- branch
Id String - collection
Id String - data
Store StringId - document
Id String - location String
- project String
- branch
Id string - collection
Id string - data
Store stringId - document
Id string - location string
- project string
- branch_
id str - collection_
id str - data_
store_ strid - document_
id str - location str
- project str
- branch
Id String - collection
Id String - data
Store StringId - document
Id String - location String
- project String
getDocument Result
The following output properties are available:
- Content
Pulumi.
Google Native. Discovery Engine. V1Beta. Outputs. Google Cloud Discoveryengine V1beta Document Content Response - The unstructured data linked to this document. Content must be set if this document is under a
CONTENT_REQUIRED
data store. - Derived
Struct Dictionary<string, string>Data - This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- Json
Data string - The JSON string representation of the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error 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. - Parent
Document 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.
- Schema
Id string - The identifier of the schema located in the same data store.
- Struct
Data Dictionary<string, string> - The structured JSON data for the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error is thrown.
- Content
Google
Cloud Discoveryengine V1beta Document Content Response - The unstructured data linked to this document. Content must be set if this document is under a
CONTENT_REQUIRED
data store. - Derived
Struct map[string]stringData - This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- Json
Data string - The JSON string representation of the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error 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. - Parent
Document 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.
- Schema
Id string - The identifier of the schema located in the same data store.
- Struct
Data map[string]string - The structured JSON data for the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error is thrown.
- content
Google
Cloud Discoveryengine V1beta Document Content Response - The unstructured data linked to this document. Content must be set if this document is under a
CONTENT_REQUIRED
data store. - derived
Struct Map<String,String>Data - This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- json
Data String - The JSON string representation of the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error 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. - parent
Document 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.
- schema
Id String - The identifier of the schema located in the same data store.
- struct
Data Map<String,String> - The structured JSON data for the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error is thrown.
- content
Google
Cloud Discoveryengine V1beta Document Content Response - The unstructured data linked to this document. Content must be set if this document is under a
CONTENT_REQUIRED
data store. - derived
Struct {[key: string]: string}Data - This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- json
Data string - The JSON string representation of the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error 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. - parent
Document 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.
- schema
Id string - The identifier of the schema located in the same data store.
- struct
Data {[key: string]: string} - The structured JSON data for the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error is thrown.
- content
Google
Cloud Discoveryengine V1beta Document Content Response - The unstructured data linked to this document. Content must be set if this document is under a
CONTENT_REQUIRED
data 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_ARGUMENT
error 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_ARGUMENT
error is thrown.
- content Property Map
- The unstructured data linked to this document. Content must be set if this document is under a
CONTENT_REQUIRED
data store. - derived
Struct Map<String>Data - This field is OUTPUT_ONLY. It contains derived data that are not in the original input document.
- json
Data String - The JSON string representation of the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error 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. - parent
Document 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.
- schema
Id String - The identifier of the schema located in the same data store.
- struct
Data Map<String> - The structured JSON data for the document. It should conform to the registered Schema or an
INVALID_ARGUMENT
error is thrown.
Supporting Types
GoogleCloudDiscoveryengineV1betaDocumentContentResponse
- Mime
Type 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. - Raw
Bytes 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
bytes
fields, 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 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. - Raw
Bytes 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
bytes
fields, 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 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. - raw
Bytes 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
bytes
fields, 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 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. - raw
Bytes 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
bytes
fields, 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
bytes
fields, 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.
- mime
Type 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. - raw
Bytes 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
bytes
fields, 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