Skip to content

Commit

Permalink
server variable (#11)
Browse files Browse the repository at this point in the history
* wip server variable

* server-variable udpates

* server port transform

* socket address

* update server variable

* resolve comments

* revert unwanted change
  • Loading branch information
yunheMsft authored Jul 27, 2021
1 parent 7424889 commit d6eddf6
Showing 1 changed file with 314 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2801,7 +2801,12 @@
"UrlFileName",
"HttpVersion",
"Cookies",
"IsDevice"
"IsDevice",
"SocketAddr",
"ClientPort",
"ServerPort",
"HostName",
"SslProtocol"
],
"x-ms-enum": {
"name": "MatchVariable",
Expand Down Expand Up @@ -3062,6 +3067,96 @@
}
}
},
"DeliveryRuleSocketAddrCondition": {
"description": "Defines the SocketAddr condition for the delivery rule.",
"x-ms-discriminator-value": "SocketAddr",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/SocketAddrMatchConditionParameters"
}
}
},
"DeliveryRuleRequestClientPortCondition": {
"description": "Defines the RequestClientPort condition for the delivery rule.",
"x-ms-discriminator-value": "RequestClientPort",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/RequestClientPortMatchConditionParameters"
}
}
},
"DeliveryRuleServerPortCondition": {
"description": "Defines the ServerPort condition for the delivery rule.",
"x-ms-discriminator-value": "ServerPort",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/ServerPortMatchConditionParameters"
}
}
},
"DeliveryRuleRequestHostNameCondition": {
"description": "Defines the RequestHostName condition for the delivery rule.",
"x-ms-discriminator-value": "RequestHostName",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/RequestHostNameMatchConditionParameters"
}
}
},
"DeliveryRuleSslProtocolCondition": {
"description": "Defines the SslProtocol condition for the delivery rule.",
"x-ms-discriminator-value": "SslProtocol",
"allOf": [
{
"$ref": "#/definitions/DeliveryRuleCondition"
}
],
"required": [
"parameters"
],
"properties": {
"parameters": {
"description": "Defines the parameters for the condition.",
"$ref": "#/definitions/SslProtocolMatchConditionParameters"
}
}
},
"RemoteAddressMatchConditionParameters": {
"description": "Defines the parameters for RemoteAddress match conditions",
"required": [
Expand Down Expand Up @@ -3098,13 +3193,6 @@
"items": {
"type": "string"
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
Expand Down Expand Up @@ -3756,6 +3844,182 @@
"Desktop"
]
}
}
}
},
"SocketAddrMatchConditionParameters": {
"description": "Defines the parameters for SocketAddr match conditions",
"required": [
"operator",
"typeName"
],
"properties": {
"typeName": {
"type": "string",
"enum": [
"DeliveryRuleSocketAddrConditionParameters"
]
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Any",
"IPMatch"
],
"x-ms-enum": {
"name": "SocketAddrOperator",
"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"
}
}
}
},
"RequestClientPortMatchConditionParameters": {
"description": "Defines the parameters for RequestClientPort match conditions",
"required": [
"operator",
"typeName"
],
"properties": {
"typeName": {
"type": "string",
"enum": [
"DeliveryRuleRequestClientPortConditionParameters"
]
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Any",
"Equal",
"Contains",
"BeginsWith",
"EndsWith",
"LessThan",
"LessThanOrEqual",
"GreaterThan",
"GreaterThanOrEqual",
"RegEx"
],
"x-ms-enum": {
"name": "RequestClientPortOperator",
"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"
}
}
}
},
"ServerPortMatchConditionParameters": {
"description": "Defines the parameters for ServerPort match conditions",
"required": [
"operator",
"typeName"
],
"properties": {
"typeName": {
"type": "string",
"enum": [
"DeliveryRuleServerPortConditionParameters"
]
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Any",
"Equal",
"Contains",
"BeginsWith",
"EndsWith",
"LessThan",
"LessThanOrEqual",
"GreaterThan",
"GreaterThanOrEqual",
"RegEx"
],
"x-ms-enum": {
"name": "ServerPortOperator",
"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"
}
}
}
},
"RequestHostNameMatchConditionParameters": {
"description": "Defines the parameters for RequestHostName match conditions",
"required": [
"operator",
"typeName"
],
"properties": {
"typeName": {
"type": "string",
"enum": [
"DeliveryRuleRequestHostNameConditionParameters"
]
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Any",
"Equal",
"Contains",
"BeginsWith",
"EndsWith",
"LessThan",
"LessThanOrEqual",
"GreaterThan",
"GreaterThanOrEqual",
"RegEx"
],
"x-ms-enum": {
"name": "RequestHostNameOperator",
"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",
Expand All @@ -3766,6 +4030,48 @@
}
}
},
"SslProtocolMatchConditionParameters": {
"description": "Defines the parameters for SslProtocol match conditions",
"required": [
"operator",
"typeName"
],
"properties": {
"typeName": {
"type": "string",
"enum": [
"DeliveryRuleSslProtocolConditionParameters"
]
},
"operator": {
"description": "Describes operator to be matched",
"type": "string",
"enum": [
"Equal"
],
"x-ms-enum": {
"name": "SslProtocolOperator",
"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",
"enum": [
"TLSv1",
"TLSv1.1",
"TLSv1.2"
]
}
}
}
},
"DeliveryRuleAction": {
"description": "An action for the delivery rule.",
"discriminator": "name",
Expand Down

0 comments on commit d6eddf6

Please sign in to comment.