Skip to content

Commit

Permalink
fix(vertexai): make contents_delta_uri a required field in `google_ve…
Browse files Browse the repository at this point in the history
…rtex_ai_index` (#9066) (#6374)

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Sep 25, 2023
1 parent a23672e commit 78f1565
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .changelog/9066.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
vertexai: made `contents_delta_uri` a required field in `google_vertex_ai_index` as omitting it would result in an error
```
20 changes: 10 additions & 10 deletions google-beta/services/vertexai/resource_vertex_ai_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ func ResourceVertexAIIndex() *schema.Resource {
MaxItems: 1,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"contents_delta_uri": {
Type: schema.TypeString,
Required: true,
Description: `Allows inserting, updating or deleting the contents of the Matching Engine Index.
The string must be a valid Cloud Storage directory path. If this
field is set when calling IndexService.UpdateIndex, then no other
Index field can be also updated as part of the same call.
The expected structure and format of the files this URI points to is
described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format`,
},
"config": {
Type: schema.TypeList,
Optional: true,
Expand Down Expand Up @@ -179,16 +189,6 @@ The shard size must be specified when creating an index. The value must be one o
},
},
},
"contents_delta_uri": {
Type: schema.TypeString,
Optional: true,
Description: `Allows inserting, updating or deleting the contents of the Matching Engine Index.
The string must be a valid Cloud Storage directory path. If this
field is set when calling IndexService.UpdateIndex, then no other
Index field can be also updated as part of the same call.
The expected structure and format of the files this URI points to is
described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format`,
},
"is_complete_overwrite": {
Type: schema.TypeBool,
Optional: true,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/vertex_ai_index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ The following arguments are supported:
<a name="nested_metadata"></a>The `metadata` block supports:

* `contents_delta_uri` -
(Optional)
(Required)
Allows inserting, updating or deleting the contents of the Matching Engine Index.
The string must be a valid Cloud Storage directory path. If this
field is set when calling IndexService.UpdateIndex, then no other
Expand Down

0 comments on commit 78f1565

Please sign in to comment.