Skip to content

Commit 39c269e

Browse files
make contentsDeltaUri optional (#12637) (#20780)
[upstream:6ecab0edf6aabf9bd3386d9f39893efd801b6e27] Signed-off-by: Modular Magician <magic-modules@google.com>
1 parent 643bf3d commit 39c269e

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
lines changed

.changelog/12637.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
vertexai: made `contents_delta_uri` a optional field in `google_vertex_ai_index`
3+
```

google/services/vertexai/resource_vertex_ai_index.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,6 @@ Please refer to the field 'effective_labels' for all of the labels present on th
9090
MaxItems: 1,
9191
Elem: &schema.Resource{
9292
Schema: map[string]*schema.Schema{
93-
"contents_delta_uri": {
94-
Type: schema.TypeString,
95-
Required: true,
96-
Description: `Allows inserting, updating or deleting the contents of the Matching Engine Index.
97-
The string must be a valid Cloud Storage directory path. If this
98-
field is set when calling IndexService.UpdateIndex, then no other
99-
Index field can be also updated as part of the same call.
100-
The expected structure and format of the files this URI points to is
101-
described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format`,
102-
},
10393
"config": {
10494
Type: schema.TypeList,
10595
Optional: true,
@@ -199,6 +189,16 @@ The shard size must be specified when creating an index. The value must be one o
199189
},
200190
},
201191
},
192+
"contents_delta_uri": {
193+
Type: schema.TypeString,
194+
Optional: true,
195+
Description: `Allows inserting, updating or deleting the contents of the Matching Engine Index.
196+
The string must be a valid Cloud Storage directory path. If this
197+
field is set when calling IndexService.UpdateIndex, then no other
198+
Index field can be also updated as part of the same call.
199+
The expected structure and format of the files this URI points to is
200+
described at https://cloud.google.com/vertex-ai/docs/matching-engine/using-matching-engine#input-data-format`,
201+
},
202202
"is_complete_overwrite": {
203203
Type: schema.TypeBool,
204204
Optional: true,

website/docs/r/vertex_ai_index.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ The following arguments are supported:
161161
<a name="nested_metadata"></a>The `metadata` block supports:
162162

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

0 commit comments

Comments
 (0)