Skip to content

Commit

Permalink
make contentsDeltaUri optional (#12637)
Browse files Browse the repository at this point in the history
[upstream:6ecab0edf6aabf9bd3386d9f39893efd801b6e27]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician committed Dec 23, 2024
1 parent 643bf3d commit 72541c1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .changelog/12637.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
vertexai: made `contents_delta_uri` a optional field in `google_vertex_ai_index`
```
20 changes: 10 additions & 10 deletions google/services/vertexai/resource_vertex_ai_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,6 @@ Please refer to the field 'effective_labels' for all of the labels present on th
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 @@ -199,6 +189,16 @@ 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 @@ -161,7 +161,7 @@ The following arguments are supported:
<a name="nested_metadata"></a>The `metadata` block supports:

* `contents_delta_uri` -
(Required)
(Optional)
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 72541c1

Please sign in to comment.