hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.29k stars 1.72k forks source link

Add support for starting schema on google_discovery_engine_data_store #18468

Open newtonnthiga opened 3 months ago

newtonnthiga commented 3 months ago

Community Note

Description

The google_discovery_engine_data_store resource doesn't seem to support the startingSchema field which is available on the API

New or Affected Resource(s)

Potential Terraform Configuration

resource "google_discovery_engine_data_store" "basic" {
  location                    = "global"
  data_store_id               = "data-store-id"
  display_name                = "tf-test-structured-datastore"
  industry_vertical           = "GENERIC"
  content_config              = "NO_CONTENT"
  solution_types              = ["SOLUTION_TYPE_SEARCH"]
  create_advanced_site_search = false
  starting_schema = jsonencode({
    "$schema" : "https://json-schema.org/draft/2020-12/schema",
    "type" : "object",
    "date_detection" : true,
    "properties" : {}
  })
}

References

No response

b/349125243

SarahFrench commented 2 months ago

Note from triage: this would require adding support for the startingSchema field in the API, and all its nested fields.