@azure/arm-communication 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +70 -70
  4. package/dist/index.js +1489 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/communicationServiceManagementClient.d.ts +19 -0
  9. package/dist-esm/src/communicationServiceManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/communicationServiceManagementClient.js +52 -0
  11. package/dist-esm/src/communicationServiceManagementClient.js.map +1 -0
  12. package/dist-esm/src/index.d.ts +5 -0
  13. package/dist-esm/src/index.d.ts.map +1 -0
  14. package/dist-esm/src/index.js +12 -0
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/lroImpl.d.ts +16 -0
  17. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  18. package/dist-esm/src/lroImpl.js +29 -0
  19. package/dist-esm/src/lroImpl.js.map +1 -0
  20. package/dist-esm/src/models/index.d.ts +422 -0
  21. package/dist-esm/src/models/index.d.ts.map +1 -0
  22. package/dist-esm/src/models/index.js +41 -0
  23. package/dist-esm/src/models/index.js.map +1 -0
  24. package/dist-esm/src/models/mappers.d.ts +22 -0
  25. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  26. package/{esm → dist-esm/src}/models/mappers.js +201 -379
  27. package/dist-esm/src/models/mappers.js.map +1 -0
  28. package/dist-esm/src/models/parameters.d.ts +14 -0
  29. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  30. package/dist-esm/src/models/parameters.js +122 -0
  31. package/dist-esm/src/models/parameters.js.map +1 -0
  32. package/dist-esm/src/operations/communicationService.d.ts +124 -0
  33. package/dist-esm/src/operations/communicationService.d.ts.map +1 -0
  34. package/dist-esm/src/operations/communicationService.js +570 -0
  35. package/dist-esm/src/operations/communicationService.js.map +1 -0
  36. package/dist-esm/src/operations/index.d.ts +3 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +1 -3
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/communicationService.d.ts +88 -0
  45. package/dist-esm/src/operationsInterfaces/communicationService.d.ts.map +1 -0
  46. package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/communicationService.js} +2 -9
  47. package/dist-esm/src/operationsInterfaces/communicationService.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
  49. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/index.js +10 -0
  51. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  53. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  54. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/operations.js} +2 -1
  55. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  56. package/dist-esm/test/communication_examples.d.ts +4 -0
  57. package/dist-esm/test/communication_examples.d.ts.map +1 -0
  58. package/dist-esm/test/communication_examples.js +106 -0
  59. package/dist-esm/test/communication_examples.js.map +1 -0
  60. package/package.json +65 -31
  61. package/review/arm-communication.api.md +363 -0
  62. package/rollup.config.js +181 -30
  63. package/src/communicationServiceManagementClient.ts +62 -30
  64. package/{esm/models/operationStatusesMappers.js → src/index.ts} +5 -2
  65. package/src/lroImpl.ts +34 -0
  66. package/src/models/index.ts +338 -738
  67. package/src/models/mappers.ts +207 -387
  68. package/src/models/parameters.ts +81 -45
  69. package/src/operations/communicationService.ts +517 -506
  70. package/src/operations/index.ts +1 -3
  71. package/src/operations/operations.ts +85 -75
  72. package/src/operationsInterfaces/communicationService.ts +166 -0
  73. package/src/{models/operationStatusesMappers.ts → operationsInterfaces/index.ts} +2 -6
  74. package/src/operationsInterfaces/operations.ts +22 -0
  75. package/tsconfig.json +3 -3
  76. package/types/arm-communication.d.ts +594 -0
  77. package/types/tsdoc-metadata.json +11 -0
  78. package/dist/arm-communication.js +0 -1663
  79. package/dist/arm-communication.js.map +0 -1
  80. package/dist/arm-communication.min.js +0 -1
  81. package/dist/arm-communication.min.js.map +0 -1
  82. package/esm/communicationServiceManagementClient.d.ts +0 -20
  83. package/esm/communicationServiceManagementClient.d.ts.map +0 -1
  84. package/esm/communicationServiceManagementClient.js +0 -34
  85. package/esm/communicationServiceManagementClient.js.map +0 -1
  86. package/esm/communicationServiceManagementClientContext.d.ts +0 -16
  87. package/esm/communicationServiceManagementClientContext.d.ts.map +0 -1
  88. package/esm/communicationServiceManagementClientContext.js +0 -55
  89. package/esm/communicationServiceManagementClientContext.js.map +0 -1
  90. package/esm/models/communicationServiceMappers.d.ts +0 -2
  91. package/esm/models/communicationServiceMappers.d.ts.map +0 -1
  92. package/esm/models/communicationServiceMappers.js +0 -9
  93. package/esm/models/communicationServiceMappers.js.map +0 -1
  94. package/esm/models/index.d.ts +0 -823
  95. package/esm/models/index.d.ts.map +0 -1
  96. package/esm/models/index.js.map +0 -1
  97. package/esm/models/mappers.d.ts +0 -28
  98. package/esm/models/mappers.d.ts.map +0 -1
  99. package/esm/models/mappers.js.map +0 -1
  100. package/esm/models/operationStatusesMappers.d.ts +0 -2
  101. package/esm/models/operationStatusesMappers.d.ts.map +0 -1
  102. package/esm/models/operationStatusesMappers.js.map +0 -1
  103. package/esm/models/operationsMappers.d.ts +0 -2
  104. package/esm/models/operationsMappers.d.ts.map +0 -1
  105. package/esm/models/operationsMappers.js +0 -9
  106. package/esm/models/operationsMappers.js.map +0 -1
  107. package/esm/models/parameters.d.ts +0 -10
  108. package/esm/models/parameters.d.ts.map +0 -1
  109. package/esm/models/parameters.js +0 -106
  110. package/esm/models/parameters.js.map +0 -1
  111. package/esm/operations/communicationService.d.ts +0 -253
  112. package/esm/operations/communicationService.d.ts.map +0 -1
  113. package/esm/operations/communicationService.js +0 -471
  114. package/esm/operations/communicationService.js.map +0 -1
  115. package/esm/operations/index.d.ts +0 -4
  116. package/esm/operations/index.d.ts.map +0 -1
  117. package/esm/operations/index.js.map +0 -1
  118. package/esm/operations/operationStatuses.d.ts +0 -35
  119. package/esm/operations/operationStatuses.d.ts.map +0 -1
  120. package/esm/operations/operationStatuses.js +0 -56
  121. package/esm/operations/operationStatuses.js.map +0 -1
  122. package/esm/operations/operations.d.ts +0 -48
  123. package/esm/operations/operations.d.ts.map +0 -1
  124. package/esm/operations/operations.js +0 -79
  125. package/esm/operations/operations.js.map +0 -1
  126. package/src/communicationServiceManagementClientContext.ts +0 -61
  127. package/src/models/communicationServiceMappers.ts +0 -24
  128. package/src/operations/operationStatuses.ts +0 -86
