diff --git a/.changelog/16335.txt b/.changelog/16335.txt new file mode 100644 index 00000000000..cd01ed93107 --- /dev/null +++ b/.changelog/16335.txt @@ -0,0 +1,3 @@ +```release-note:new-resource +`google_vector_search_collection` +``` \ No newline at end of file diff --git a/.teamcity/components/inputs/services_beta.kt b/.teamcity/components/inputs/services_beta.kt index 05575eabbe3..a6827cb710c 100644 --- a/.teamcity/components/inputs/services_beta.kt +++ b/.teamcity/components/inputs/services_beta.kt @@ -861,6 +861,11 @@ var ServicesListBeta = mapOf( "displayName" to "Transcoder", "path" to "./google-beta/services/transcoder" ), + "vectorsearch" to mapOf( + "name" to "vectorsearch", + "displayName" to "VectorSearch", + "path" to "./google-beta/services/vectorsearch", + ), "vertexai" to mapOf( "name" to "vertexai", "displayName" to "Vertexai", diff --git a/.teamcity/components/inputs/services_ga.kt b/.teamcity/components/inputs/services_ga.kt index c8d98cd69b6..cd41de179d5 100644 --- a/.teamcity/components/inputs/services_ga.kt +++ b/.teamcity/components/inputs/services_ga.kt @@ -856,6 +856,11 @@ var ServicesListGa = mapOf( "displayName" to "Transcoder", "path" to "./google/services/transcoder" ), + "vectorsearch" to mapOf( + "name" to "vectorsearch", + "displayName" to "VectorSearch", + "path" to "./google/services/vectorsearch", + ), "vertexai" to mapOf( "name" to "vertexai", "displayName" to "Vertexai", diff --git a/google/services/vectorsearch/resource_vector_search_collection_test.go b/google/services/vectorsearch/resource_vector_search_collection_test.go new file mode 100644 index 00000000000..be4feb6fbdd --- /dev/null +++ b/google/services/vectorsearch/resource_vector_search_collection_test.go @@ -0,0 +1,17 @@ +// Copyright (c) HashiCorp, Inc. +// SPDX-License-Identifier: MPL-2.0 +// ---------------------------------------------------------------------------- +// +// *** AUTO GENERATED CODE *** Type: Handwritten *** +// +// ---------------------------------------------------------------------------- +// +// This code is generated by Magic Modules using the following: +// +// Source file: https://github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/third_party/terraform/services/vectorsearch/resource_vector_search_collection_test.go.tmpl +// +// DO NOT EDIT this file directly. Any changes made to this file will be +// overwritten during the next generation cycle. +// +// ---------------------------------------------------------------------------- +package vectorsearch_test diff --git a/website/docs/r/vector_search_collection.html.markdown b/website/docs/r/vector_search_collection.html.markdown new file mode 100644 index 00000000000..acf295ad12e --- /dev/null +++ b/website/docs/r/vector_search_collection.html.markdown @@ -0,0 +1,246 @@ +--- +# ---------------------------------------------------------------------------- +# +# *** AUTO GENERATED CODE *** Type: MMv1 *** +# +# ---------------------------------------------------------------------------- +# +# This code is generated by Magic Modules using the following: +# +# Configuration: https:#github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/products/vectorsearch/Collection.yaml +# Template: https:#github.com/GoogleCloudPlatform/magic-modules/tree/main/mmv1/templates/terraform/resource.html.markdown.tmpl +# +# DO NOT EDIT this file directly. Any changes made to this file will be +# overwritten during the next generation cycle. +# +# ---------------------------------------------------------------------------- +subcategory: "Vector Search" +description: |- + Description +--- + +# google_vector_search_collection + +Description + +~> **Warning:** This resource is in beta, and should be used with the terraform-provider-google-beta provider. +See [Provider Versions](../guides/provider_versions.html.markdown) for more details on beta resources. + + +
+## Example Usage - Vectorsearch Collection Basic + + +```hcl +resource "google_vector_search_collection" "example-collection" { + provider = google-beta + + location = "us-central1" + collection_id = "example-collection" + + display_name = "My Awesome Collection" + description = "This collection stores important data." + + labels = { + env = "dev" + team = "my-team" + } + + data_schema = <