Skip to content

Commit b72afb0

Browse files
authored
Update CES Tool fields (#15782)
1 parent 8028aaf commit b72afb0

File tree

4 files changed

+316
-241
lines changed

4 files changed

+316
-241
lines changed

mmv1/products/ces/Tool.yaml

Lines changed: 160 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,41 @@ properties:
103103
type: NestedObject
104104
description: Represents a select subset of an OpenAPI 3.0 schema object.
105105
properties:
106+
- name: additionalProperties
107+
type: String
108+
description: |-
109+
Defines the schema for additional properties allowed in an object.
110+
The value must be a valid JSON string representing the Schema object.
111+
(Note: OpenAPI also allows a boolean, this definition expects a Schema JSON).
112+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
113+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
114+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
115+
validation:
116+
function: 'validation.StringIsJSON'
117+
- name: anyOf
118+
type: String
119+
description: The instance value should be valid against at least
120+
one of the schemas in this list.
121+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
122+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
123+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
124+
validation:
125+
function: 'validation.StringIsJSON'
126+
- name: default
127+
description: |-
128+
Default value of the data. Represents a dynamically typed value
129+
which can be either null, a number, a string, a boolean, a struct,
130+
or a list of values. The provided default value must be compatible
131+
with the defined 'type' and other schema constraints.
132+
- name: defs
133+
type: String
134+
description: A map of definitions for use by ref. Only allowed at the root
135+
of the schema.
136+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
137+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
138+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
139+
validation:
140+
function: 'validation.StringIsJSON'
106141
- name: description
107142
type: String
108143
description: The description of the data.
@@ -117,9 +152,45 @@ properties:
117152
{type:INTEGER, format:enum, enum:["101", "201", "301"]}
118153
item_type:
119154
type: String
155+
- name: items
156+
type: String
157+
description: Schema of the elements of Type.ARRAY.
158+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
159+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
160+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
161+
validation:
162+
function: 'validation.StringIsJSON'
163+
- name: maxItems
164+
type: Integer
165+
description: Maximum number of the elements for Type.ARRAY. (int64 format)
166+
- name: maximum
167+
type: Double
168+
description: Maximum value for Type.INTEGER and Type.NUMBER.
169+
- name: minItems
170+
type: Integer
171+
description: Minimum number of the elements for Type.ARRAY. (int64 format)
172+
- name: minimum
173+
type: Double
174+
description: Minimum value for Type.INTEGER and Type.NUMBER.
120175
- name: nullable
121176
type: Boolean
122177
description: Indicates if the value may be null.
178+
- name: prefixItems
179+
type: String
180+
description: Schemas of initial elements of Type.ARRAY.
181+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
182+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
183+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
184+
validation:
185+
function: 'validation.StringIsJSON'
186+
- name: properties
187+
type: String
188+
description: Properties of Type.OBJECT.
189+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
190+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
191+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
192+
validation:
193+
function: 'validation.StringIsJSON'
123194
- name: ref
124195
type: String
125196
description: |-
@@ -146,6 +217,9 @@ properties:
146217
description: Required properties of Type.OBJECT.
147218
item_type:
148219
type: String
220+
- name: title
221+
type: String
222+
description: The title of the schema.
149223
- name: type
150224
type: String
151225
description: |-
@@ -162,79 +236,45 @@ properties:
162236
type: Boolean
163237
description: Indicate the items in the array must be unique. Only applies
164238
to TYPE.ARRAY.
165-
- name: defs
166-
type: String
167-
description: A map of definitions for use by ref. Only allowed at the root
168-
of the schema.
169-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
170-
return s }'
171-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
172-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
173-
validation:
174-
function: 'validation.StringIsJSON'
175-
- name: default
176-
description: |-
177-
Optional. Default value of the data. Represents a dynamically typed value
178-
which can be either null, a number, a string, a boolean, a struct,
179-
or a list of values. The provided default value must be compatible
180-
with the defined 'type' and other schema constraints.
181-
required: false
239+
- name: response
240+
type: NestedObject
241+
description: Represents a select subset of an OpenAPI 3.0 schema object.
242+
properties:
182243
- name: additionalProperties
183244
type: String
184245
description: |-
185-
Optional. Defines the schema for additional properties allowed in an object.
246+
Defines the schema for additional properties allowed in an object.
186247
The value must be a valid JSON string representing the Schema object.
187248
(Note: OpenAPI also allows a boolean, this definition expects a Schema JSON).
188-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
189-
return s }'
249+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
190250
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
191251
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
192252
validation:
193253
function: 'validation.StringIsJSON'
194-
required: false
195254
- name: anyOf
196255
type: String
197-
description: Optional. The instance value should be valid against at least
256+
description: The instance value should be valid against at least
198257
one of the schemas in this list.
199-
required: false
200-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
201-
return s }'
258+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
202259
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
203260
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
204261
validation:
205262
function: 'validation.StringIsJSON'
206-
- name: prefixItems
207-
type: String
208-
description: Optional. Schemas of initial elements of Type.ARRAY.
209-
required: false
210-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
211-
return s }'
212-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
213-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
214-
validation:
215-
function: 'validation.StringIsJSON'
216-
- name: properties
217-
type: String
218-
description: Properties of Type.OBJECT.
219-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
220-
return s }'
221-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
222-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
223-
validation:
224-
function: 'validation.StringIsJSON'
225-
- name: items
263+
- name: default
264+
description: |-
265+
Default value of the data. Represents a dynamically typed value
266+
which can be either null, a number, a string, a boolean, a struct,
267+
or a list of values. The provided default value must be compatible
268+
with the defined 'type' and other schema constraints.
269+
- name: defs
226270
type: String
227-
description: Schema of the elements of Type.ARRAY.
228-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
229-
return s }'
271+
description: A map of definitions for use by ref. Only allowed at the root
272+
of the schema.
273+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
230274
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
231275
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
232276
validation:
233277
function: 'validation.StringIsJSON'
234-
- name: response
235-
type: NestedObject
236-
description: Represents a select subset of an OpenAPI 3.0 schema object.
237-
properties:
238278
- name: description
239279
type: String
240280
description: The description of the data.
@@ -249,9 +289,45 @@ properties:
249289
{type:INTEGER, format:enum, enum:["101", "201", "301"]}
250290
item_type:
251291
type: String
292+
- name: items
293+
type: String
294+
description: Schema of the elements of Type.ARRAY.
295+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
296+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
297+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
298+
validation:
299+
function: 'validation.StringIsJSON'
300+
- name: maxItems
301+
type: Integer
302+
description: Maximum number of the elements for Type.ARRAY. (int64 format)
303+
- name: maximum
304+
type: Double
305+
description: Maximum value for Type.INTEGER and Type.NUMBER.
306+
- name: minItems
307+
type: Integer
308+
description: Minimum number of the elements for Type.ARRAY. (int64 format)
309+
- name: minimum
310+
type: Double
311+
description: Minimum value for Type.INTEGER and Type.NUMBER.
252312
- name: nullable
253313
type: Boolean
254314
description: Indicates if the value may be null.
315+
- name: prefixItems
316+
type: String
317+
description: Schemas of initial elements of Type.ARRAY.
318+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
319+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
320+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
321+
validation:
322+
function: 'validation.StringIsJSON'
323+
- name: properties
324+
type: String
325+
description: Properties of Type.OBJECT.
326+
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v); return s }'
327+
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
328+
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
329+
validation:
330+
function: 'validation.StringIsJSON'
255331
- name: ref
256332
type: String
257333
description: |-
@@ -278,6 +354,9 @@ properties:
278354
description: Required properties of Type.OBJECT.
279355
item_type:
280356
type: String
357+
- name: title
358+
type: String
359+
description: The title of the schema.
281360
- name: type
282361
type: String
283362
description: |-
@@ -294,75 +373,6 @@ properties:
294373
type: Boolean
295374
description: Indicate the items in the array must be unique. Only applies
296375
to TYPE.ARRAY.
297-
- name: defs
298-
type: String
299-
description: A map of definitions for use by ref. Only allowed at the root
300-
of the schema.
301-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
302-
return s }'
303-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
304-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
305-
validation:
306-
function: 'validation.StringIsJSON'
307-
- name: default
308-
description: |-
309-
Optional. Default value of the data. Represents a dynamically typed value
310-
which can be either null, a number, a string, a boolean, a struct,
311-
or a list of values. The provided default value must be compatible
312-
with the defined 'type' and other schema constraints.
313-
required: false
314-
- name: additionalProperties
315-
type: String
316-
description: |-
317-
Optional. Defines the schema for additional properties allowed in an object.
318-
The value must be a valid JSON string representing the Schema object.
319-
(Note: OpenAPI also allows a boolean, this definition expects a Schema JSON).
320-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
321-
return s }'
322-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
323-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
324-
validation:
325-
function: 'validation.StringIsJSON'
326-
required: false
327-
- name: anyOf
328-
type: String
329-
description: Optional. The instance value should be valid against at least
330-
one of the schemas in this list.
331-
required: false
332-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
333-
return s }'
334-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
335-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
336-
validation:
337-
function: 'validation.StringIsJSON'
338-
- name: prefixItems
339-
type: String
340-
description: Optional. Schemas of initial elements of Type.ARRAY.
341-
required: false
342-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
343-
return s }'
344-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
345-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
346-
validation:
347-
function: 'validation.StringIsJSON'
348-
- name: properties
349-
type: String
350-
description: Properties of Type.OBJECT.
351-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
352-
return s }'
353-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
354-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
355-
validation:
356-
function: 'validation.StringIsJSON'
357-
- name: items
358-
type: String
359-
description: Schema of the elements of Type.ARRAY.
360-
state_func: 'func(v interface{}) string { s, _ := structure.NormalizeJsonString(v);
361-
return s }'
362-
custom_flatten: 'templates/terraform/custom_flatten/json_schema.tmpl'
363-
custom_expand: 'templates/terraform/custom_expand/json_value.tmpl'
364-
validation:
365-
function: 'validation.StringIsJSON'
366376
- name: createTime
367377
type: String
368378
description: Timestamp when the tool was created.
@@ -705,6 +715,14 @@ properties:
705715
See
706716
https://cloud.google.com/vertex-ai/generative-ai/docs/grounding/grounding-with-google-search.
707717
properties:
718+
- name: contextUrls
719+
type: Array
720+
description: |-
721+
Content will be fetched directly from these URLs for context and grounding.
722+
More details: https://cloud.google.com/vertex-ai/generative-ai/docs/url-context.
723+
Example: "https://example.com/path.html". A maximum of 20 URLs are allowed.
724+
item_type:
725+
type: String
708726
- name: description
709727
type: String
710728
description: Description of the tool's purpose.
@@ -720,6 +738,18 @@ properties:
720738
type: String
721739
description: The name of the tool.
722740
required: true
741+
- name: preferredDomains
742+
type: Array
743+
description: |-
744+
Specifies domain names to guide the search.
745+
The model will be instructed to prioritize these domains
746+
when formulating queries for google search.
747+
This is a best-effort hint and these domains may or may
748+
not be exclusively reflected in the final search results.
749+
Example: "example.com", "another.site".
750+
A maximum of 20 domains can be specified.
751+
item_type:
752+
type: String
723753
- name: name
724754
type: String
725755
description: |-
@@ -766,6 +796,15 @@ properties:
766796
HEADER
767797
QUERY_STRING
768798
output: true
799+
- name: bearerTokenConfig
800+
type: NestedObject
801+
description: Configurations for authentication with a bearer token.
802+
output: true
803+
properties:
804+
- name: token
805+
type: String
806+
description: The bearer token. Must be in the format $context.variables.<name_of_variable>.
807+
output: true
769808
- name: oauthConfig
770809
type: NestedObject
771810
description: Configurations for authentication with OAuth.

0 commit comments

Comments
 (0)