@@ -1,1663 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- (function (global, factory) {
9
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@azure/ms-rest-azure-js'), require('@azure/ms-rest-js')) :
10
- typeof define === 'function' && define.amd ? define(['exports', '@azure/ms-rest-azure-js', '@azure/ms-rest-js'], factory) :
11
- (global = global || self, factory((global.Azure = global.Azure || {}, global.Azure.ArmCommunication = {}), global.msRestAzure, global.msRest));
12
- }(this, (function (exports, msRestAzure, msRest) { 'use strict';
13
-
14
- /*! *****************************************************************************
15
- Copyright (c) Microsoft Corporation.
16
-
17
- Permission to use, copy, modify, and/or distribute this software for any
18
- purpose with or without fee is hereby granted.
19
-
20
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
21
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
22
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
23
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
24
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
25
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
26
- PERFORMANCE OF THIS SOFTWARE.
27
- ***************************************************************************** */
28
- /* global Reflect, Promise */
29
-
30
- var extendStatics = function(d, b) {
31
- extendStatics = Object.setPrototypeOf ||
32
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
33
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
34
- return extendStatics(d, b);
35
- };
36
-
37
- function __extends(d, b) {
38
- extendStatics(d, b);
39
- function __() { this.constructor = d; }
40
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
41
- }
42
-
43
- var __assign = function() {
44
- __assign = Object.assign || function __assign(t) {
45
- for (var s, i = 1, n = arguments.length; i < n; i++) {
46
- s = arguments[i];
47
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
48
- }
49
- return t;
50
- };
51
- return __assign.apply(this, arguments);
52
- };
53
-
54
- /*
55
- * Copyright (c) Microsoft Corporation.
56
- * Licensed under the MIT License.
57
- *
58
- * Code generated by Microsoft (R) AutoRest Code Generator.
59
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
60
- */
61
-
62
- var index = /*#__PURE__*/Object.freeze({
63
- __proto__: null
64
- });
65
-
66
- /*
67
- * Copyright (c) Microsoft Corporation.
68
- * Licensed under the MIT License.
69
- *
70
- * Code generated by Microsoft (R) AutoRest Code Generator.
71
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
72
- */
73
- var CloudError = msRestAzure.CloudErrorMapper;
74
- var BaseResource = msRestAzure.BaseResourceMapper;
75
- var NameAvailabilityParameters = {
76
- serializedName: "NameAvailabilityParameters",
77
- type: {
78
- name: "Composite",
79
- className: "NameAvailabilityParameters",
80
- modelProperties: {
81
- type: {
82
- required: true,
83
- serializedName: "type",
84
- type: {
85
- name: "String"
86
- }
87
- },
88
- name: {
89
- required: true,
90
- serializedName: "name",
91
- type: {
92
- name: "String"
93
- }
94
- }
95
- }
96
- }
97
- };
98
- var NameAvailability = {
99
- serializedName: "NameAvailability",
100
- type: {
101
- name: "Composite",
102
- className: "NameAvailability",
103
- modelProperties: {
104
- nameAvailable: {
105
- serializedName: "nameAvailable",
106
- type: {
107
- name: "Boolean"
108
- }
109
- },
110
- reason: {
111
- serializedName: "reason",
112
- type: {
113
- name: "String"
114
- }
115
- },
116
- message: {
117
- serializedName: "message",
118
- type: {
119
- name: "String"
120
- }
121
- }
122
- }
123
- }
124
- };
125
- var LinkNotificationHubParameters = {
126
- serializedName: "LinkNotificationHubParameters",
127
- type: {
128
- name: "Composite",
129
- className: "LinkNotificationHubParameters",
130
- modelProperties: {
131
- resourceId: {
132
- required: true,
133
- serializedName: "resourceId",
134
- type: {
135
- name: "String"
136
- }
137
- },
138
- connectionString: {
139
- required: true,
140
- serializedName: "connectionString",
141
- type: {
142
- name: "String"
143
- }
144
- }
145
- }
146
- }
147
- };
148
- var LinkedNotificationHub = {
149
- serializedName: "LinkedNotificationHub",
150
- type: {
151
- name: "Composite",
152
- className: "LinkedNotificationHub",
153
- modelProperties: {
154
- resourceId: {
155
- serializedName: "resourceId",
156
- type: {
157
- name: "String"
158
- }
159
- }
160
- }
161
- }
162
- };
163
- var ErrorAdditionalInfo = {
164
- serializedName: "ErrorAdditionalInfo",
165
- type: {
166
- name: "Composite",
167
- className: "ErrorAdditionalInfo",
168
- modelProperties: {
169
- type: {
170
- readOnly: true,
171
- serializedName: "type",
172
- type: {
173
- name: "String"
174
- }
175
- },
176
- info: {
177
- readOnly: true,
178
- serializedName: "info",
179
- type: {
180
- name: "Object"
181
- }
182
- }
183
- }
184
- }
185
- };
186
- var ErrorDetail = {
187
- serializedName: "ErrorDetail",
188
- type: {
189
- name: "Composite",
190
- className: "ErrorDetail",
191
- modelProperties: {
192
- code: {
193
- readOnly: true,
194
- serializedName: "code",
195
- type: {
196
- name: "String"
197
- }
198
- },
199
- message: {
200
- readOnly: true,
201
- serializedName: "message",
202
- type: {
203
- name: "String"
204
- }
205
- },
206
- target: {
207
- readOnly: true,
208
- serializedName: "target",
209
- type: {
210
- name: "String"
211
- }
212
- },
213
- details: {
214
- readOnly: true,
215
- serializedName: "details",
216
- type: {
217
- name: "Sequence",
218
- element: {
219
- type: {
220
- name: "Composite",
221
- className: "ErrorDetail"
222
- }
223
- }
224
- }
225
- },
226
- additionalInfo: {
227
- readOnly: true,
228
- serializedName: "additionalInfo",
229
- type: {
230
- name: "Sequence",
231
- element: {
232
- type: {
233
- name: "Composite",
234
- className: "ErrorAdditionalInfo"
235
- }
236
- }
237
- }
238
- }
239
- }
240
- }
241
- };
242
- var ErrorResponse = {
243
- serializedName: "ErrorResponse",
244
- type: {
245
- name: "Composite",
246
- className: "ErrorResponse",
247
- modelProperties: {
248
- error: {
249
- serializedName: "error",
250
- type: {
251
- name: "Composite",
252
- className: "ErrorDetail"
253
- }
254
- }
255
- }
256
- }
257
- };
258
- var OperationStatus = {
259
- serializedName: "OperationStatus",
260
- type: {
261
- name: "Composite",
262
- className: "OperationStatus",
263
- modelProperties: {
264
- id: {
265
- readOnly: true,
266
- serializedName: "id",
267
- type: {
268
- name: "String"
269
- }
270
- },
271
- status: {
272
- readOnly: true,
273
- serializedName: "status",
274
- type: {
275
- name: "String"
276
- }
277
- },
278
- startTime: {
279
- readOnly: true,
280
- serializedName: "startTime",
281
- type: {
282
- name: "DateTime"
283
- }
284
- },
285
- endTime: {
286
- readOnly: true,
287
- serializedName: "endTime",
288
- type: {
289
- name: "DateTime"
290
- }
291
- },
292
- percentComplete: {
293
- readOnly: true,
294
- serializedName: "percentComplete",
295
- constraints: {
296
- InclusiveMaximum: 100,
297
- InclusiveMinimum: 0
298
- },
299
- type: {
300
- name: "Number"
301
- }
302
- },
303
- error: {
304
- serializedName: "error.error",
305
- type: {
306
- name: "Composite",
307
- className: "ErrorDetail"
308
- }
309
- }
310
- }
311
- }
312
- };
313
- var SystemData = {
314
- serializedName: "systemData",
315
- type: {
316
- name: "Composite",
317
- className: "SystemData",
318
- modelProperties: {
319
- createdBy: {
320
- serializedName: "createdBy",
321
- type: {
322
- name: "String"
323
- }
324
- },
325
- createdByType: {
326
- serializedName: "createdByType",
327
- type: {
328
- name: "String"
329
- }
330
- },
331
- createdAt: {
332
- serializedName: "createdAt",
333
- type: {
334
- name: "DateTime"
335
- }
336
- },
337
- lastModifiedBy: {
338
- serializedName: "lastModifiedBy",
339
- type: {
340
- name: "String"
341
- }
342
- },
343
- lastModifiedByType: {
344
- serializedName: "lastModifiedByType",
345
- type: {
346
- name: "String"
347
- }
348
- },
349
- lastModifiedAt: {
350
- serializedName: "lastModifiedAt",
351
- type: {
352
- name: "DateTime"
353
- }
354
- }
355
- }
356
- }
357
- };
358
- var CommunicationServiceResource = {
359
- serializedName: "CommunicationServiceResource",
360
- type: {
361
- name: "Composite",
362
- className: "CommunicationServiceResource",
363
- modelProperties: {
364
- id: {
365
- readOnly: true,
366
- serializedName: "id",
367
- type: {
368
- name: "String"
369
- }
370
- },
371
- name: {
372
- readOnly: true,
373
- serializedName: "name",
374
- type: {
375
- name: "String"
376
- }
377
- },
378
- type: {
379
- readOnly: true,
380
- serializedName: "type",
381
- type: {
382
- name: "String"
383
- }
384
- },
385
- location: {
386
- serializedName: "location",
387
- type: {
388
- name: "String"
389
- }
390
- },
391
- tags: {
392
- serializedName: "tags",
393
- type: {
394
- name: "Dictionary",
395
- value: {
396
- type: {
397
- name: "String"
398
- }
399
- }
400
- }
401
- },
402
- provisioningState: {
403
- readOnly: true,
404
- serializedName: "properties.provisioningState",
405
- type: {
406
- name: "String"
407
- }
408
- },
409
- hostName: {
410
- readOnly: true,
411
- serializedName: "properties.hostName",
412
- type: {
413
- name: "String"
414
- }
415
- },
416
- dataLocation: {
417
- required: true,
418
- serializedName: "properties.dataLocation",
419
- type: {
420
- name: "String"
421
- }
422
- },
423
- notificationHubId: {
424
- readOnly: true,
425
- serializedName: "properties.notificationHubId",
426
- type: {
427
- name: "String"
428
- }
429
- },
430
- version: {
431
- readOnly: true,
432
- serializedName: "properties.version",
433
- type: {
434
- name: "String"
435
- }
436
- },
437
- immutableResourceId: {
438
- readOnly: true,
439
- serializedName: "properties.immutableResourceId",
440
- type: {
441
- name: "String"
442
- }
443
- },
444
- systemData: {
445
- serializedName: "systemData",
446
- type: {
447
- name: "Composite",
448
- className: "SystemData"
449
- }
450
- }
451
- }
452
- }
453
- };
454
- var LocationResource = {
455
- serializedName: "LocationResource",
456
- type: {
457
- name: "Composite",
458
- className: "LocationResource",
459
- modelProperties: {
460
- location: {
461
- serializedName: "location",
462
- type: {
463
- name: "String"
464
- }
465
- }
466
- }
467
- }
468
- };
469
- var TaggedResource = {
470
- serializedName: "TaggedResource",
471
- type: {
472
- name: "Composite",
473
- className: "TaggedResource",
474
- modelProperties: {
475
- tags: {
476
- serializedName: "tags",
477
- type: {
478
- name: "Dictionary",
479
- value: {
480
- type: {
481
- name: "String"
482
- }
483
- }
484
- }
485
- }
486
- }
487
- }
488
- };
489
- var CommunicationServiceKeys = {
490
- serializedName: "CommunicationServiceKeys",
491
- type: {
492
- name: "Composite",
493
- className: "CommunicationServiceKeys",
494
- modelProperties: {
495
- primaryKey: {
496
- serializedName: "primaryKey",
497
- type: {
498
- name: "String"
499
- }
500
- },
501
- secondaryKey: {
502
- serializedName: "secondaryKey",
503
- type: {
504
- name: "String"
505
- }
506
- },
507
- primaryConnectionString: {
508
- serializedName: "primaryConnectionString",
509
- type: {
510
- name: "String"
511
- }
512
- },
513
- secondaryConnectionString: {
514
- serializedName: "secondaryConnectionString",
515
- type: {
516
- name: "String"
517
- }
518
- }
519
- }
520
- }
521
- };
522
- var RegenerateKeyParameters = {
523
- serializedName: "RegenerateKeyParameters",
524
- type: {
525
- name: "Composite",
526
- className: "RegenerateKeyParameters",
527
- modelProperties: {
528
- keyType: {
529
- serializedName: "keyType",
530
- type: {
531
- name: "Enum",
532
- allowedValues: [
533
- "Primary",
534
- "Secondary"
535
- ]
536
- }
537
- }
538
- }
539
- }
540
- };
541
- var Resource = {
542
- serializedName: "Resource",
543
- type: {
544
- name: "Composite",
545
- className: "Resource",
546
- modelProperties: {
547
- id: {
548
- readOnly: true,
549
- serializedName: "id",
550
- type: {
551
- name: "String"
552
- }
553
- },
554
- name: {
555
- readOnly: true,
556
- serializedName: "name",
557
- type: {
558
- name: "String"
559
- }
560
- },
561
- type: {
562
- readOnly: true,
563
- serializedName: "type",
564
- type: {
565
- name: "String"
566
- }
567
- }
568
- }
569
- }
570
- };
571
- var ProxyResource = {
572
- serializedName: "ProxyResource",
573
- type: {
574
- name: "Composite",
575
- className: "ProxyResource",
576
- modelProperties: __assign({}, Resource.type.modelProperties)
577
- }
578
- };
579
- var TrackedResource = {
580
- serializedName: "TrackedResource",
581
- type: {
582
- name: "Composite",
583
- className: "TrackedResource",
584
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { tags: {
585
- serializedName: "tags",
586
- type: {
587
- name: "Dictionary",
588
- value: {
589
- type: {
590
- name: "String"
591
- }
592
- }
593
- }
594
- }, location: {
595
- required: true,
596
- serializedName: "location",
597
- type: {
598
- name: "String"
599
- }
600
- } })
601
- }
602
- };
603
- var AzureEntityResource = {
604
- serializedName: "AzureEntityResource",
605
- type: {
606
- name: "Composite",
607
- className: "AzureEntityResource",
608
- modelProperties: __assign(__assign({}, Resource.type.modelProperties), { etag: {
609
- readOnly: true,
610
- serializedName: "etag",
611
- type: {
612
- name: "String"
613
- }
614
- } })
615
- }
616
- };
617
- var OperationDisplay = {
618
- serializedName: "Operation_display",
619
- type: {
620
- name: "Composite",
621
- className: "OperationDisplay",
622
- modelProperties: {
623
- provider: {
624
- readOnly: true,
625
- serializedName: "provider",
626
- type: {
627
- name: "String"
628
- }
629
- },
630
- resource: {
631
- readOnly: true,
632
- serializedName: "resource",
633
- type: {
634
- name: "String"
635
- }
636
- },
637
- operation: {
638
- readOnly: true,
639
- serializedName: "operation",
640
- type: {
641
- name: "String"
642
- }
643
- },
644
- description: {
645
- readOnly: true,
646
- serializedName: "description",
647
- type: {
648
- name: "String"
649
- }
650
- }
651
- }
652
- }
653
- };
654
- var Operation = {
655
- serializedName: "Operation",
656
- type: {
657
- name: "Composite",
658
- className: "Operation",
659
- modelProperties: {
660
- name: {
661
- readOnly: true,
662
- serializedName: "name",
663
- type: {
664
- name: "String"
665
- }
666
- },
667
- isDataAction: {
668
- readOnly: true,
669
- serializedName: "isDataAction",
670
- type: {
671
- name: "Boolean"
672
- }
673
- },
674
- display: {
675
- serializedName: "display",
676
- type: {
677
- name: "Composite",
678
- className: "OperationDisplay"
679
- }
680
- },
681
- origin: {
682
- readOnly: true,
683
- serializedName: "origin",
684
- type: {
685
- name: "String"
686
- }
687
- },
688
- actionType: {
689
- readOnly: true,
690
- serializedName: "actionType",
691
- type: {
692
- name: "String"
693
- }
694
- }
695
- }
696
- }
697
- };
698
- var CommunicationServiceCreateOrUpdateHeaders = {
699
- serializedName: "communicationservice-createorupdate-headers",
700
- type: {
701
- name: "Composite",
702
- className: "CommunicationServiceCreateOrUpdateHeaders",
703
- modelProperties: {
704
- azureAsyncOperation: {
705
- serializedName: "azure-asyncoperation",
706
- type: {
707
- name: "String"
708
- }
709
- }
710
- }
711
- }
712
- };
713
- var CommunicationServiceDeleteHeaders = {
714
- serializedName: "communicationservice-delete-headers",
715
- type: {
716
- name: "Composite",
717
- className: "CommunicationServiceDeleteHeaders",
718
- modelProperties: {
719
- location: {
720
- serializedName: "location",
721
- type: {
722
- name: "String"
723
- }
724
- }
725
- }
726
- }
727
- };
728
- var OperationListResult = {
729
- serializedName: "OperationListResult",
730
- type: {
731
- name: "Composite",
732
- className: "OperationListResult",
733
- modelProperties: {
734
- value: {
735
- readOnly: true,
736
- serializedName: "",
737
- type: {
738
- name: "Sequence",
739
- element: {
740
- type: {
741
- name: "Composite",
742
- className: "Operation"
743
- }
744
- }
745
- }
746
- },
747
- nextLink: {
748
- readOnly: true,
749
- serializedName: "nextLink",
750
- type: {
751
- name: "String"
752
- }
753
- }
754
- }
755
- }
756
- };
757
- var CommunicationServiceResourceList = {
758
- serializedName: "CommunicationServiceResourceList",
759
- type: {
760
- name: "Composite",
761
- className: "CommunicationServiceResourceList",
762
- modelProperties: {
763
- value: {
764
- serializedName: "",
765
- type: {
766
- name: "Sequence",
767
- element: {
768
- type: {
769
- name: "Composite",
770
- className: "CommunicationServiceResource"
771
- }
772
- }
773
- }
774
- },
775
- nextLink: {
776
- serializedName: "nextLink",
777
- type: {
778
- name: "String"
779
- }
780
- }
781
- }
782
- }
783
- };
784
-
785
- var mappers = /*#__PURE__*/Object.freeze({
786
- __proto__: null,
787
- CloudError: CloudError,
788
- BaseResource: BaseResource,
789
- NameAvailabilityParameters: NameAvailabilityParameters,
790
- NameAvailability: NameAvailability,
791
- LinkNotificationHubParameters: LinkNotificationHubParameters,
792
- LinkedNotificationHub: LinkedNotificationHub,
793
- ErrorAdditionalInfo: ErrorAdditionalInfo,
794
- ErrorDetail: ErrorDetail,
795
- ErrorResponse: ErrorResponse,
796
- OperationStatus: OperationStatus,
797
- SystemData: SystemData,
798
- CommunicationServiceResource: CommunicationServiceResource,
799
- LocationResource: LocationResource,
800
- TaggedResource: TaggedResource,
801
- CommunicationServiceKeys: CommunicationServiceKeys,
802
- RegenerateKeyParameters: RegenerateKeyParameters,
803
- Resource: Resource,
804
- ProxyResource: ProxyResource,
805
- TrackedResource: TrackedResource,
806
- AzureEntityResource: AzureEntityResource,
807
- OperationDisplay: OperationDisplay,
808
- Operation: Operation,
809
- CommunicationServiceCreateOrUpdateHeaders: CommunicationServiceCreateOrUpdateHeaders,
810
- CommunicationServiceDeleteHeaders: CommunicationServiceDeleteHeaders,
811
- OperationListResult: OperationListResult,
812
- CommunicationServiceResourceList: CommunicationServiceResourceList
813
- });
814
-
815
- /*
816
- * Copyright (c) Microsoft Corporation.
817
- * Licensed under the MIT License.
818
- *
819
- * Code generated by Microsoft (R) AutoRest Code Generator.
820
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
821
- */
822
-
823
- var Mappers = /*#__PURE__*/Object.freeze({
824
- __proto__: null,
825
- ErrorAdditionalInfo: ErrorAdditionalInfo,
826
- ErrorDetail: ErrorDetail,
827
- ErrorResponse: ErrorResponse,
828
- Operation: Operation,
829
- OperationDisplay: OperationDisplay,
830
- OperationListResult: OperationListResult
831
- });
832
-
833
- /*
834
- * Copyright (c) Microsoft Corporation.
835
- * Licensed under the MIT License.
836
- *
837
- * Code generated by Microsoft (R) AutoRest Code Generator.
838
- * Changes may cause incorrect behavior and will be lost if the code is
839
- * regenerated.
840
- */
841
- var acceptLanguage = {
842
- parameterPath: "acceptLanguage",
843
- mapper: {
844
- serializedName: "accept-language",
845
- defaultValue: 'en-US',
846
- type: {
847
- name: "String"
848
- }
849
- }
850
- };
851
- var apiVersion = {
852
- parameterPath: "apiVersion",
853
- mapper: {
854
- required: true,
855
- serializedName: "api-version",
856
- constraints: {
857
- MinLength: 1
858
- },
859
- type: {
860
- name: "String"
861
- }
862
- }
863
- };
864
- var communicationServiceName = {
865
- parameterPath: "communicationServiceName",
866
- mapper: {
867
- required: true,
868
- serializedName: "communicationServiceName",
869
- constraints: {
870
- MaxLength: 63,
871
- MinLength: 1,
872
- Pattern: /^[-\w]+$/
873
- },
874
- type: {
875
- name: "String"
876
- }
877
- }
878
- };
879
- var location = {
880
- parameterPath: "location",
881
- mapper: {
882
- required: true,
883
- serializedName: "location",
884
- type: {
885
- name: "String"
886
- }
887
- }
888
- };
889
- var nextPageLink = {
890
- parameterPath: "nextPageLink",
891
- mapper: {
892
- required: true,
893
- serializedName: "nextLink",
894
- type: {
895
- name: "String"
896
- }
897
- },
898
- skipEncoding: true
899
- };
900
- var operationId = {
901
- parameterPath: "operationId",
902
- mapper: {
903
- required: true,
904
- serializedName: "operationId",
905
- type: {
906
- name: "String"
907
- }
908
- }
909
- };
910
- var resourceGroupName = {
911
- parameterPath: "resourceGroupName",
912
- mapper: {
913
- required: true,
914
- serializedName: "resourceGroupName",
915
- constraints: {
916
- MaxLength: 90,
917
- MinLength: 1,
918
- Pattern: /^[-\w\._\(\)]+$/
919
- },
920
- type: {
921
- name: "String"
922
- }
923
- }
924
- };
925
- var subscriptionId = {
926
- parameterPath: "subscriptionId",
927
- mapper: {
928
- required: true,
929
- serializedName: "subscriptionId",
930
- constraints: {
931
- MinLength: 1
932
- },
933
- type: {
934
- name: "String"
935
- }
936
- }
937
- };
938
-
939
- /*
940
- * Copyright (c) Microsoft Corporation.
941
- * Licensed under the MIT License.
942
- *
943
- * Code generated by Microsoft (R) AutoRest Code Generator.
944
- * Changes may cause incorrect behavior and will be lost if the code is
945
- * regenerated.
946
- */
947
- /** Class representing a Operations. */
948
- var Operations = /** @class */ (function () {
949
- /**
950
- * Create a Operations.
951
- * @param {CommunicationServiceManagementClientContext} client Reference to the service client.
952
- */
953
- function Operations(client) {
954
- this.client = client;
955
- }
956
- Operations.prototype.list = function (options, callback) {
957
- return this.client.sendOperationRequest({
958
- options: options
959
- }, listOperationSpec, callback);
960
- };
961
- Operations.prototype.listNext = function (nextPageLink, options, callback) {
962
- return this.client.sendOperationRequest({
963
- nextPageLink: nextPageLink,
964
- options: options
965
- }, listNextOperationSpec, callback);
966
- };
967
- return Operations;
968
- }());
969
- // Operation Specifications
970
- var serializer = new msRest.Serializer(Mappers);
971
- var listOperationSpec = {
972
- httpMethod: "GET",
973
- path: "providers/Microsoft.Communication/operations",
974
- queryParameters: [
975
- apiVersion
976
- ],
977
- headerParameters: [
978
- acceptLanguage
979
- ],
980
- responses: {
981
- 200: {
982
- bodyMapper: OperationListResult
983
- },
984
- default: {
985
- bodyMapper: ErrorResponse
986
- }
987
- },
988
- serializer: serializer
989
- };
990
- var listNextOperationSpec = {
991
- httpMethod: "GET",
992
- baseUrl: "https://management.azure.com",
993
- path: "{nextLink}",
994
- urlParameters: [
995
- nextPageLink
996
- ],
997
- queryParameters: [
998
- apiVersion
999
- ],
1000
- headerParameters: [
1001
- acceptLanguage
1002
- ],
1003
- responses: {
1004
- 200: {
1005
- bodyMapper: OperationListResult
1006
- },
1007
- default: {
1008
- bodyMapper: ErrorResponse
1009
- }
1010
- },
1011
- serializer: serializer
1012
- };
1013
-
1014
- /*
1015
- * Copyright (c) Microsoft Corporation.
1016
- * Licensed under the MIT License.
1017
- *
1018
- * Code generated by Microsoft (R) AutoRest Code Generator.
1019
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1020
- */
1021
-
1022
- var Mappers$1 = /*#__PURE__*/Object.freeze({
1023
- __proto__: null,
1024
- CommunicationServiceCreateOrUpdateHeaders: CommunicationServiceCreateOrUpdateHeaders,
1025
- CommunicationServiceDeleteHeaders: CommunicationServiceDeleteHeaders,
1026
- CommunicationServiceKeys: CommunicationServiceKeys,
1027
- CommunicationServiceResource: CommunicationServiceResource,
1028
- CommunicationServiceResourceList: CommunicationServiceResourceList,
1029
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1030
- ErrorDetail: ErrorDetail,
1031
- ErrorResponse: ErrorResponse,
1032
- LinkedNotificationHub: LinkedNotificationHub,
1033
- LinkNotificationHubParameters: LinkNotificationHubParameters,
1034
- NameAvailability: NameAvailability,
1035
- NameAvailabilityParameters: NameAvailabilityParameters,
1036
- RegenerateKeyParameters: RegenerateKeyParameters,
1037
- SystemData: SystemData
1038
- });
1039
-
1040
- /*
1041
- * Copyright (c) Microsoft Corporation.
1042
- * Licensed under the MIT License.
1043
- *
1044
- * Code generated by Microsoft (R) AutoRest Code Generator.
1045
- * Changes may cause incorrect behavior and will be lost if the code is
1046
- * regenerated.
1047
- */
1048
- /** Class representing a CommunicationService. */
1049
- var CommunicationService = /** @class */ (function () {
1050
- /**
1051
- * Create a CommunicationService.
1052
- * @param {CommunicationServiceManagementClientContext} client Reference to the service client.
1053
- */
1054
- function CommunicationService(client) {
1055
- this.client = client;
1056
- }
1057
- CommunicationService.prototype.checkNameAvailability = function (options, callback) {
1058
- return this.client.sendOperationRequest({
1059
- options: options
1060
- }, checkNameAvailabilityOperationSpec, callback);
1061
- };
1062
- CommunicationService.prototype.linkNotificationHub = function (resourceGroupName, communicationServiceName, options, callback) {
1063
- return this.client.sendOperationRequest({
1064
- resourceGroupName: resourceGroupName,
1065
- communicationServiceName: communicationServiceName,
1066
- options: options
1067
- }, linkNotificationHubOperationSpec, callback);
1068
- };
1069
- CommunicationService.prototype.listBySubscription = function (options, callback) {
1070
- return this.client.sendOperationRequest({
1071
- options: options
1072
- }, listBySubscriptionOperationSpec, callback);
1073
- };
1074
- CommunicationService.prototype.listByResourceGroup = function (resourceGroupName, options, callback) {
1075
- return this.client.sendOperationRequest({
1076
- resourceGroupName: resourceGroupName,
1077
- options: options
1078
- }, listByResourceGroupOperationSpec, callback);
1079
- };
1080
- CommunicationService.prototype.update = function (resourceGroupName, communicationServiceName, options, callback) {
1081
- return this.client.sendOperationRequest({
1082
- resourceGroupName: resourceGroupName,
1083
- communicationServiceName: communicationServiceName,
1084
- options: options
1085
- }, updateOperationSpec, callback);
1086
- };
1087
- CommunicationService.prototype.get = function (resourceGroupName, communicationServiceName, options, callback) {
1088
- return this.client.sendOperationRequest({
1089
- resourceGroupName: resourceGroupName,
1090
- communicationServiceName: communicationServiceName,
1091
- options: options
1092
- }, getOperationSpec, callback);
1093
- };
1094
- /**
1095
- * Create a new CommunicationService or update an existing CommunicationService.
1096
- * @summary Create Or Update
1097
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1098
- * @param communicationServiceName The name of the CommunicationService resource.
1099
- * @param [options] The optional parameters
1100
- * @returns Promise<Models.CommunicationServiceCreateOrUpdateResponse>
1101
- */
1102
- CommunicationService.prototype.createOrUpdate = function (resourceGroupName, communicationServiceName, options) {
1103
- return this.beginCreateOrUpdate(resourceGroupName, communicationServiceName, options)
1104
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1105
- };
1106
- /**
1107
- * Operation to delete a CommunicationService.
1108
- * @summary Delete
1109
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1110
- * @param communicationServiceName The name of the CommunicationService resource.
1111
- * @param [options] The optional parameters
1112
- * @returns Promise<Models.CommunicationServiceDeleteResponse>
1113
- */
1114
- CommunicationService.prototype.deleteMethod = function (resourceGroupName, communicationServiceName, options) {
1115
- return this.beginDeleteMethod(resourceGroupName, communicationServiceName, options)
1116
- .then(function (lroPoller) { return lroPoller.pollUntilFinished(); });
1117
- };
1118
- CommunicationService.prototype.listKeys = function (resourceGroupName, communicationServiceName, options, callback) {
1119
- return this.client.sendOperationRequest({
1120
- resourceGroupName: resourceGroupName,
1121
- communicationServiceName: communicationServiceName,
1122
- options: options
1123
- }, listKeysOperationSpec, callback);
1124
- };
1125
- CommunicationService.prototype.regenerateKey = function (parameters, resourceGroupName, communicationServiceName, options, callback) {
1126
- return this.client.sendOperationRequest({
1127
- parameters: parameters,
1128
- resourceGroupName: resourceGroupName,
1129
- communicationServiceName: communicationServiceName,
1130
- options: options
1131
- }, regenerateKeyOperationSpec, callback);
1132
- };
1133
- /**
1134
- * Create a new CommunicationService or update an existing CommunicationService.
1135
- * @summary Create Or Update
1136
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1137
- * @param communicationServiceName The name of the CommunicationService resource.
1138
- * @param [options] The optional parameters
1139
- * @returns Promise<msRestAzure.LROPoller>
1140
- */
1141
- CommunicationService.prototype.beginCreateOrUpdate = function (resourceGroupName, communicationServiceName, options) {
1142
- return this.client.sendLRORequest({
1143
- resourceGroupName: resourceGroupName,
1144
- communicationServiceName: communicationServiceName,
1145
- options: options
1146
- }, beginCreateOrUpdateOperationSpec, options);
1147
- };
1148
- /**
1149
- * Operation to delete a CommunicationService.
1150
- * @summary Delete
1151
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
1152
- * @param communicationServiceName The name of the CommunicationService resource.
1153
- * @param [options] The optional parameters
1154
- * @returns Promise<msRestAzure.LROPoller>
1155
- */
1156
- CommunicationService.prototype.beginDeleteMethod = function (resourceGroupName, communicationServiceName, options) {
1157
- return this.client.sendLRORequest({
1158
- resourceGroupName: resourceGroupName,
1159
- communicationServiceName: communicationServiceName,
1160
- options: options
1161
- }, beginDeleteMethodOperationSpec, options);
1162
- };
1163
- CommunicationService.prototype.listBySubscriptionNext = function (nextPageLink, options, callback) {
1164
- return this.client.sendOperationRequest({
1165
- nextPageLink: nextPageLink,
1166
- options: options
1167
- }, listBySubscriptionNextOperationSpec, callback);
1168
- };
1169
- CommunicationService.prototype.listByResourceGroupNext = function (nextPageLink, options, callback) {
1170
- return this.client.sendOperationRequest({
1171
- nextPageLink: nextPageLink,
1172
- options: options
1173
- }, listByResourceGroupNextOperationSpec, callback);
1174
- };
1175
- return CommunicationService;
1176
- }());
1177
- // Operation Specifications
1178
- var serializer$1 = new msRest.Serializer(Mappers$1);
1179
- var checkNameAvailabilityOperationSpec = {
1180
- httpMethod: "POST",
1181
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Communication/checkNameAvailability",
1182
- urlParameters: [
1183
- subscriptionId
1184
- ],
1185
- queryParameters: [
1186
- apiVersion
1187
- ],
1188
- headerParameters: [
1189
- acceptLanguage
1190
- ],
1191
- requestBody: {
1192
- parameterPath: [
1193
- "options",
1194
- "nameAvailabilityParameters"
1195
- ],
1196
- mapper: NameAvailabilityParameters
1197
- },
1198
- responses: {
1199
- 200: {
1200
- bodyMapper: NameAvailability
1201
- },
1202
- default: {
1203
- bodyMapper: ErrorResponse
1204
- }
1205
- },
1206
- serializer: serializer$1
1207
- };
1208
- var linkNotificationHubOperationSpec = {
1209
- httpMethod: "POST",
1210
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/linkNotificationHub",
1211
- urlParameters: [
1212
- subscriptionId,
1213
- resourceGroupName,
1214
- communicationServiceName
1215
- ],
1216
- queryParameters: [
1217
- apiVersion
1218
- ],
1219
- headerParameters: [
1220
- acceptLanguage
1221
- ],
1222
- requestBody: {
1223
- parameterPath: [
1224
- "options",
1225
- "linkNotificationHubParameters"
1226
- ],
1227
- mapper: LinkNotificationHubParameters
1228
- },
1229
- responses: {
1230
- 200: {
1231
- bodyMapper: LinkedNotificationHub
1232
- },
1233
- default: {
1234
- bodyMapper: ErrorResponse
1235
- }
1236
- },
1237
- serializer: serializer$1
1238
- };
1239
- var listBySubscriptionOperationSpec = {
1240
- httpMethod: "GET",
1241
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Communication/communicationServices",
1242
- urlParameters: [
1243
- subscriptionId
1244
- ],
1245
- queryParameters: [
1246
- apiVersion
1247
- ],
1248
- headerParameters: [
1249
- acceptLanguage
1250
- ],
1251
- responses: {
1252
- 200: {
1253
- bodyMapper: CommunicationServiceResourceList
1254
- },
1255
- default: {
1256
- bodyMapper: ErrorResponse
1257
- }
1258
- },
1259
- serializer: serializer$1
1260
- };
1261
- var listByResourceGroupOperationSpec = {
1262
- httpMethod: "GET",
1263
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices",
1264
- urlParameters: [
1265
- subscriptionId,
1266
- resourceGroupName
1267
- ],
1268
- queryParameters: [
1269
- apiVersion
1270
- ],
1271
- headerParameters: [
1272
- acceptLanguage
1273
- ],
1274
- responses: {
1275
- 200: {
1276
- bodyMapper: CommunicationServiceResourceList
1277
- },
1278
- default: {
1279
- bodyMapper: ErrorResponse
1280
- }
1281
- },
1282
- serializer: serializer$1
1283
- };
1284
- var updateOperationSpec = {
1285
- httpMethod: "PATCH",
1286
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
1287
- urlParameters: [
1288
- subscriptionId,
1289
- resourceGroupName,
1290
- communicationServiceName
1291
- ],
1292
- queryParameters: [
1293
- apiVersion
1294
- ],
1295
- headerParameters: [
1296
- acceptLanguage
1297
- ],
1298
- requestBody: {
1299
- parameterPath: [
1300
- "options",
1301
- "parameters"
1302
- ],
1303
- mapper: CommunicationServiceResource
1304
- },
1305
- responses: {
1306
- 200: {
1307
- bodyMapper: CommunicationServiceResource
1308
- },
1309
- default: {
1310
- bodyMapper: ErrorResponse
1311
- }
1312
- },
1313
- serializer: serializer$1
1314
- };
1315
- var getOperationSpec = {
1316
- httpMethod: "GET",
1317
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
1318
- urlParameters: [
1319
- subscriptionId,
1320
- resourceGroupName,
1321
- communicationServiceName
1322
- ],
1323
- queryParameters: [
1324
- apiVersion
1325
- ],
1326
- headerParameters: [
1327
- acceptLanguage
1328
- ],
1329
- responses: {
1330
- 200: {
1331
- bodyMapper: CommunicationServiceResource
1332
- },
1333
- default: {
1334
- bodyMapper: ErrorResponse
1335
- }
1336
- },
1337
- serializer: serializer$1
1338
- };
1339
- var listKeysOperationSpec = {
1340
- httpMethod: "POST",
1341
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/listKeys",
1342
- urlParameters: [
1343
- subscriptionId,
1344
- resourceGroupName,
1345
- communicationServiceName
1346
- ],
1347
- queryParameters: [
1348
- apiVersion
1349
- ],
1350
- headerParameters: [
1351
- acceptLanguage
1352
- ],
1353
- responses: {
1354
- 200: {
1355
- bodyMapper: CommunicationServiceKeys
1356
- },
1357
- default: {
1358
- bodyMapper: ErrorResponse
1359
- }
1360
- },
1361
- serializer: serializer$1
1362
- };
1363
- var regenerateKeyOperationSpec = {
1364
- httpMethod: "POST",
1365
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/regenerateKey",
1366
- urlParameters: [
1367
- subscriptionId,
1368
- resourceGroupName,
1369
- communicationServiceName
1370
- ],
1371
- queryParameters: [
1372
- apiVersion
1373
- ],
1374
- headerParameters: [
1375
- acceptLanguage
1376
- ],
1377
- requestBody: {
1378
- parameterPath: "parameters",
1379
- mapper: __assign(__assign({}, RegenerateKeyParameters), { required: true })
1380
- },
1381
- responses: {
1382
- 200: {
1383
- bodyMapper: CommunicationServiceKeys
1384
- },
1385
- default: {
1386
- bodyMapper: ErrorResponse
1387
- }
1388
- },
1389
- serializer: serializer$1
1390
- };
1391
- var beginCreateOrUpdateOperationSpec = {
1392
- httpMethod: "PUT",
1393
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
1394
- urlParameters: [
1395
- subscriptionId,
1396
- resourceGroupName,
1397
- communicationServiceName
1398
- ],
1399
- queryParameters: [
1400
- apiVersion
1401
- ],
1402
- headerParameters: [
1403
- acceptLanguage
1404
- ],
1405
- requestBody: {
1406
- parameterPath: [
1407
- "options",
1408
- "parameters"
1409
- ],
1410
- mapper: CommunicationServiceResource
1411
- },
1412
- responses: {
1413
- 200: {
1414
- bodyMapper: CommunicationServiceResource,
1415
- headersMapper: CommunicationServiceCreateOrUpdateHeaders
1416
- },
1417
- 201: {
1418
- bodyMapper: CommunicationServiceResource,
1419
- headersMapper: CommunicationServiceCreateOrUpdateHeaders
1420
- },
1421
- default: {
1422
- bodyMapper: ErrorResponse,
1423
- headersMapper: CommunicationServiceCreateOrUpdateHeaders
1424
- }
1425
- },
1426
- serializer: serializer$1
1427
- };
1428
- var beginDeleteMethodOperationSpec = {
1429
- httpMethod: "DELETE",
1430
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}",
1431
- urlParameters: [
1432
- subscriptionId,
1433
- resourceGroupName,
1434
- communicationServiceName
1435
- ],
1436
- queryParameters: [
1437
- apiVersion
1438
- ],
1439
- headerParameters: [
1440
- acceptLanguage
1441
- ],
1442
- responses: {
1443
- 200: {
1444
- headersMapper: CommunicationServiceDeleteHeaders
1445
- },
1446
- 202: {
1447
- headersMapper: CommunicationServiceDeleteHeaders
1448
- },
1449
- 204: {
1450
- headersMapper: CommunicationServiceDeleteHeaders
1451
- },
1452
- default: {
1453
- bodyMapper: ErrorResponse,
1454
- headersMapper: CommunicationServiceDeleteHeaders
1455
- }
1456
- },
1457
- serializer: serializer$1
1458
- };
1459
- var listBySubscriptionNextOperationSpec = {
1460
- httpMethod: "GET",
1461
- baseUrl: "https://management.azure.com",
1462
- path: "{nextLink}",
1463
- urlParameters: [
1464
- nextPageLink
1465
- ],
1466
- queryParameters: [
1467
- apiVersion
1468
- ],
1469
- headerParameters: [
1470
- acceptLanguage
1471
- ],
1472
- responses: {
1473
- 200: {
1474
- bodyMapper: CommunicationServiceResourceList
1475
- },
1476
- default: {
1477
- bodyMapper: ErrorResponse
1478
- }
1479
- },
1480
- serializer: serializer$1
1481
- };
1482
- var listByResourceGroupNextOperationSpec = {
1483
- httpMethod: "GET",
1484
- baseUrl: "https://management.azure.com",
1485
- path: "{nextLink}",
1486
- urlParameters: [
1487
- nextPageLink
1488
- ],
1489
- queryParameters: [
1490
- apiVersion
1491
- ],
1492
- headerParameters: [
1493
- acceptLanguage
1494
- ],
1495
- responses: {
1496
- 200: {
1497
- bodyMapper: CommunicationServiceResourceList
1498
- },
1499
- default: {
1500
- bodyMapper: ErrorResponse
1501
- }
1502
- },
1503
- serializer: serializer$1
1504
- };
1505
-
1506
- /*
1507
- * Copyright (c) Microsoft Corporation.
1508
- * Licensed under the MIT License.
1509
- *
1510
- * Code generated by Microsoft (R) AutoRest Code Generator.
1511
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1512
- */
1513
-
1514
- var Mappers$2 = /*#__PURE__*/Object.freeze({
1515
- __proto__: null,
1516
- ErrorAdditionalInfo: ErrorAdditionalInfo,
1517
- ErrorDetail: ErrorDetail,
1518
- ErrorResponse: ErrorResponse,
1519
- OperationStatus: OperationStatus
1520
- });
1521
-
1522
- /*
1523
- * Copyright (c) Microsoft Corporation.
1524
- * Licensed under the MIT License.
1525
- *
1526
- * Code generated by Microsoft (R) AutoRest Code Generator.
1527
- * Changes may cause incorrect behavior and will be lost if the code is
1528
- * regenerated.
1529
- */
1530
- /** Class representing a OperationStatuses. */
1531
- var OperationStatuses = /** @class */ (function () {
1532
- /**
1533
- * Create a OperationStatuses.
1534
- * @param {CommunicationServiceManagementClientContext} client Reference to the service client.
1535
- */
1536
- function OperationStatuses(client) {
1537
- this.client = client;
1538
- }
1539
- OperationStatuses.prototype.get = function (location, operationId, options, callback) {
1540
- return this.client.sendOperationRequest({
1541
- location: location,
1542
- operationId: operationId,
1543
- options: options
1544
- }, getOperationSpec$1, callback);
1545
- };
1546
- return OperationStatuses;
1547
- }());
1548
- // Operation Specifications
1549
- var serializer$2 = new msRest.Serializer(Mappers$2);
1550
- var getOperationSpec$1 = {
1551
- httpMethod: "GET",
1552
- path: "providers/Microsoft.Communication/locations/{location}/operationStatuses/{operationId}",
1553
- urlParameters: [
1554
- location,
1555
- operationId
1556
- ],
1557
- queryParameters: [
1558
- apiVersion
1559
- ],
1560
- headerParameters: [
1561
- acceptLanguage
1562
- ],
1563
- responses: {
1564
- 200: {
1565
- bodyMapper: OperationStatus
1566
- },
1567
- default: {
1568
- bodyMapper: ErrorResponse
1569
- }
1570
- },
1571
- serializer: serializer$2
1572
- };
1573
-
1574
- /*
1575
- * Copyright (c) Microsoft Corporation.
1576
- * Licensed under the MIT License.
1577
- *
1578
- * Code generated by Microsoft (R) AutoRest Code Generator.
1579
- * Changes may cause incorrect behavior and will be lost if the code is
1580
- * regenerated.
1581
- */
1582
- var packageName = "@azure/arm-communication";
1583
- var packageVersion = "2.0.0";
1584
- var CommunicationServiceManagementClientContext = /** @class */ (function (_super) {
1585
- __extends(CommunicationServiceManagementClientContext, _super);
1586
- /**
1587
- * Initializes a new instance of the CommunicationServiceManagementClient class.
1588
- * @param credentials Credentials needed for the client to connect to Azure.
1589
- * @param subscriptionId The ID of the target subscription.
1590
- * @param [options] The parameter options
1591
- */
1592
- function CommunicationServiceManagementClientContext(credentials, subscriptionId, options) {
1593
- var _this = this;
1594
- if (credentials == undefined) {
1595
- throw new Error('\'credentials\' cannot be null.');
1596
- }
1597
- if (subscriptionId == undefined) {
1598
- throw new Error('\'subscriptionId\' cannot be null.');
1599
- }
1600
- if (!options) {
1601
- options = {};
1602
- }
1603
- if (!options.userAgent) {
1604
- var defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
1605
- options.userAgent = packageName + "/" + packageVersion + " " + defaultUserAgent;
1606
- }
1607
- _this = _super.call(this, credentials, options) || this;
1608
- _this.apiVersion = '2020-08-20';
1609
- _this.acceptLanguage = 'en-US';
1610
- _this.longRunningOperationRetryTimeout = 30;
1611
- _this.baseUri = options.baseUri || _this.baseUri || "https://management.azure.com";
1612
- _this.requestContentType = "application/json; charset=utf-8";
1613
- _this.credentials = credentials;
1614
- _this.subscriptionId = subscriptionId;
1615
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
1616
- _this.acceptLanguage = options.acceptLanguage;
1617
- }
1618
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
1619
- _this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
1620
- }
1621
- return _this;
1622
- }
1623
- return CommunicationServiceManagementClientContext;
1624
- }(msRestAzure.AzureServiceClient));
1625
-
1626
- /*
1627
- * Copyright (c) Microsoft Corporation.
1628
- * Licensed under the MIT License.
1629
- *
1630
- * Code generated by Microsoft (R) AutoRest Code Generator.
1631
- * Changes may cause incorrect behavior and will be lost if the code is
1632
- * regenerated.
1633
- */
1634
- var CommunicationServiceManagementClient = /** @class */ (function (_super) {
1635
- __extends(CommunicationServiceManagementClient, _super);
1636
- /**
1637
- * Initializes a new instance of the CommunicationServiceManagementClient class.
1638
- * @param credentials Credentials needed for the client to connect to Azure.
1639
- * @param subscriptionId The ID of the target subscription.
1640
- * @param [options] The parameter options
1641
- */
1642
- function CommunicationServiceManagementClient(credentials, subscriptionId, options) {
1643
- var _this = _super.call(this, credentials, subscriptionId, options) || this;
1644
- _this.operations = new Operations(_this);
1645
- _this.communicationService = new CommunicationService(_this);
1646
- _this.operationStatuses = new OperationStatuses(_this);
1647
- return _this;
1648
- }
1649
- return CommunicationServiceManagementClient;
1650
- }(CommunicationServiceManagementClientContext));
1651
-
1652
- exports.CommunicationService = CommunicationService;
1653
- exports.CommunicationServiceManagementClient = CommunicationServiceManagementClient;
1654
- exports.CommunicationServiceManagementClientContext = CommunicationServiceManagementClientContext;
1655
- exports.CommunicationServiceManagementMappers = mappers;
1656
- exports.CommunicationServiceManagementModels = index;
1657
- exports.OperationStatuses = OperationStatuses;
1658
- exports.Operations = Operations;
1659
-
1660
- Object.defineProperty(exports, '__esModule', { value: true });
1661
-
1662
- })));
1663
- //# sourceMappingURL=arm-communication.js.map