Skip to content

Commit

Permalink
updated DataStore.yaml to add 'advancedSiteSearchConfig' (#12753)
Browse files Browse the repository at this point in the history
  • Loading branch information
SDonkelaarGDD authored Jan 14, 2025
1 parent 0cfba15 commit f796dce
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions mmv1/products/discoveryengine/DataStore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ examples:
vars:
data_store_id: 'data-store-id'
exclude_docs: true
- name: 'discoveryengine_datastore_advanced_site_search_config'
primary_resource_id: 'advanced_site_search_config'
primary_resource_name: 'fmt.Sprintf("tf_test_data_store%s", context["random_suffix"])'
vars:
data_store_id: 'data-store-id'
parameters:
- name: 'location'
type: String
Expand Down Expand Up @@ -157,6 +162,21 @@ properties:
- 'NO_CONTENT'
- 'CONTENT_REQUIRED'
- 'PUBLIC_WEBSITE'
- name: 'advancedSiteSearchConfig'
type: NestedObject
description: |
Configuration data for advance site search.
required: false
immutable: true
properties:
- name: 'disableInitialIndex'
type: Boolean
description: If set true, initial indexing is disabled for the DataStore.
required: false
- name: 'disableAutomaticRefresh'
type: Boolean
description: If set true, automatic refresh is disabled for the DataStore.
required: false
- name: 'documentProcessingConfig'
type: NestedObject
description: |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
resource "google_discovery_engine_data_store" "advanced_site_search_config" {
location = "global"
data_store_id = "{{index $.Vars "data_store_id"}}"
display_name = "tf-test-advanced-site-search-config-datastore"
industry_vertical = "GENERIC"
content_config = "PUBLIC_WEBSITE"
solution_types = ["SOLUTION_TYPE_CHAT"]
create_advanced_site_search = true
skip_default_schema_creation = false

advanced_site_search_config {
disable_initial_index = true
disable_automatic_refresh = true
}
}

0 comments on commit f796dce

Please sign in to comment.