google-native.discoveryengine/v1alpha.getDocument
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,
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,
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/v1alpha:getDocument
arguments:
# arguments dictionary
The following arguments are supported:
- Branch
Id string - Data
Store stringId - Document
Id string - Location string
- Project string
- Branch
Id string - Data
Store stringId - Document
Id string - Location string
- Project string
- branch
Id String - data
Store StringId - document
Id String - location String
- project String
- branch
Id string - data
Store stringId - document
Id string - location string
- project string
- branch_
id str - data_
store_ strid - document_
id str - location str
- project str
- branch
Id String - data
Store StringId - document
Id String - location String
- project String
getDocument Result
The following output properties are available:
- 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}/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.
- 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}/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.
- 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}/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.
- 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}/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.
- 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}/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.
- 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}/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.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0