Skip to content

Commit 18462fb

Browse files
feat(vertexai): add google_vertex_ai_index for Vertex AI Matching Engine (#6728) (#4923)
* feat: add google_vertex_ai_index for Vertex AI Matching Engine * fix: increase timeouts to 60 min because 20 wasn't enough for creation * fix: change coe to make name computed instead of an input * fix: use costom flatten code to ignore_read a nested property's field * fix: add skip_import_test: true to the auto-gen test * feat: add a test with a manually updated ImportStateVerifyIgnore * Apply suggestions from code review [ci skip] Update descriptions based on the suggestions Co-authored-by: Stephen Lewis (Burrows) <[email protected]> * refactor: use ignore_read_extra instead of a manual test * fix: use an empty object for bruteForceConfig * feat: define additional fields to api.yaml * feat: add an example to increase test coverage * feat: deal with contentsDeltaUri as an updatable field * fix: fix the error because the cosine distance type only supports unit l2 norm type This is the error message from the endpoint: "Index with `COSINE_DISTANCE` distanceMeasureType currently only supports `UNIT_L2_NORM` featureNormType." * feat: remove approximate_neighbors_count from an example with brute_force_config approximate_neighbors_count is required if tree-AH algorithm is used. from https://cloud.google.com/vertex-ai/docs/matching-engine/configuring-indexes#brute-force-config * test: add a handwritten test for patch * fix: add update_mask: true to use the mask as a url param * refactor: put 'input: true' on the fields patch couldn't update * feat: use custom pre update code for a nested object * fix: update the handwritten test accordingly * feat: add custom flatten code for is_complete_overwrite Co-authored-by: Stephen Lewis (Burrows) <[email protected]> Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]> Co-authored-by: Stephen Lewis (Burrows) <[email protected]>
1 parent e37a07f commit 18462fb

File tree

7 files changed

+1899
-2
lines changed

7 files changed

+1899
-2
lines changed

.changelog/6728.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-resource
2+
google_vertex_ai_index
3+
```

google-beta/provider.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,9 +1031,9 @@ func Provider() *schema.Provider {
10311031
return provider
10321032
}
10331033

1034-
// Generated resources: 284
1034+
// Generated resources: 285
10351035
// Generated IAM resources: 186
1036-
// Total generated resources: 470
1036+
// Total generated resources: 471
10371037
func ResourceMap() map[string]*schema.Resource {
10381038
resourceMap, _ := ResourceMapWithErrors()
10391039
return resourceMap
@@ -1510,6 +1510,7 @@ func ResourceMapWithErrors() (map[string]*schema.Resource, error) {
15101510
"google_vertex_ai_featurestore_entitytype_iam_policy": ResourceIamPolicy(VertexAIFeaturestoreEntitytypeIamSchema, VertexAIFeaturestoreEntitytypeIamUpdaterProducer, VertexAIFeaturestoreEntitytypeIdParseFunc),
15111511
"google_vertex_ai_featurestore_entitytype_feature": resourceVertexAIFeaturestoreEntitytypeFeature(),
15121512
"google_vertex_ai_metadata_store": resourceVertexAIMetadataStore(),
1513+
"google_vertex_ai_index": resourceVertexAIIndex(),
15131514
"google_vpc_access_connector": resourceVPCAccessConnector(),
15141515
"google_workflows_workflow": resourceWorkflowsWorkflow(),
15151516
},

0 commit comments

Comments
 (0)