Skip to content

Commit a045db3

Browse files
committed
refactor sip configuration patch into separate class
1 parent 46a087a commit a045db3

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

specification/communication/data-plane/SipRouting/preview/2021-05-01-preview/communicationservicessiprouting.json

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"name": "body",
6666
"description": "Configuration patch.",
6767
"schema": {
68-
"$ref": "#/definitions/SipConfiguration"
68+
"$ref": "#/definitions/SipConfigurationPatch"
6969
}
7070
}
7171
],
@@ -115,6 +115,17 @@
115115
}
116116
}
117117
},
118+
"TrunkPatch": {
119+
"description": "Represents a SIP trunk patch.",
120+
"type": "object",
121+
"properties": {
122+
"sipSignalingPort": {
123+
"format": "int32",
124+
"description": "Gets or sets SIP signaling port of the trunk.",
125+
"type": "integer"
126+
}
127+
}
128+
},
118129
"TrunkRoute": {
119130
"description": "Represents a trunk route for routing calls.",
120131
"required": [
@@ -169,6 +180,28 @@
169180
}
170181
}
171182
}
183+
},
184+
"SipConfigurationPatch": {
185+
"description": "Represents a SIP configuration patch.",
186+
"type": "object",
187+
"properties": {
188+
"trunks": {
189+
"description": "SIP trunks for routing calls.\r\nMap key is trunk's FQDN (1-249 characters).",
190+
"maxLength": 250,
191+
"type": "object",
192+
"additionalProperties": {
193+
"$ref": "#/definitions/TrunkPatch"
194+
}
195+
},
196+
"routes": {
197+
"description": "Trunk routes for routing calls.",
198+
"maxLength": 250,
199+
"type": "array",
200+
"items": {
201+
"$ref": "#/definitions/TrunkRoute"
202+
}
203+
}
204+
}
172205
}
173206
},
174207
"parameters": {

0 commit comments

Comments
 (0)