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>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]func LookupDocumentSchema(ctx *Context, args *LookupDocumentSchemaArgs, opts ...InvokeOption) (*LookupDocumentSchemaResult, error)
func LookupDocumentSchemaOutput(ctx *Context, args *LookupDocumentSchemaOutputArgs, opts ...InvokeOption) LookupDocumentSchemaResultOutput> 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)
}public static CompletableFuture<GetDocumentSchemaResult> getDocumentSchema(GetDocumentSchemaArgs args, InvokeOptions options)
public static Output<GetDocumentSchemaResult> getDocumentSchema(GetDocumentSchemaArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:contentwarehouse/v1:getDocumentSchema
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DocumentSchema stringId 
- Location string
- Project string
- DocumentSchema stringId 
- Location string
- Project string
- documentSchema StringId 
- location String
- project String
- documentSchema stringId 
- location string
- project string
- document_schema_ strid 
- location str
- project str
- documentSchema StringId 
- location 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.
- DocumentIs boolFolder 
- 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.Google Native. Contentwarehouse. V1. Outputs. Google Cloud Contentwarehouse V1Property Definition Response> 
- 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.
- DocumentIs boolFolder 
- 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 []GoogleCloud Contentwarehouse V1Property Definition Response 
- 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.
- documentIs BooleanFolder 
- 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<GoogleCloud Contentwarehouse V1Property Definition Response> 
- 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.
- documentIs booleanFolder 
- 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 GoogleCloud Contentwarehouse V1Property Definition Response[] 
- 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_ boolfolder 
- 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[GoogleCloud Contentwarehouse V1Property Definition Response] 
- 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.
- documentIs BooleanFolder 
- 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 List<string>
- List of possible enum values.
- ValidationCheck boolDisabled 
- 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 []string
- List of possible enum values.
- ValidationCheck boolDisabled 
- 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 List<String>
- List of possible enum values.
- validationCheck BooleanDisabled 
- 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 string[]
- List of possible enum values.
- validationCheck booleanDisabled 
- 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 Sequence[str]
- List of possible enum values.
- validation_check_ booldisabled 
- 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 List<String>
- List of possible enum values.
- validationCheck BooleanDisabled 
- 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     
- DateTime Pulumi.Type Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Date Time Type Options Response 
- Date time property. It is not supported by CMEK compliant deployment.
- DisplayName string
- The display-name for the property, used for front-end.
- EnumType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Enum Type Options Response 
- Enum/categorical property.
- FloatType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Float Type Options Response 
- Float property.
- IntegerType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Integer Type Options Response 
- Integer property.
- IsFilterable bool
- Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- IsMetadata 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 bool
- Whether the property can have multiple values.
- IsRequired 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 bool
- Indicates that the property should be included in a global search.
- MapType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Map Type Options Response 
- Map property.
- Name 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 .
- PropertyType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Property Type Options Response 
- Nested structured data property.
- RetrievalImportance string
- The retrieval importance of the property during search.
- SchemaSources List<Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Property Definition Schema Source Response> 
- The mapping information between this property to another schema source.
- TextType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Text Type Options Response 
- Text/string property.
- TimestampType Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Timestamp Type Options Response 
- Timestamp property. It is not supported by CMEK compliant deployment.
- DateTime GoogleType Options Cloud Contentwarehouse V1Date Time Type Options Response 
- Date time property. It is not supported by CMEK compliant deployment.
- DisplayName string
- The display-name for the property, used for front-end.
- EnumType GoogleOptions Cloud Contentwarehouse V1Enum Type Options Response 
- Enum/categorical property.
- FloatType GoogleOptions Cloud Contentwarehouse V1Float Type Options Response 
- Float property.
- IntegerType GoogleOptions Cloud Contentwarehouse V1Integer Type Options Response 
- Integer property.
- IsFilterable bool
- Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- IsMetadata 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 bool
- Whether the property can have multiple values.
- IsRequired 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 bool
- Indicates that the property should be included in a global search.
- MapType GoogleOptions Cloud Contentwarehouse V1Map Type Options Response 
- Map property.
- Name 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 .
- PropertyType GoogleOptions Cloud Contentwarehouse V1Property Type Options Response 
- Nested structured data property.
- RetrievalImportance string
- The retrieval importance of the property during search.
- SchemaSources []GoogleCloud Contentwarehouse V1Property Definition Schema Source Response 
- The mapping information between this property to another schema source.
- TextType GoogleOptions Cloud Contentwarehouse V1Text Type Options Response 
- Text/string property.
- TimestampType GoogleOptions Cloud Contentwarehouse V1Timestamp Type Options Response 
- Timestamp property. It is not supported by CMEK compliant deployment.
- dateTime GoogleType Options Cloud Contentwarehouse V1Date Time Type Options Response 
- Date time property. It is not supported by CMEK compliant deployment.
- displayName String
- The display-name for the property, used for front-end.
- enumType GoogleOptions Cloud Contentwarehouse V1Enum Type Options Response 
- Enum/categorical property.
- floatType GoogleOptions Cloud Contentwarehouse V1Float Type Options Response 
- Float property.
- integerType GoogleOptions Cloud Contentwarehouse V1Integer Type Options Response 
- Integer property.
- isFilterable Boolean
- Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- isMetadata 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 Boolean
- Whether the property can have multiple values.
- isRequired 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 Boolean
- Indicates that the property should be included in a global search.
- mapType GoogleOptions Cloud Contentwarehouse V1Map Type Options Response 
- Map property.
- name 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 .
- propertyType GoogleOptions Cloud Contentwarehouse V1Property Type Options Response 
- Nested structured data property.
- retrievalImportance String
- The retrieval importance of the property during search.
- schemaSources List<GoogleCloud Contentwarehouse V1Property Definition Schema Source Response> 
- The mapping information between this property to another schema source.
- textType GoogleOptions Cloud Contentwarehouse V1Text Type Options Response 
- Text/string property.
- timestampType GoogleOptions Cloud Contentwarehouse V1Timestamp Type Options Response 
- Timestamp property. It is not supported by CMEK compliant deployment.
- dateTime GoogleType Options Cloud Contentwarehouse V1Date Time Type Options Response 
- Date time property. It is not supported by CMEK compliant deployment.
- displayName string
- The display-name for the property, used for front-end.
- enumType GoogleOptions Cloud Contentwarehouse V1Enum Type Options Response 
- Enum/categorical property.
- floatType GoogleOptions Cloud Contentwarehouse V1Float Type Options Response 
- Float property.
- integerType GoogleOptions Cloud Contentwarehouse V1Integer Type Options Response 
- Integer property.
- isFilterable boolean
- Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- isMetadata 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 boolean
- Whether the property can have multiple values.
- isRequired 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 boolean
- Indicates that the property should be included in a global search.
- mapType GoogleOptions Cloud Contentwarehouse V1Map Type Options Response 
- Map property.
- name 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 .
- propertyType GoogleOptions Cloud Contentwarehouse V1Property Type Options Response 
- Nested structured data property.
- retrievalImportance string
- The retrieval importance of the property during search.
- schemaSources GoogleCloud Contentwarehouse V1Property Definition Schema Source Response[] 
- The mapping information between this property to another schema source.
- textType GoogleOptions Cloud Contentwarehouse V1Text Type Options Response 
- Text/string property.
- timestampType GoogleOptions Cloud Contentwarehouse V1Timestamp Type Options Response 
- Timestamp property. It is not supported by CMEK compliant deployment.
- date_time_ Googletype_ options Cloud Contentwarehouse V1Date Time Type Options Response 
- Date time property. It is not supported by CMEK compliant deployment.
- display_name str
- The display-name for the property, used for front-end.
- enum_type_ Googleoptions Cloud Contentwarehouse V1Enum Type Options Response 
- Enum/categorical property.
- float_type_ Googleoptions Cloud Contentwarehouse V1Float Type Options Response 
- Float property.
- integer_type_ Googleoptions Cloud Contentwarehouse V1Integer Type Options Response 
- Integer property.
- is_filterable bool
- Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- is_metadata 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 bool
- Whether the property can have multiple values.
- 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 bool
- Indicates that the property should be included in a global search.
- map_type_ Googleoptions Cloud Contentwarehouse V1Map Type Options Response 
- Map property.
- name 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_ Googleoptions Cloud Contentwarehouse V1Property Type Options Response 
- Nested structured data property.
- retrieval_importance str
- The retrieval importance of the property during search.
- schema_sources Sequence[GoogleCloud Contentwarehouse V1Property Definition Schema Source Response] 
- The mapping information between this property to another schema source.
- text_type_ Googleoptions Cloud Contentwarehouse V1Text Type Options Response 
- Text/string property.
- timestamp_type_ Googleoptions Cloud Contentwarehouse V1Timestamp Type Options Response 
- Timestamp property. It is not supported by CMEK compliant deployment.
- dateTime Property MapType Options 
- Date time property. It is not supported by CMEK compliant deployment.
- displayName String
- The display-name for the property, used for front-end.
- enumType Property MapOptions 
- Enum/categorical property.
- floatType Property MapOptions 
- Float property.
- integerType Property MapOptions 
- Integer property.
- isFilterable Boolean
- Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- isMetadata 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 Boolean
- Whether the property can have multiple values.
- isRequired 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 Boolean
- Indicates that the property should be included in a global search.
- mapType Property MapOptions 
- Map property.
- name 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 .
- propertyType Property MapOptions 
- Nested structured data property.
- retrievalImportance String
- The retrieval importance of the property during search.
- schemaSources List<Property Map>
- The mapping information between this property to another schema source.
- textType Property MapOptions 
- Text/string property.
- timestampType Property MapOptions 
- Timestamp property. It is not supported by CMEK compliant deployment.
GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse       
- Name string
- The schema name in the source.
- ProcessorType string
- The Doc AI processor type name.
- Name string
- The schema name in the source.
- ProcessorType string
- The Doc AI processor type name.
- name String
- The schema name in the source.
- processorType String
- The Doc AI processor type name.
- name string
- The schema name in the source.
- processorType string
- The Doc AI processor type name.
- name str
- The schema name in the source.
- processor_type str
- The Doc AI processor type name.
- name String
- The schema name in the source.
- processorType String
- The Doc AI processor type name.
GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse      
- PropertyDefinitions []GoogleCloud Contentwarehouse V1Property Definition Response 
- List of property definitions.
- propertyDefinitions List<GoogleCloud Contentwarehouse V1Property Definition Response> 
- List of property definitions.
- propertyDefinitions GoogleCloud Contentwarehouse V1Property Definition Response[] 
- List of property definitions.
- property_definitions Sequence[GoogleCloud Contentwarehouse V1Property Definition Response] 
- List of property definitions.
- propertyDefinitions 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