Skip to content

Commit 5d45eb8

Browse files
Travis CI UserAnton Benkevich
authored andcommitted
Definitions Update assets_query
2 parents e53e9c4 + bf6b131 commit 5d45eb8

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

alsdkdefs/apis/assets_query/assets_query.v1.yaml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,8 @@ paths:
281281
- $ref: '#/components/parameters/ParamReturnCount'
282282
- $ref: '#/components/parameters/ParamReduce'
283283
- $ref: '#/components/parameters/ParamQFields'
284-
- $ref: '#/components/parameters/ParamAnything'
285-
- $ref: '#/components/parameters/ParamRelationship'
284+
- $ref: '#/components/parameters/ParamFilter'
285+
- $ref: '#/components/parameters/ParamFilterRelationship'
286286
get:
287287
operationId: query_assets
288288
summary: Query Assets for Account
@@ -349,8 +349,8 @@ paths:
349349
- $ref: '#/components/parameters/ParamReturnCount'
350350
- $ref: '#/components/parameters/ParamReduce'
351351
- $ref: '#/components/parameters/ParamQFields'
352-
- $ref: '#/components/parameters/ParamAnything'
353-
- $ref: '#/components/parameters/ParamRelationship'
352+
- $ref: '#/components/parameters/ParamFilter'
353+
- $ref: '#/components/parameters/ParamFilterRelationship'
354354
get:
355355
operationId: query_deployment_assets
356356
summary: Query Assets in Deployment
@@ -1213,17 +1213,24 @@ components:
12131213
Optional comma-separated list of fields to be returned as part of the objects. `key`, `type`
12141214
and `deployment_id` are always returned. Both `&qfields=object.field` and `&qfields=field`
12151215
are acceptable; in the latter case all objects will be filtered.
1216-
ParamAnything:
1216+
ParamFilter:
12171217
schema:
1218-
type: string
1218+
type: object
12191219
in: query
1220-
name: '{anything}'
1220+
style: form
1221+
example:
1222+
'host.key': "/aws/host/i-123456789"
1223+
'tag.tag_key': "Key"
1224+
name: filter
12211225
description: Filters and variables, as described in [Filtering assets](#filtering-assets).
1222-
ParamRelationship:
1226+
ParamFilterRelationship:
12231227
schema:
1224-
type: boolean
1228+
type: object
12251229
in: query
1226-
name: '{asset_type}..{related_asset_type}'
1230+
style: form
1231+
name: filter_relationships
1232+
example:
1233+
'region..vpc': "false"
12271234
description: |-
12281235
A constraint on the existence of a relationship between the given asset types. The lefthand
12291236
asset_type must be present in the `asset_types` parameter. If set to `true`, only rows

0 commit comments

Comments
 (0)