Commit 1ed6b15
authored
Communication phonenumbers siprouting (Azure#22248)
### Packages impacted by this PR
communication\communication-phone-numbers
### Issues associated with this PR
[User Story](https://skype.visualstudio.com/SPOOL/_workitems/edit/2532740)
### Describe the problem that is addressed by this PR
The PR adds the sipRoutingClient into the communication-phone-numbers SDK.
The client enables the management of SIP routing configuration for direct routing numbers.
API supports GET and PATCH requests.
Each Azure Communication resource has exactly one SIP configuration.
The configuration contains of a dictionary of trunks and a list of routes.
The trunks allow for partial updates, the configuration is merged with the incoming trunk dictionary.
The routes don’t allow for partial updates, the whole list is replaced by the incoming list (if it is present on PATCH request).
The sipRoutingClient provides more straightforward methods to retrieve and manage SIP trunks and routes.
[Swagger](https://raw.githubusercontent.com/Azure/azure-rest-api-specs/15d66311cc2b64f04692fdf021d1b235b538e1bc/specification/communication/data-plane/SipRouting/preview/2021-05-01-preview/communicationservicessiprouting.json)
[Examples](https://github.com/jannovak-msft/azure-sdk-for-js/tree/communication-phonenumbers-siprouting/sdk/communication/communication-phone-numbers/samples/v1/typescript/src/siprouting)

### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
### Are there test cases added in this PR? _(If not, why?)_
### Provide a list of related PRs _(if any)_
### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_
### Checklists
- [x] Added impacted package name to the issue description
- [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_
- [ ] Added a changelog (if necessary)1 parent 6a3d6c0 commit 1ed6b15
File tree
212 files changed
+30122
-5162
lines changed- sdk/communication/communication-phone-numbers
- recordings
- browsers
- phonenumbersclient__get_phone_number_aad
- phonenumbersclient__get_phone_number
- phonenumbersclient__lists_aad
- phonenumbersclient__lists
- phonenumbersclient__lro__purchase_and_release_aad
- phonenumbersclient__lro__purchase_and_release
- phonenumbersclient__lro__search_aad
- phonenumbersclient__lro__search
- phonenumbersclient__lro__update_aad
- phonenumbersclient__lro__update
- siproutingclient__delete_trunk_aad
- siproutingclient__delete_trunk
- siproutingclient__get_routes_aad
- siproutingclient__get_routes
- siproutingclient__get_trunks_aad
- siproutingclient__get_trunks
- siproutingclient__set_routes_aad
- siproutingclient__set_routes
- siproutingclient__set_trunks_aad
- siproutingclient__set_trunks
- node
- phonenumbersclient__get_phone_number_aad
- phonenumbersclient__get_phone_number
- phonenumbersclient__lists_aad
- phonenumbersclient__lists
- phonenumbersclient__lro__purchase_and_release_aad
- phonenumbersclient__lro__purchase_and_release
- phonenumbersclient__lro__search_aad
- phonenumbersclient__lro__search
- phonenumbersclient__lro__update_aad
- phonenumbersclient__lro__update
- siproutingclient__delete_trunk_aad
- siproutingclient__delete_trunk
- siproutingclient__get_routes_aad
- siproutingclient__get_routes
- siproutingclient__get_trunks_aad
- siproutingclient__get_trunks
- siproutingclient__set_routes_aad
- siproutingclient__set_routes
- siproutingclient__set_trunks_aad
- siproutingclient__set_trunks
- review
- samples-dev/siprouting
- samples/v1
- javascript
- siprouting
- typescript
- src/siprouting
- src
- generated/src/siprouting
- models
- swagger
- test
- internal/siprouting
- public
- siprouting
- utils
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
212 files changed
+30122
-5162
lines changedLines changed: 179 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
35 | 43 | | |
36 | | - | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
40 | | - | |
| 48 | + | |
41 | 49 | | |
42 | 50 | | |
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| |||
51 | 66 | | |
52 | 67 | | |
53 | 68 | | |
54 | | - | |
| 69 | + | |
55 | 70 | | |
56 | 71 | | |
57 | 72 | | |
| |||
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
65 | 87 | | |
66 | 88 | | |
67 | 89 | | |
| |||
74 | 96 | | |
75 | 97 | | |
76 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
77 | 107 | | |
78 | 108 | | |
79 | 109 | | |
| |||
92 | 122 | | |
93 | 123 | | |
94 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
95 | 133 | | |
96 | 134 | | |
97 | 135 | | |
98 | 136 | | |
| 137 | + | |
99 | 138 | | |
100 | 139 | | |
101 | 140 | | |
102 | 141 | | |
103 | 142 | | |
104 | 143 | | |
105 | 144 | | |
106 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
107 | 155 | | |
108 | 156 | | |
109 | 157 | | |
| |||
141 | 189 | | |
142 | 190 | | |
143 | 191 | | |
144 | | - | |
| 192 | + | |
145 | 193 | | |
146 | 194 | | |
147 | 195 | | |
| |||
180 | 228 | | |
181 | 229 | | |
182 | 230 | | |
183 | | - | |
| 231 | + | |
184 | 232 | | |
185 | 233 | | |
186 | 234 | | |
| |||
205 | 253 | | |
206 | 254 | | |
207 | 255 | | |
208 | | - | |
| 256 | + | |
209 | 257 | | |
210 | 258 | | |
211 | 259 | | |
| |||
242 | 290 | | |
243 | 291 | | |
244 | 292 | | |
245 | | - | |
| 293 | + | |
246 | 294 | | |
247 | 295 | | |
248 | 296 | | |
| |||
264 | 312 | | |
265 | 313 | | |
266 | 314 | | |
267 | | - | |
| 315 | + | |
268 | 316 | | |
269 | 317 | | |
270 | 318 | | |
| |||
286 | 334 | | |
287 | 335 | | |
288 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
289 | 457 | | |
290 | 458 | | |
291 | 459 | | |
| |||
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 37 | + | |
45 | 38 | | |
46 | 39 | | |
47 | 40 | | |
| |||
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
53 | | - | |
54 | 46 | | |
55 | 47 | | |
56 | 48 | | |
| |||
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
| 67 | + | |
75 | 68 | | |
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
79 | 72 | | |
80 | 73 | | |
81 | | - | |
| 74 | + | |
82 | 75 | | |
83 | 76 | | |
84 | 77 | | |
| |||
101 | 94 | | |
102 | 95 | | |
103 | 96 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | 97 | | |
110 | 98 | | |
111 | 99 | | |
| |||
142 | 130 | | |
143 | 131 | | |
144 | 132 | | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | 133 | | |
149 | 134 | | |
150 | 135 | | |
| |||
0 commit comments