Skip to content

Commit

Permalink
Add two match condition for CDN RulesEngine. (#7367)
Browse files Browse the repository at this point in the history
* Add two match condition for CDN RulesEngine.

* remove transfrom from HttpVersion condition
  • Loading branch information
hytao authored and yaohaizh committed Oct 3, 2019
1 parent 1b442d0 commit e535750
Showing 1 changed file with 134 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2290,6 +2290,8 @@
"UrlPath",
"UrlFileExtension",
"UrlFileName",
"HttpVersion",
"Cookies",
"IsDevice"
],
"x-ms-enum": {
Expand Down Expand Up @@ -2497,6 +2499,42 @@
}
}
},
"DeliveryRuleHttpVersionCondition": {
"description": "Defines the HttpVersion condition for the delivery rule.",
"x-ms-discriminator-value": "HttpVersion",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/HttpVersionMatchConditionParameters"
}
}
},
"DeliveryRuleCookiesCondition": {
"description": "Defines the Cookies condition for the delivery rule.",
"x-ms-discriminator-value": "Cookies",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/CookiesMatchConditionParameters"
}
}
},
"DeliveryRuleIsDeviceCondition": {
"description": "Defines the IsDevice condition for the delivery rule.",
"x-ms-discriminator-value": "IsDevice",
Expand Down Expand Up @@ -3082,6 +3120,102 @@
}
}
},
"HttpVersionMatchConditionParameters": {
"description": "Defines the parameters for HttpVersion match conditions",
"required": [
"operator",
"matchValues",
"@odata.type"
],
"properties": {
"@odata.type": {
"type": "string",
"enum": [
"#Microsoft.Azure.Cdn.Models.DeliveryRuleHttpVersionConditionParameters"
]
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Equal"
],
"x-ms-enum": {
"name": "HttpVersionOperator",
"modelAsString": true
}
},
"negateCondition": {
"description": "Describes if this is negate condition or not",
"type": "boolean"
},
"matchValues": {
"description": "The match value for the condition of the delivery rule",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"CookiesMatchConditionParameters": {
"description": "Defines the parameters for Cookies match conditions",
"required": [
"operator",
"matchValues",
"selector",
"@odata.type"
],
"properties": {
"@odata.type": {
"type": "string",
"enum": [
"#Microsoft.Azure.Cdn.Models.DeliveryRuleCookiesConditionParameters"
]
},
"selector": {
"description": "Name of Cookies to be matched",
"type": "string"
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Any",
"Equal",
"Contains",
"BeginsWith",
"EndsWith",
"LessThan",
"LessThanOrEqual",
"GreaterThan",
"GreaterThanOrEqual"
],
"x-ms-enum": {
"name": "CookiesOperator",
"modelAsString": true
}
},
"negateCondition": {
"description": "Describes if this is negate condition or not",
"type": "boolean"
},
"matchValues": {
"description": "The match value for the condition of the delivery rule",
"type": "array",
"items": {
"type": "string"
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
"IsDeviceMatchConditionParameters": {
"description": "Defines the parameters for IsDevice match conditions",
"required": [
Expand Down

0 comments on commit e535750

Please sign in to comment.