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 dictionary
The following arguments are supported:
- Document
Schema Id This property is required. string - Location
This property is required. string - Project string
- Document
Schema Id This property is required. string - Location
This property is required. string - Project string
- document
Schema Id This property is required. String - location
This property is required. String - project String
- document
Schema Id 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
- document
Schema Id This property is required. String - location
This property is required. String - project String
getDocumentSchema Result
The following output properties are available:
- Create
Time string - The time when the document schema is created.
- Description string
- Schema description.
- Display
Name string - 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 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.
- Property
Definitions List<Pulumi.Google Native. Contentwarehouse. V1. Outputs. Google Cloud Contentwarehouse V1Property Definition Response> - Document details.
- Update
Time string - The time when the document schema is last updated.
- Create
Time string - The time when the document schema is created.
- Description string
- Schema description.
- Display
Name string - 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 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.
- Property
Definitions []GoogleCloud Contentwarehouse V1Property Definition Response - Document details.
- Update
Time string - The time when the document schema is last updated.
- create
Time String - The time when the document schema is created.
- description String
- Schema description.
- display
Name String - Name of the schema given by the user. Must be unique per project.
- document
Is 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.
- property
Definitions List<GoogleCloud Contentwarehouse V1Property Definition Response> - Document details.
- update
Time String - The time when the document schema is last updated.
- create
Time string - The time when the document schema is created.
- description string
- Schema description.
- display
Name string - Name of the schema given by the user. Must be unique per project.
- document
Is 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.
- property
Definitions GoogleCloud Contentwarehouse V1Property Definition Response[] - Document details.
- update
Time 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.
- create
Time String - The time when the document schema is created.
- description String
- Schema description.
- display
Name String - Name of the schema given by the user. Must be unique per project.
- document
Is 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.
- property
Definitions List<Property Map> - Document details.
- update
Time String - The time when the document schema is last updated.
Supporting Types
GoogleCloudContentwarehouseV1EnumTypeOptionsResponse
- Possible
Values This property is required. List<string> - 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.
- Possible
Values This property is required. []string - 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.
- possible
Values This property is required. List<String> - List of possible enum values.
- validation
Check Disabled 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. string[] - List of possible enum values.
- validation
Check Disabled 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.
- possible
Values This property is required. List<String> - List of possible enum values.
- validation
Check Disabled 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
- Date
Time Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Date Time Type Options Response - Date time property. It is not supported by CMEK compliant deployment.
- Display
Name This property is required. string - The display-name for the property, used for front-end.
- Enum
Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Enum Type Options Response - Enum/categorical property.
- Float
Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Float Type Options Response - Float property.
- Integer
Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Integer Type Options Response - 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. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Map Type Options Response - 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 .
- Property
Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- Retrieval
Importance This property is required. string - The retrieval importance of the property during search.
- Schema
Sources This property is required. 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.
- Text
Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Text Type Options Response - Text/string property.
- Timestamp
Type Options This property is required. Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Timestamp Type Options Response - Timestamp property. It is not supported by CMEK compliant deployment.
- Date
Time Type Options This property is required. GoogleCloud Contentwarehouse V1Date Time Type Options Response - Date time property. It is not supported by CMEK compliant deployment.
- Display
Name This property is required. string - The display-name for the property, used for front-end.
- Enum
Type Options This property is required. GoogleCloud Contentwarehouse V1Enum Type Options Response - Enum/categorical property.
- Float
Type Options This property is required. GoogleCloud Contentwarehouse V1Float Type Options Response - Float property.
- Integer
Type Options This property is required. GoogleCloud Contentwarehouse V1Integer Type Options Response - 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. GoogleCloud Contentwarehouse V1Map Type Options Response - 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 .
- Property
Type Options This property is required. GoogleCloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- Retrieval
Importance This property is required. string - The retrieval importance of the property during search.
- Schema
Sources This property is required. []GoogleCloud Contentwarehouse V1Property Definition Schema Source Response - The mapping information between this property to another schema source.
- Text
Type Options This property is required. GoogleCloud Contentwarehouse V1Text Type Options Response - Text/string property.
- Timestamp
Type Options This property is required. GoogleCloud Contentwarehouse V1Timestamp Type Options Response - Timestamp property. It is not supported by CMEK compliant deployment.
- date
Time Type Options This property is required. GoogleCloud Contentwarehouse V1Date Time Type Options Response - Date time property. It is not supported by CMEK compliant deployment.
- display
Name This property is required. String - The display-name for the property, used for front-end.
- enum
Type Options This property is required. GoogleCloud Contentwarehouse V1Enum Type Options Response - Enum/categorical property.
- float
Type Options This property is required. GoogleCloud Contentwarehouse V1Float Type Options Response - Float property.
- integer
Type Options This property is required. GoogleCloud Contentwarehouse V1Integer Type Options Response - Integer property.
- is
Filterable 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.
- is
Metadata 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.
- is
Repeatable This property is required. Boolean - Whether the property can have multiple values.
- is
Required 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.
- is
Searchable This property is required. Boolean - Indicates that the property should be included in a global search.
- map
Type Options This property is required. GoogleCloud Contentwarehouse V1Map Type Options Response - 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 .
- property
Type Options This property is required. GoogleCloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- retrieval
Importance This property is required. String - The retrieval importance of the property during search.
- schema
Sources This property is required. List<GoogleCloud Contentwarehouse V1Property Definition Schema Source Response> - The mapping information between this property to another schema source.
- text
Type Options This property is required. GoogleCloud Contentwarehouse V1Text Type Options Response - Text/string property.
- timestamp
Type Options This property is required. GoogleCloud Contentwarehouse V1Timestamp Type Options Response - Timestamp property. It is not supported by CMEK compliant deployment.
- date
Time Type Options This property is required. GoogleCloud Contentwarehouse V1Date Time Type Options Response - Date time property. It is not supported by CMEK compliant deployment.
- display
Name This property is required. string - The display-name for the property, used for front-end.
- enum
Type Options This property is required. GoogleCloud Contentwarehouse V1Enum Type Options Response - Enum/categorical property.
- float
Type Options This property is required. GoogleCloud Contentwarehouse V1Float Type Options Response - Float property.
- integer
Type Options This property is required. GoogleCloud Contentwarehouse V1Integer Type Options Response - Integer property.
- is
Filterable 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.
- is
Metadata 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.
- is
Repeatable This property is required. boolean - Whether the property can have multiple values.
- is
Required 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.
- is
Searchable This property is required. boolean - Indicates that the property should be included in a global search.
- map
Type Options This property is required. GoogleCloud Contentwarehouse V1Map Type Options Response - 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 .
- property
Type Options This property is required. GoogleCloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- retrieval
Importance This property is required. string - The retrieval importance of the property during search.
- schema
Sources This property is required. GoogleCloud Contentwarehouse V1Property Definition Schema Source Response[] - The mapping information between this property to another schema source.
- text
Type Options This property is required. GoogleCloud Contentwarehouse V1Text Type Options Response - Text/string property.
- timestamp
Type Options This property is required. GoogleCloud Contentwarehouse V1Timestamp Type Options Response - Timestamp property. It is not supported by CMEK compliant deployment.
- date_
time_ type_ options This property is required. GoogleCloud Contentwarehouse V1Date Time Type Options Response - 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. GoogleCloud Contentwarehouse V1Enum Type Options Response - Enum/categorical property.
- float_
type_ options This property is required. GoogleCloud Contentwarehouse V1Float Type Options Response - Float property.
- integer_
type_ options This property is required. GoogleCloud Contentwarehouse V1Integer Type Options Response - 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. GoogleCloud Contentwarehouse V1Map Type Options Response - 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. GoogleCloud Contentwarehouse V1Property Type Options Response - 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[GoogleCloud Contentwarehouse V1Property Definition Schema Source Response] - The mapping information between this property to another schema source.
- text_
type_ options This property is required. GoogleCloud Contentwarehouse V1Text Type Options Response - Text/string property.
- timestamp_
type_ options This property is required. GoogleCloud Contentwarehouse V1Timestamp Type Options Response - Timestamp property. It is not supported by CMEK compliant deployment.
- date
Time Type Options This property is required. Property Map - Date time property. It is not supported by CMEK compliant deployment.
- display
Name This property is required. String - The display-name for the property, used for front-end.
- enum
Type Options This property is required. Property Map - Enum/categorical property.
- float
Type Options This property is required. Property Map - Float property.
- integer
Type Options This property is required. Property Map - Integer property.
- is
Filterable 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.
- is
Metadata 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.
- is
Repeatable This property is required. Boolean - Whether the property can have multiple values.
- is
Required 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.
- is
Searchable This property is required. Boolean - Indicates that the property should be included in a global search.
- map
Type Options 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 .
- property
Type Options This property is required. Property Map - Nested structured data property.
- retrieval
Importance This property is required. String - The retrieval importance of the property during search.
- schema
Sources This property is required. List<Property Map> - The mapping information between this property to another schema source.
- text
Type Options This property is required. Property Map - Text/string property.
- timestamp
Type Options 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.
- Processor
Type This property is required. string - The Doc AI processor type name.
- Name
This property is required. string - The schema name in the source.
- Processor
Type This property is required. string - The Doc AI processor type name.
- name
This property is required. String - The schema name in the source.
- processor
Type This property is required. String - The Doc AI processor type name.
- name
This property is required. string - The schema name in the source.
- processor
Type 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.
- processor
Type This property is required. String - The Doc AI processor type name.
GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
- Property
Definitions This property is required. List<Pulumi.Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Property Definition Response> - List of property definitions.
- Property
Definitions This property is required. []GoogleCloud Contentwarehouse V1Property Definition Response - List of property definitions.
- property
Definitions This property is required. List<GoogleCloud Contentwarehouse V1Property Definition Response> - List of property definitions.
- property
Definitions This property is required. GoogleCloud Contentwarehouse V1Property Definition Response[] - List of property definitions.
- property_
definitions This property is required. Sequence[GoogleCloud Contentwarehouse V1Property Definition Response] - List of property definitions.
- property
Definitions 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