Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mmv1/products/vertexai/Index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ async:
resource_inside_response: true
custom_code:
custom_update: 'templates/terraform/custom_update/vertex_ai_index.go.tmpl'
sweeper:
identifier_field: 'displayName'
examples:
- name: 'vertex_ai_index'
min_version: beta
Expand Down
13 changes: 9 additions & 4 deletions mmv1/products/vertexai/IndexEndpoint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ async:
base_url: '{{op_id}}'
result:
resource_inside_response: true
custom_code:
test_constants: 'templates/terraform/test_constants/import_tpgcompute.go.tmpl'
sweeper:
identifier_field: 'displayName'
examples:
- name: 'vertex_ai_index_endpoint'
primary_resource_id: 'index_endpoint'
Expand All @@ -49,22 +49,27 @@ examples:
vars:
network_name: 'network-name'
kms_key_name: 'kms-name'
index_endpoint_display_name: 'sample-endpoint'
test_vars_overrides:
'network_name': 'acctest.BootstrapSharedServiceNetworkingConnection(t, "vpc-network-1")'
'kms_key_name': 'acctest.BootstrapKMSKeyInLocation(t, "us-central1").CryptoKey.Name'
exclude_docs: true
min_version: beta
- name: 'vertex_ai_index_endpoint_with_psc'
primary_resource_id: 'index_endpoint'
vars:
index_endpoint_display_name: 'sample-endpoint'
- name: 'vertex_ai_index_endpoint_with_false_psc'
primary_resource_id: 'index_endpoint'
# It's not distinguishable if the psc is false or not set, so we need to skip the test.
exclude_import_test: true
exclude_docs: true
vars:
index_endpoint_display_name: 'sample-endpoint'
- name: 'vertex_ai_index_endpoint_with_public_endpoint'
primary_resource_id: 'index_endpoint'
test_vars_overrides:
'network_name': 'tpgcompute.BootstrapSharedTestNetwork(t, "vertex-ai-index-endpoint")'
vars:
index_endpoint_display_name: 'sample-endpoint'
parameters:
- name: 'region'
type: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ resource "google_kms_crypto_key_iam_member" "vertexai_encrypterdecrypter" {

resource "google_vertex_ai_index_endpoint" "{{$.PrimaryResourceId}}" {
provider = google-beta
display_name = "sample-endpoint"
display_name = "{{index $.Vars "index_endpoint_display_name"}}"
description = "A sample vertex endpoint"
region = "us-central1"
labels = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_vertex_ai_index_endpoint" "{{$.PrimaryResourceId}}" {
display_name = "sample-endpoint"
display_name = "{{index $.Vars "index_endpoint_display_name"}}"
description = "A sample vertex endpoint"
region = "us-central1"
labels = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_vertex_ai_index_endpoint" "{{$.PrimaryResourceId}}" {
display_name = "sample-endpoint"
display_name = "{{index $.Vars "index_endpoint_display_name"}}"
description = "A sample vertex endpoint"
region = "us-central1"
labels = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "google_vertex_ai_index_endpoint" "{{$.PrimaryResourceId}}" {
display_name = "sample-endpoint"
display_name = "{{index $.Vars "index_endpoint_display_name"}}"
description = "A sample vertex endpoint with an public endpoint"
region = "us-central1"
labels = {
Expand Down
Loading