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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:contentwarehouse/v1:getDocumentSchema
arguments:
# arguments dictionary
The following arguments are supported:
- Document
Schema stringId - Location string
- Project string
- Document
Schema stringId - Location string
- Project string
- document
Schema StringId - location String
- project String
- document
Schema stringId - location string
- project string
- document_
schema_ strid - location str
- project str
- document
Schema StringId - location 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 List<string> - 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.
- Possible
Values []string - 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.
- possible
Values List<String> - List of possible enum values.
- validation
Check 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 string[] - List of possible enum values.
- validation
Check 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.
- possible
Values List<String> - List of possible enum values.
- validation
Check 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
- Date
Time 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.
- Display
Name string - The display-name for the property, used for front-end.
- Enum
Type Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Enum Type Options Response - Enum/categorical property.
- Float
Type Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Float Type Options Response - Float property.
- Integer
Type Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google 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 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 .
- Property
Type Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- Retrieval
Importance string - The retrieval importance of the property during search.
- Schema
Sources 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 Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google Cloud Contentwarehouse V1Text Type Options Response - Text/string property.
- Timestamp
Type Pulumi.Options Google Native. Contentwarehouse. V1. Inputs. Google 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 string - 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 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 GoogleOptions Cloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- Retrieval
Importance string - The retrieval importance of the property during search.
- Schema
Sources []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.
- date
Time GoogleType Options Cloud Contentwarehouse V1Date Time Type Options Response - Date time property. It is not supported by CMEK compliant deployment.
- display
Name String - 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 Boolean - Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- is
Metadata 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 Boolean - Whether the property can have multiple values.
- 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 Boolean - Indicates that the property should be included in a global search.
- map
Type 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 .
- property
Type GoogleOptions Cloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- retrieval
Importance String - The retrieval importance of the property during search.
- schema
Sources List<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.
- date
Time GoogleType Options Cloud Contentwarehouse V1Date Time Type Options Response - Date time property. It is not supported by CMEK compliant deployment.
- display
Name string - 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 boolean - Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- is
Metadata 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 boolean - Whether the property can have multiple values.
- 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 boolean - Indicates that the property should be included in a global search.
- map
Type 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 .
- property
Type GoogleOptions Cloud Contentwarehouse V1Property Type Options Response - Nested structured data property.
- retrieval
Importance string - The retrieval importance of the property during search.
- schema
Sources 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.
- 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.
- date
Time Property MapType Options - Date time property. It is not supported by CMEK compliant deployment.
- display
Name String - The display-name for the property, used for front-end.
- enum
Type Property MapOptions - Enum/categorical property.
- float
Type Property MapOptions - Float property.
- integer
Type Property MapOptions - Integer property.
- is
Filterable Boolean - Whether the property can be filtered. If this is a sub-property, all the parent properties must be marked filterable.
- is
Metadata 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 Boolean - Whether the property can have multiple values.
- 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 Boolean - Indicates that the property should be included in a global search.
- map
Type 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 .
- property
Type Property MapOptions - Nested structured data property.
- retrieval
Importance String - The retrieval importance of the property during search.
- schema
Sources List<Property Map> - The mapping information between this property to another schema source.
- text
Type Property MapOptions - Text/string property.
- timestamp
Type Property MapOptions - Timestamp property. It is not supported by CMEK compliant deployment.
GoogleCloudContentwarehouseV1PropertyDefinitionSchemaSourceResponse
- Name string
- The schema name in the source.
- Processor
Type string - The Doc AI processor type name.
- Name string
- The schema name in the source.
- Processor
Type string - The Doc AI processor type name.
- name String
- The schema name in the source.
- processor
Type String - The Doc AI processor type name.
- name string
- The schema name in the source.
- processor
Type 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.
- processor
Type String - The Doc AI processor type name.
GoogleCloudContentwarehouseV1PropertyTypeOptionsResponse
- Property
Definitions []GoogleCloud Contentwarehouse V1Property Definition Response - List of property definitions.
- property
Definitions List<GoogleCloud Contentwarehouse V1Property Definition Response> - List of property definitions.
- property
Definitions GoogleCloud Contentwarehouse V1Property Definition Response[] - List of property definitions.
- property_
definitions Sequence[GoogleCloud Contentwarehouse V1Property Definition Response] - List of property definitions.
- property
Definitions 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