1. Packages
  2. Google Cloud Native
  3. API Docs
  4. contentwarehouse
  5. contentwarehouse/v1
  6. getDocumentSchema

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.contentwarehouse/v1.getDocumentSchema

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 schema. Returns NOT_FOUND if the document schema does not exist.

Using getDocumentSchema

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 getDocumentSchema(args: GetDocumentSchemaArgs, opts?: InvokeOptions): Promise<GetDocumentSchemaResult>
function getDocumentSchemaOutput(args: GetDocumentSchemaOutputArgs, opts?: InvokeOptions): Output<GetDocumentSchemaResult>
Copy
def get_document_schema(document_schema_id: Optional[str] = None,
                        location: Optional[str] = None,
                        project: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDocumentSchemaResult
def get_document_schema_output(document_schema_id: Optional[pulumi.Input[str]] = None,
                        location: Optional[pulumi.Input[str]] = None,
                        project: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDocumentSchemaResult]
Copy
func LookupDocumentSchema(ctx *Context, args *LookupDocumentSchemaArgs, opts ...InvokeOption) (*LookupDocumentSchemaResult, error)
func LookupDocumentSchemaOutput(ctx *Context, args *LookupDocumentSchemaOutputArgs, opts ...InvokeOption) LookupDocumentSchemaResultOutput
Copy

> Note: This function is named LookupDocumentSchema in the Go SDK.

public static class GetDocumentSchema 
{
    public static Task<GetDocumentSchemaResult> InvokeAsync(GetDocumentSchemaArgs args, InvokeOptions? opts = null)
    public static Output<GetDocumentSchemaResult> Invoke(GetDocumentSchemaInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDocumentSchemaResult> getDocumentSchema(GetDocumentSchemaArgs args, InvokeOptions options)
public static Output<GetDocumentSchemaResult> getDocumentSchema(GetDocumentSchemaArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:contentwarehouse/v1:getDocumentSchema
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DocumentSchemaId This property is required. string
Location This property is required. string
Project string
DocumentSchemaId This property is required. string
Location This property is required. string
Project string
documentSchemaId This property is required. String
location This property is required. String
project String
documentSchemaId This property is required. string
location This property is required. string
project string
document_schema_id This property is required. str
location This property is required. str
project str
documentSchemaId This property is required. String
location This property is required. String
project String

getDocumentSchema Result

The following output properties are available:

CreateTime string
The time when the document schema is created.
Description string
Schema description.
DisplayName string
Name of the schema given by the user. Must be unique per project.
DocumentIsFolder bool
Document Type, true refers the document is a folder, otherwise it is a typical document.
Name string
The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
PropertyDefinitions List<Pulumi.GoogleNative.Contentwarehouse.V1.Outputs.GoogleCloudContentwarehouseV1PropertyDefinitionResponse>
Document details.
UpdateTime string
The time when the document schema is last updated.
CreateTime string
The time when the document schema is created.
Description string
Schema description.
DisplayName string
Name of the schema given by the user. Must be unique per project.
DocumentIsFolder bool
Document Type, true refers the document is a folder, otherwise it is a typical document.
Name string
The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
PropertyDefinitions []GoogleCloudContentwarehouseV1PropertyDefinitionResponse
Document details.
UpdateTime string
The time when the document schema is last updated.
createTime String
The time when the document schema is created.
description String
Schema description.
displayName String
Name of the schema given by the user. Must be unique per project.
documentIsFolder Boolean
Document Type, true refers the document is a folder, otherwise it is a typical document.
name String
The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
propertyDefinitions List<GoogleCloudContentwarehouseV1PropertyDefinitionResponse>
Document details.
updateTime String
The time when the document schema is last updated.
createTime string
The time when the document schema is created.
description string
Schema description.
displayName string
Name of the schema given by the user. Must be unique per project.
documentIsFolder boolean
Document Type, true refers the document is a folder, otherwise it is a typical document.
name string
The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
propertyDefinitions GoogleCloudContentwarehouseV1PropertyDefinitionResponse[]
Document details.
updateTime string
The time when the document schema is last updated.
create_time str
The time when the document schema is created.
description str
Schema description.
display_name str
Name of the schema given by the user. Must be unique per project.
document_is_folder bool
Document Type, true refers the document is a folder, otherwise it is a typical document.
name str
The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
property_definitions Sequence[GoogleCloudContentwarehouseV1PropertyDefinitionResponse]
Document details.
update_time str
The time when the document schema is last updated.
createTime String
The time when the document schema is created.
description String
Schema description.
displayName String
Name of the schema given by the user. Must be unique per project.
documentIsFolder Boolean
Document Type, true refers the document is a folder, otherwise it is a typical document.
name String
The resource name of the document schema. Format: projects/{project_number}/locations/{location}/documentSchemas/{document_schema_id}. The name is ignored when creating a document schema.
propertyDefinitions List<Property Map>
Document details.
updateTime String
The time when the document schema is last updated.

Supporting Types

GoogleCloudContentwarehouseV1EnumTypeOptionsResponse

PossibleValues This property is required. List<string>
List of possible enum values.
ValidationCheckDisabled This property is required. bool
Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.
PossibleValues This property is required. []string
List of possible enum values.
ValidationCheckDisabled This property is required. bool
Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.
possibleValues This property is required. List<String>
List of possible enum values.
validationCheckDisabled This property is required. Boolean
Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.
possibleValues This property is required. string[]
List of possible enum values.
validationCheckDisabled This property is required. boolean
Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.
possible_values This property is required. Sequence[str]
List of possible enum values.
validation_check_disabled This property is required. bool
Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.
possibleValues This property is required. List<String>
List of possible enum values.
validationCheckDisabled This property is required. Boolean
Make sure the Enum property value provided in the document is in the possile value list during document creation. The validation check runs by default.

GoogleCloudContentwarehouseV1PropertyDefinitionResponse

DateTimeTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1DateTimeTypeOptionsResponse
Date time property. It is not supported by CMEK compliant deployment.
DisplayName This property is required. string
The display-name for the property, used for front-end.
EnumTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1EnumTypeOptionsResponse
Enum/categorical property.
FloatTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1FloatTypeOptionsResponse
Float property.
IntegerTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1IntegerTypeOptionsResponse
Integer property.
IsFilterable This property is required. bool
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
IsMetadata This property is required. bool
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
IsRepeatable This property is required. bool
Whether the property can have multiple values.
IsRequired This property is required. bool
Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
IsSearchable This property is required. bool
Indicates that the property should be included in a global search.
MapTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1MapTypeOptionsResponse
Map property.
Name This property is required. string
The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
PropertyTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
Nested structured data property.
RetrievalImportance This property is required. string
The retrieval importance of the property during search.
SchemaSources This property is required. List<Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse>
The mapping information between this property to another schema source.
TextTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1TextTypeOptionsResponse
Text/string property.
TimestampTypeOptions This property is required. Pulumi.GoogleNative.Contentwarehouse.V1.Inputs.GoogleCloudContentwarehouseV1TimestampTypeOptionsResponse
Timestamp property. It is not supported by CMEK compliant deployment.
DateTimeTypeOptions This property is required. GoogleCloudContentwarehouseV1DateTimeTypeOptionsResponse
Date time property. It is not supported by CMEK compliant deployment.
DisplayName This property is required. string
The display-name for the property, used for front-end.
EnumTypeOptions This property is required. GoogleCloudContentwarehouseV1EnumTypeOptionsResponse
Enum/categorical property.
FloatTypeOptions This property is required. GoogleCloudContentwarehouseV1FloatTypeOptionsResponse
Float property.
IntegerTypeOptions This property is required. GoogleCloudContentwarehouseV1IntegerTypeOptionsResponse
Integer property.
IsFilterable This property is required. bool
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
IsMetadata This property is required. bool
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
IsRepeatable This property is required. bool
Whether the property can have multiple values.
IsRequired This property is required. bool
Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
IsSearchable This property is required. bool
Indicates that the property should be included in a global search.
MapTypeOptions This property is required. GoogleCloudContentwarehouseV1MapTypeOptionsResponse
Map property.
Name This property is required. string
The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
PropertyTypeOptions This property is required. GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
Nested structured data property.
RetrievalImportance This property is required. string
The retrieval importance of the property during search.
SchemaSources This property is required. []GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse
The mapping information between this property to another schema source.
TextTypeOptions This property is required. GoogleCloudContentwarehouseV1TextTypeOptionsResponse
Text/string property.
TimestampTypeOptions This property is required. GoogleCloudContentwarehouseV1TimestampTypeOptionsResponse
Timestamp property. It is not supported by CMEK compliant deployment.
dateTimeTypeOptions This property is required. GoogleCloudContentwarehouseV1DateTimeTypeOptionsResponse
Date time property. It is not supported by CMEK compliant deployment.
displayName This property is required. String
The display-name for the property, used for front-end.
enumTypeOptions This property is required. GoogleCloudContentwarehouseV1EnumTypeOptionsResponse
Enum/categorical property.
floatTypeOptions This property is required. GoogleCloudContentwarehouseV1FloatTypeOptionsResponse
Float property.
integerTypeOptions This property is required. GoogleCloudContentwarehouseV1IntegerTypeOptionsResponse
Integer property.
isFilterable This property is required. Boolean
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
isMetadata This property is required. Boolean
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
isRepeatable This property is required. Boolean
Whether the property can have multiple values.
isRequired This property is required. Boolean
Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
isSearchable This property is required. Boolean
Indicates that the property should be included in a global search.
mapTypeOptions This property is required. GoogleCloudContentwarehouseV1MapTypeOptionsResponse
Map property.
name This property is required. String
The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
propertyTypeOptions This property is required. GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
Nested structured data property.
retrievalImportance This property is required. String
The retrieval importance of the property during search.
schemaSources This property is required. List<GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse>
The mapping information between this property to another schema source.
textTypeOptions This property is required. GoogleCloudContentwarehouseV1TextTypeOptionsResponse
Text/string property.
timestampTypeOptions This property is required. GoogleCloudContentwarehouseV1TimestampTypeOptionsResponse
Timestamp property. It is not supported by CMEK compliant deployment.
dateTimeTypeOptions This property is required. GoogleCloudContentwarehouseV1DateTimeTypeOptionsResponse
Date time property. It is not supported by CMEK compliant deployment.
displayName This property is required. string
The display-name for the property, used for front-end.
enumTypeOptions This property is required. GoogleCloudContentwarehouseV1EnumTypeOptionsResponse
Enum/categorical property.
floatTypeOptions This property is required. GoogleCloudContentwarehouseV1FloatTypeOptionsResponse
Float property.
integerTypeOptions This property is required. GoogleCloudContentwarehouseV1IntegerTypeOptionsResponse
Integer property.
isFilterable This property is required. boolean
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
isMetadata This property is required. boolean
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
isRepeatable This property is required. boolean
Whether the property can have multiple values.
isRequired This property is required. boolean
Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
isSearchable This property is required. boolean
Indicates that the property should be included in a global search.
mapTypeOptions This property is required. GoogleCloudContentwarehouseV1MapTypeOptionsResponse
Map property.
name This property is required. string
The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
propertyTypeOptions This property is required. GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
Nested structured data property.
retrievalImportance This property is required. string
The retrieval importance of the property during search.
schemaSources This property is required. GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse[]
The mapping information between this property to another schema source.
textTypeOptions This property is required. GoogleCloudContentwarehouseV1TextTypeOptionsResponse
Text/string property.
timestampTypeOptions This property is required. GoogleCloudContentwarehouseV1TimestampTypeOptionsResponse
Timestamp property. It is not supported by CMEK compliant deployment.
date_time_type_options This property is required. GoogleCloudContentwarehouseV1DateTimeTypeOptionsResponse
Date time property. It is not supported by CMEK compliant deployment.
display_name This property is required. str
The display-name for the property, used for front-end.
enum_type_options This property is required. GoogleCloudContentwarehouseV1EnumTypeOptionsResponse
Enum/categorical property.
float_type_options This property is required. GoogleCloudContentwarehouseV1FloatTypeOptionsResponse
Float property.
integer_type_options This property is required. GoogleCloudContentwarehouseV1IntegerTypeOptionsResponse
Integer property.
is_filterable This property is required. bool
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
is_metadata This property is required. bool
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
is_repeatable This property is required. bool
Whether the property can have multiple values.
is_required This property is required. bool
Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
is_searchable This property is required. bool
Indicates that the property should be included in a global search.
map_type_options This property is required. GoogleCloudContentwarehouseV1MapTypeOptionsResponse
Map property.
name This property is required. str
The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
property_type_options This property is required. GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
Nested structured data property.
retrieval_importance This property is required. str
The retrieval importance of the property during search.
schema_sources This property is required. Sequence[GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse]
The mapping information between this property to another schema source.
text_type_options This property is required. GoogleCloudContentwarehouseV1TextTypeOptionsResponse
Text/string property.
timestamp_type_options This property is required. GoogleCloudContentwarehouseV1TimestampTypeOptionsResponse
Timestamp property. It is not supported by CMEK compliant deployment.
dateTimeTypeOptions This property is required. Property Map
Date time property. It is not supported by CMEK compliant deployment.
displayName This property is required. String
The display-name for the property, used for front-end.
enumTypeOptions This property is required. Property Map
Enum/categorical property.
floatTypeOptions This property is required. Property Map
Float property.
integerTypeOptions This property is required. Property Map
Integer property.
isFilterable This property is required. Boolean
Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
isMetadata This property is required. Boolean
Whether the property is user supplied metadata. This out-of-the box placeholder setting can be used to tag derived properties. Its value and interpretation logic should be implemented by API user.
isRepeatable This property is required. Boolean
Whether the property can have multiple values.
isRequired This property is required. Boolean
Whether the property is mandatory. Default is 'false', i.e. populating property value can be skipped. If 'true' then user must populate the value for this property.
isSearchable This property is required. Boolean
Indicates that the property should be included in a global search.
mapTypeOptions This property is required. Property Map
Map property.
name This property is required. String
The name of the metadata property. Must be unique within a document schema and is case insensitive. Names must be non-blank, start with a letter, and can contain alphanumeric characters and: /, :, -, _, and .
propertyTypeOptions This property is required. Property Map
Nested structured data property.
retrievalImportance This property is required. String
The retrieval importance of the property during search.
schemaSources This property is required. List<Property Map>
The mapping information between this property to another schema source.
textTypeOptions This property is required. Property Map
Text/string property.
timestampTypeOptions This property is required. Property Map
Timestamp property. It is not supported by CMEK compliant deployment.

GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse

Name This property is required. string
The schema name in the source.
ProcessorType This property is required. string
The Doc AI processor type name.
Name This property is required. string
The schema name in the source.
ProcessorType This property is required. string
The Doc AI processor type name.
name This property is required. String
The schema name in the source.
processorType This property is required. String
The Doc AI processor type name.
name This property is required. string
The schema name in the source.
processorType This property is required. string
The Doc AI processor type name.
name This property is required. str
The schema name in the source.
processor_type This property is required. str
The Doc AI processor type name.
name This property is required. String
The schema name in the source.
processorType This property is required. String
The Doc AI processor type name.

GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse

PropertyDefinitions This property is required. []GoogleCloudContentwarehouseV1PropertyDefinitionResponse
List of property definitions.
propertyDefinitions This property is required. List<GoogleCloudContentwarehouseV1PropertyDefinitionResponse>
List of property definitions.
propertyDefinitions This property is required. GoogleCloudContentwarehouseV1PropertyDefinitionResponse[]
List of property definitions.
property_definitions This property is required. Sequence[GoogleCloudContentwarehouseV1PropertyDefinitionResponse]
List of property definitions.
propertyDefinitions This property is required. List<Property Map>
List of property definitions.

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