Skip to content

Commit 61419ef

Browse files
author
msftbot[bot]
authored
[ReleasePR eventgrid] [Updating Swagger with missing properties]Adding missing advanced filters (#2096)
Create to sync Azure/azure-rest-api-specs#16997 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/main...AzureSDKAutomation:sdkAuto/eventgrid?expand=1)
2 parents 46d387c + 9301081 commit 61419ef

File tree

1 file changed

+202
-0
lines changed

1 file changed

+202
-0
lines changed

schemas/2021-12-01/Microsoft.EventGrid.json

Lines changed: 202 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,27 @@
472472
},
473473
{
474474
"$ref": "#/definitions/StringContainsAdvancedFilter"
475+
},
476+
{
477+
"$ref": "#/definitions/NumberInRangeAdvancedFilter"
478+
},
479+
{
480+
"$ref": "#/definitions/NumberNotInRangeAdvancedFilter"
481+
},
482+
{
483+
"$ref": "#/definitions/StringNotBeginsWithAdvancedFilter"
484+
},
485+
{
486+
"$ref": "#/definitions/StringNotEndsWithAdvancedFilter"
487+
},
488+
{
489+
"$ref": "#/definitions/StringNotContainsAdvancedFilter"
490+
},
491+
{
492+
"$ref": "#/definitions/IsNullOrUndefinedAdvancedFilter"
493+
},
494+
{
495+
"$ref": "#/definitions/IsNotNullAdvancedFilter"
475496
}
476497
],
477498
"properties": {
@@ -1301,6 +1322,36 @@
13011322
"properties": {},
13021323
"description": "By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'."
13031324
},
1325+
"IsNotNullAdvancedFilter": {
1326+
"type": "object",
1327+
"properties": {
1328+
"operatorType": {
1329+
"type": "string",
1330+
"enum": [
1331+
"IsNotNull"
1332+
]
1333+
}
1334+
},
1335+
"required": [
1336+
"operatorType"
1337+
],
1338+
"description": "IsNotNull Advanced Filter."
1339+
},
1340+
"IsNullOrUndefinedAdvancedFilter": {
1341+
"type": "object",
1342+
"properties": {
1343+
"operatorType": {
1344+
"type": "string",
1345+
"enum": [
1346+
"IsNullOrUndefined"
1347+
]
1348+
}
1349+
},
1350+
"required": [
1351+
"operatorType"
1352+
],
1353+
"description": "IsNullOrUndefined Advanced Filter."
1354+
},
13041355
"JsonField": {
13051356
"type": "object",
13061357
"properties": {
@@ -1504,6 +1555,38 @@
15041555
],
15051556
"description": "NumberIn Advanced Filter."
15061557
},
1558+
"NumberInRangeAdvancedFilter": {
1559+
"type": "object",
1560+
"properties": {
1561+
"operatorType": {
1562+
"type": "string",
1563+
"enum": [
1564+
"NumberInRange"
1565+
]
1566+
},
1567+
"values": {
1568+
"oneOf": [
1569+
{
1570+
"type": "array",
1571+
"items": {
1572+
"type": "array",
1573+
"items": {
1574+
"type": "number"
1575+
}
1576+
}
1577+
},
1578+
{
1579+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1580+
}
1581+
],
1582+
"description": "The set of filter values."
1583+
}
1584+
},
1585+
"required": [
1586+
"operatorType"
1587+
],
1588+
"description": "NumberInRange Advanced Filter."
1589+
},
15071590
"NumberLessThanAdvancedFilter": {
15081591
"type": "object",
15091592
"properties": {
@@ -1585,6 +1668,38 @@
15851668
],
15861669
"description": "NumberNotIn Advanced Filter."
15871670
},
1671+
"NumberNotInRangeAdvancedFilter": {
1672+
"type": "object",
1673+
"properties": {
1674+
"operatorType": {
1675+
"type": "string",
1676+
"enum": [
1677+
"NumberNotInRange"
1678+
]
1679+
},
1680+
"values": {
1681+
"oneOf": [
1682+
{
1683+
"type": "array",
1684+
"items": {
1685+
"type": "array",
1686+
"items": {
1687+
"type": "number"
1688+
}
1689+
}
1690+
},
1691+
{
1692+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
1693+
}
1694+
],
1695+
"description": "The set of filter values."
1696+
}
1697+
},
1698+
"required": [
1699+
"operatorType"
1700+
],
1701+
"description": "NumberNotInRange Advanced Filter."
1702+
},
15881703
"PrivateEndpoint": {
15891704
"type": "object",
15901705
"properties": {
@@ -2041,6 +2156,93 @@
20412156
],
20422157
"description": "StringIn Advanced Filter."
20432158
},
2159+
"StringNotBeginsWithAdvancedFilter": {
2160+
"type": "object",
2161+
"properties": {
2162+
"operatorType": {
2163+
"type": "string",
2164+
"enum": [
2165+
"StringNotBeginsWith"
2166+
]
2167+
},
2168+
"values": {
2169+
"oneOf": [
2170+
{
2171+
"type": "array",
2172+
"items": {
2173+
"type": "string"
2174+
}
2175+
},
2176+
{
2177+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
2178+
}
2179+
],
2180+
"description": "The set of filter values."
2181+
}
2182+
},
2183+
"required": [
2184+
"operatorType"
2185+
],
2186+
"description": "StringNotBeginsWith Advanced Filter."
2187+
},
2188+
"StringNotContainsAdvancedFilter": {
2189+
"type": "object",
2190+
"properties": {
2191+
"operatorType": {
2192+
"type": "string",
2193+
"enum": [
2194+
"StringNotContains"
2195+
]
2196+
},
2197+
"values": {
2198+
"oneOf": [
2199+
{
2200+
"type": "array",
2201+
"items": {
2202+
"type": "string"
2203+
}
2204+
},
2205+
{
2206+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
2207+
}
2208+
],
2209+
"description": "The set of filter values."
2210+
}
2211+
},
2212+
"required": [
2213+
"operatorType"
2214+
],
2215+
"description": "StringNotContains Advanced Filter."
2216+
},
2217+
"StringNotEndsWithAdvancedFilter": {
2218+
"type": "object",
2219+
"properties": {
2220+
"operatorType": {
2221+
"type": "string",
2222+
"enum": [
2223+
"StringNotEndsWith"
2224+
]
2225+
},
2226+
"values": {
2227+
"oneOf": [
2228+
{
2229+
"type": "array",
2230+
"items": {
2231+
"type": "string"
2232+
}
2233+
},
2234+
{
2235+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
2236+
}
2237+
],
2238+
"description": "The set of filter values."
2239+
}
2240+
},
2241+
"required": [
2242+
"operatorType"
2243+
],
2244+
"description": "StringNotEndsWith Advanced Filter."
2245+
},
20442246
"StringNotInAdvancedFilter": {
20452247
"type": "object",
20462248
"properties": {

0 commit comments

Comments
 (0)