@azure/arm-maps 2.1.0 → 3.0.0-alpha.20220201.1

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 (132) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/README.md +69 -83
  4. package/dist/index.js +1892 -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/azureMapsManagementClient.d.ts +20 -0
  9. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureMapsManagementClient.js +53 -0
  11. package/dist-esm/src/azureMapsManagementClient.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/{esm/models/mapsMappers.js → dist-esm/src/index.js} +5 -2
  15. package/dist-esm/src/index.js.map +1 -0
  16. package/dist-esm/src/models/index.d.ts +480 -0
  17. package/dist-esm/src/models/index.d.ts.map +1 -0
  18. package/dist-esm/src/models/index.js +35 -0
  19. package/dist-esm/src/models/index.js.map +1 -0
  20. package/dist-esm/src/models/mappers.d.ts +25 -0
  21. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  22. package/{esm → dist-esm/src}/models/mappers.js +332 -379
  23. package/dist-esm/src/models/mappers.js.map +1 -0
  24. package/dist-esm/src/models/parameters.d.ts +16 -0
  25. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  26. package/dist-esm/src/models/parameters.js +131 -0
  27. package/dist-esm/src/models/parameters.js.map +1 -0
  28. package/dist-esm/src/operations/accounts.d.ts +103 -0
  29. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  30. package/dist-esm/src/operations/accounts.js +427 -0
  31. package/dist-esm/src/operations/accounts.js.map +1 -0
  32. package/dist-esm/src/operations/creators.d.ts +74 -0
  33. package/dist-esm/src/operations/creators.d.ts.map +1 -0
  34. package/dist-esm/src/operations/creators.js +281 -0
  35. package/dist-esm/src/operations/creators.js.map +1 -0
  36. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/{esm → dist-esm/src}/operations/index.js +1 -2
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/maps.d.ts +51 -0
  41. package/dist-esm/src/operations/maps.d.ts.map +1 -0
  42. package/dist-esm/src/operations/maps.js +220 -0
  43. package/dist-esm/src/operations/maps.js.map +1 -0
  44. package/dist-esm/src/operationsInterfaces/accounts.d.ts +67 -0
  45. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  46. package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
  47. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  48. package/dist-esm/src/operationsInterfaces/creators.d.ts +49 -0
  49. package/dist-esm/src/operationsInterfaces/creators.d.ts.map +1 -0
  50. package/dist-esm/src/operationsInterfaces/creators.js +9 -0
  51. package/dist-esm/src/operationsInterfaces/creators.js.map +1 -0
  52. package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
  53. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  54. package/dist-esm/src/operationsInterfaces/index.js +11 -0
  55. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  56. package/dist-esm/src/operationsInterfaces/maps.d.ts +16 -0
  57. package/dist-esm/src/operationsInterfaces/maps.d.ts.map +1 -0
  58. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/maps.js} +2 -1
  59. package/dist-esm/src/operationsInterfaces/maps.js.map +1 -0
  60. package/dist-esm/test/sampleTest.d.ts +2 -0
  61. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  62. package/dist-esm/test/sampleTest.js +40 -0
  63. package/dist-esm/test/sampleTest.js.map +1 -0
  64. package/package.json +70 -21
  65. package/review/arm-maps.api.md +423 -0
  66. package/rollup.config.js +181 -24
  67. package/src/azureMapsManagementClient.ts +61 -36
  68. package/src/{models/mapsMappers.ts → index.ts} +4 -11
  69. package/src/models/index.ts +380 -684
  70. package/src/models/mappers.ts +333 -378
  71. package/src/models/parameters.ts +99 -36
  72. package/src/operations/accounts.ts +315 -502
  73. package/src/operations/creators.ts +202 -341
  74. package/src/operations/index.ts +1 -2
  75. package/src/operations/maps.ts +196 -77
  76. package/src/operationsInterfaces/accounts.ts +125 -0
  77. package/src/operationsInterfaces/creators.ts +95 -0
  78. package/src/operationsInterfaces/index.ts +11 -0
  79. package/src/operationsInterfaces/maps.ts +33 -0
  80. package/tsconfig.json +3 -3
  81. package/types/arm-maps.d.ts +696 -0
  82. package/types/tsdoc-metadata.json +11 -0
  83. package/dist/arm-maps.js +0 -1671
  84. package/dist/arm-maps.js.map +0 -1
  85. package/dist/arm-maps.min.js +0 -1
  86. package/dist/arm-maps.min.js.map +0 -1
  87. package/esm/azureMapsManagementClient.d.ts +0 -26
  88. package/esm/azureMapsManagementClient.d.ts.map +0 -1
  89. package/esm/azureMapsManagementClient.js +0 -39
  90. package/esm/azureMapsManagementClient.js.map +0 -1
  91. package/esm/azureMapsManagementClientContext.d.ts +0 -22
  92. package/esm/azureMapsManagementClientContext.d.ts.map +0 -1
  93. package/esm/azureMapsManagementClientContext.js +0 -61
  94. package/esm/azureMapsManagementClientContext.js.map +0 -1
  95. package/esm/models/accountsMappers.d.ts +0 -2
  96. package/esm/models/accountsMappers.d.ts.map +0 -1
  97. package/esm/models/accountsMappers.js +0 -9
  98. package/esm/models/accountsMappers.js.map +0 -1
  99. package/esm/models/creatorsMappers.d.ts +0 -2
  100. package/esm/models/creatorsMappers.d.ts.map +0 -1
  101. package/esm/models/creatorsMappers.js +0 -9
  102. package/esm/models/creatorsMappers.js.map +0 -1
  103. package/esm/models/index.d.ts +0 -793
  104. package/esm/models/index.d.ts.map +0 -1
  105. package/esm/models/index.js.map +0 -1
  106. package/esm/models/mappers.d.ts +0 -29
  107. package/esm/models/mappers.d.ts.map +0 -1
  108. package/esm/models/mappers.js.map +0 -1
  109. package/esm/models/mapsMappers.d.ts +0 -2
  110. package/esm/models/mapsMappers.d.ts.map +0 -1
  111. package/esm/models/mapsMappers.js.map +0 -1
  112. package/esm/models/parameters.d.ts +0 -9
  113. package/esm/models/parameters.d.ts.map +0 -1
  114. package/esm/models/parameters.js +0 -91
  115. package/esm/models/parameters.js.map +0 -1
  116. package/esm/operations/accounts.d.ts +0 -222
  117. package/esm/operations/accounts.d.ts.map +0 -1
  118. package/esm/operations/accounts.js +0 -271
  119. package/esm/operations/accounts.js.map +0 -1
  120. package/esm/operations/creators.d.ts +0 -157
  121. package/esm/operations/creators.d.ts.map +0 -1
  122. package/esm/operations/creators.js +0 -201
  123. package/esm/operations/creators.js.map +0 -1
  124. package/esm/operations/index.d.ts.map +0 -1
  125. package/esm/operations/index.js.map +0 -1
  126. package/esm/operations/maps.d.ts +0 -46
  127. package/esm/operations/maps.d.ts.map +0 -1
  128. package/esm/operations/maps.js +0 -69
  129. package/esm/operations/maps.js.map +0 -1
  130. package/src/azureMapsManagementClientContext.ts +0 -74
  131. package/src/models/accountsMappers.ts +0 -28
  132. package/src/models/creatorsMappers.ts +0 -26
package/dist/index.js ADDED
@@ -0,0 +1,1892 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var coreClient = require('@azure/core-client');
6
+ var tslib = require('tslib');
7
+
8
+ /*
9
+ * Copyright (c) Microsoft Corporation.
10
+ * Licensed under the MIT License.
11
+ *
12
+ * Code generated by Microsoft (R) AutoRest Code Generator.
13
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
14
+ */
15
+ (function (KnownName) {
16
+ KnownName["S0"] = "S0";
17
+ KnownName["S1"] = "S1";
18
+ KnownName["G2"] = "G2";
19
+ })(exports.KnownName || (exports.KnownName = {}));
20
+ (function (KnownKind) {
21
+ KnownKind["Gen1"] = "Gen1";
22
+ KnownKind["Gen2"] = "Gen2";
23
+ })(exports.KnownKind || (exports.KnownKind = {}));
24
+ (function (KnownCreatedByType) {
25
+ KnownCreatedByType["User"] = "User";
26
+ KnownCreatedByType["Application"] = "Application";
27
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
28
+ KnownCreatedByType["Key"] = "Key";
29
+ })(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
30
+ (function (KnownKeyType) {
31
+ KnownKeyType["Primary"] = "primary";
32
+ KnownKeyType["Secondary"] = "secondary";
33
+ })(exports.KnownKeyType || (exports.KnownKeyType = {}));
34
+
35
+ /*
36
+ * Copyright (c) Microsoft Corporation.
37
+ * Licensed under the MIT License.
38
+ *
39
+ * Code generated by Microsoft (R) AutoRest Code Generator.
40
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
41
+ */
42
+ const Sku = {
43
+ type: {
44
+ name: "Composite",
45
+ className: "Sku",
46
+ modelProperties: {
47
+ name: {
48
+ serializedName: "name",
49
+ required: true,
50
+ type: {
51
+ name: "String"
52
+ }
53
+ },
54
+ tier: {
55
+ serializedName: "tier",
56
+ readOnly: true,
57
+ type: {
58
+ name: "String"
59
+ }
60
+ }
61
+ }
62
+ }
63
+ };
64
+ const SystemData = {
65
+ type: {
66
+ name: "Composite",
67
+ className: "SystemData",
68
+ modelProperties: {
69
+ createdBy: {
70
+ serializedName: "createdBy",
71
+ type: {
72
+ name: "String"
73
+ }
74
+ },
75
+ createdByType: {
76
+ serializedName: "createdByType",
77
+ type: {
78
+ name: "String"
79
+ }
80
+ },
81
+ createdAt: {
82
+ serializedName: "createdAt",
83
+ type: {
84
+ name: "DateTime"
85
+ }
86
+ },
87
+ lastModifiedBy: {
88
+ serializedName: "lastModifiedBy",
89
+ type: {
90
+ name: "String"
91
+ }
92
+ },
93
+ lastModifiedByType: {
94
+ serializedName: "lastModifiedByType",
95
+ type: {
96
+ name: "String"
97
+ }
98
+ },
99
+ lastModifiedAt: {
100
+ serializedName: "lastModifiedAt",
101
+ type: {
102
+ name: "DateTime"
103
+ }
104
+ }
105
+ }
106
+ }
107
+ };
108
+ const MapsAccountProperties = {
109
+ type: {
110
+ name: "Composite",
111
+ className: "MapsAccountProperties",
112
+ modelProperties: {
113
+ uniqueId: {
114
+ serializedName: "uniqueId",
115
+ readOnly: true,
116
+ type: {
117
+ name: "String"
118
+ }
119
+ },
120
+ disableLocalAuth: {
121
+ defaultValue: false,
122
+ serializedName: "disableLocalAuth",
123
+ type: {
124
+ name: "Boolean"
125
+ }
126
+ },
127
+ provisioningState: {
128
+ serializedName: "provisioningState",
129
+ readOnly: true,
130
+ type: {
131
+ name: "String"
132
+ }
133
+ }
134
+ }
135
+ }
136
+ };
137
+ const Resource = {
138
+ type: {
139
+ name: "Composite",
140
+ className: "Resource",
141
+ modelProperties: {
142
+ id: {
143
+ serializedName: "id",
144
+ readOnly: true,
145
+ type: {
146
+ name: "String"
147
+ }
148
+ },
149
+ name: {
150
+ serializedName: "name",
151
+ readOnly: true,
152
+ type: {
153
+ name: "String"
154
+ }
155
+ },
156
+ type: {
157
+ serializedName: "type",
158
+ readOnly: true,
159
+ type: {
160
+ name: "String"
161
+ }
162
+ }
163
+ }
164
+ }
165
+ };
166
+ const ErrorResponse = {
167
+ type: {
168
+ name: "Composite",
169
+ className: "ErrorResponse",
170
+ modelProperties: {
171
+ error: {
172
+ serializedName: "error",
173
+ type: {
174
+ name: "Composite",
175
+ className: "ErrorDetail"
176
+ }
177
+ }
178
+ }
179
+ }
180
+ };
181
+ const ErrorDetail = {
182
+ type: {
183
+ name: "Composite",
184
+ className: "ErrorDetail",
185
+ modelProperties: {
186
+ code: {
187
+ serializedName: "code",
188
+ readOnly: true,
189
+ type: {
190
+ name: "String"
191
+ }
192
+ },
193
+ message: {
194
+ serializedName: "message",
195
+ readOnly: true,
196
+ type: {
197
+ name: "String"
198
+ }
199
+ },
200
+ target: {
201
+ serializedName: "target",
202
+ readOnly: true,
203
+ type: {
204
+ name: "String"
205
+ }
206
+ },
207
+ details: {
208
+ serializedName: "details",
209
+ readOnly: true,
210
+ type: {
211
+ name: "Sequence",
212
+ element: {
213
+ type: {
214
+ name: "Composite",
215
+ className: "ErrorDetail"
216
+ }
217
+ }
218
+ }
219
+ },
220
+ additionalInfo: {
221
+ serializedName: "additionalInfo",
222
+ readOnly: true,
223
+ type: {
224
+ name: "Sequence",
225
+ element: {
226
+ type: {
227
+ name: "Composite",
228
+ className: "ErrorAdditionalInfo"
229
+ }
230
+ }
231
+ }
232
+ }
233
+ }
234
+ }
235
+ };
236
+ const ErrorAdditionalInfo = {
237
+ type: {
238
+ name: "Composite",
239
+ className: "ErrorAdditionalInfo",
240
+ modelProperties: {
241
+ type: {
242
+ serializedName: "type",
243
+ readOnly: true,
244
+ type: {
245
+ name: "String"
246
+ }
247
+ },
248
+ info: {
249
+ serializedName: "info",
250
+ readOnly: true,
251
+ type: {
252
+ name: "Dictionary",
253
+ value: { type: { name: "any" } }
254
+ }
255
+ }
256
+ }
257
+ }
258
+ };
259
+ const MapsAccountUpdateParameters = {
260
+ type: {
261
+ name: "Composite",
262
+ className: "MapsAccountUpdateParameters",
263
+ modelProperties: {
264
+ tags: {
265
+ serializedName: "tags",
266
+ type: {
267
+ name: "Dictionary",
268
+ value: { type: { name: "String" } }
269
+ }
270
+ },
271
+ kind: {
272
+ defaultValue: "Gen1",
273
+ serializedName: "kind",
274
+ type: {
275
+ name: "String"
276
+ }
277
+ },
278
+ sku: {
279
+ serializedName: "sku",
280
+ type: {
281
+ name: "Composite",
282
+ className: "Sku"
283
+ }
284
+ },
285
+ uniqueId: {
286
+ serializedName: "properties.uniqueId",
287
+ readOnly: true,
288
+ type: {
289
+ name: "String"
290
+ }
291
+ },
292
+ disableLocalAuth: {
293
+ defaultValue: false,
294
+ serializedName: "properties.disableLocalAuth",
295
+ type: {
296
+ name: "Boolean"
297
+ }
298
+ },
299
+ provisioningState: {
300
+ serializedName: "properties.provisioningState",
301
+ readOnly: true,
302
+ type: {
303
+ name: "String"
304
+ }
305
+ }
306
+ }
307
+ }
308
+ };
309
+ const MapsAccounts = {
310
+ type: {
311
+ name: "Composite",
312
+ className: "MapsAccounts",
313
+ modelProperties: {
314
+ value: {
315
+ serializedName: "value",
316
+ readOnly: true,
317
+ type: {
318
+ name: "Sequence",
319
+ element: {
320
+ type: {
321
+ name: "Composite",
322
+ className: "MapsAccount"
323
+ }
324
+ }
325
+ }
326
+ },
327
+ nextLink: {
328
+ serializedName: "nextLink",
329
+ type: {
330
+ name: "String"
331
+ }
332
+ }
333
+ }
334
+ }
335
+ };
336
+ const MapsAccountKeys = {
337
+ type: {
338
+ name: "Composite",
339
+ className: "MapsAccountKeys",
340
+ modelProperties: {
341
+ primaryKeyLastUpdated: {
342
+ serializedName: "primaryKeyLastUpdated",
343
+ readOnly: true,
344
+ type: {
345
+ name: "String"
346
+ }
347
+ },
348
+ primaryKey: {
349
+ serializedName: "primaryKey",
350
+ readOnly: true,
351
+ type: {
352
+ name: "String"
353
+ }
354
+ },
355
+ secondaryKey: {
356
+ serializedName: "secondaryKey",
357
+ readOnly: true,
358
+ type: {
359
+ name: "String"
360
+ }
361
+ },
362
+ secondaryKeyLastUpdated: {
363
+ serializedName: "secondaryKeyLastUpdated",
364
+ readOnly: true,
365
+ type: {
366
+ name: "String"
367
+ }
368
+ }
369
+ }
370
+ }
371
+ };
372
+ const MapsKeySpecification = {
373
+ type: {
374
+ name: "Composite",
375
+ className: "MapsKeySpecification",
376
+ modelProperties: {
377
+ keyType: {
378
+ serializedName: "keyType",
379
+ required: true,
380
+ type: {
381
+ name: "String"
382
+ }
383
+ }
384
+ }
385
+ }
386
+ };
387
+ const MapsOperations = {
388
+ type: {
389
+ name: "Composite",
390
+ className: "MapsOperations",
391
+ modelProperties: {
392
+ value: {
393
+ serializedName: "value",
394
+ readOnly: true,
395
+ type: {
396
+ name: "Sequence",
397
+ element: {
398
+ type: {
399
+ name: "Composite",
400
+ className: "OperationDetail"
401
+ }
402
+ }
403
+ }
404
+ },
405
+ nextLink: {
406
+ serializedName: "nextLink",
407
+ type: {
408
+ name: "String"
409
+ }
410
+ }
411
+ }
412
+ }
413
+ };
414
+ const OperationDetail = {
415
+ type: {
416
+ name: "Composite",
417
+ className: "OperationDetail",
418
+ modelProperties: {
419
+ name: {
420
+ serializedName: "name",
421
+ type: {
422
+ name: "String"
423
+ }
424
+ },
425
+ isDataAction: {
426
+ serializedName: "isDataAction",
427
+ type: {
428
+ name: "Boolean"
429
+ }
430
+ },
431
+ display: {
432
+ serializedName: "display",
433
+ type: {
434
+ name: "Composite",
435
+ className: "OperationDisplay"
436
+ }
437
+ },
438
+ origin: {
439
+ serializedName: "origin",
440
+ type: {
441
+ name: "String"
442
+ }
443
+ },
444
+ serviceSpecification: {
445
+ serializedName: "properties.serviceSpecification",
446
+ type: {
447
+ name: "Composite",
448
+ className: "ServiceSpecification"
449
+ }
450
+ }
451
+ }
452
+ }
453
+ };
454
+ const OperationDisplay = {
455
+ type: {
456
+ name: "Composite",
457
+ className: "OperationDisplay",
458
+ modelProperties: {
459
+ provider: {
460
+ serializedName: "provider",
461
+ type: {
462
+ name: "String"
463
+ }
464
+ },
465
+ resource: {
466
+ serializedName: "resource",
467
+ type: {
468
+ name: "String"
469
+ }
470
+ },
471
+ operation: {
472
+ serializedName: "operation",
473
+ type: {
474
+ name: "String"
475
+ }
476
+ },
477
+ description: {
478
+ serializedName: "description",
479
+ type: {
480
+ name: "String"
481
+ }
482
+ }
483
+ }
484
+ }
485
+ };
486
+ const ServiceSpecification = {
487
+ type: {
488
+ name: "Composite",
489
+ className: "ServiceSpecification",
490
+ modelProperties: {
491
+ metricSpecifications: {
492
+ serializedName: "metricSpecifications",
493
+ type: {
494
+ name: "Sequence",
495
+ element: {
496
+ type: {
497
+ name: "Composite",
498
+ className: "MetricSpecification"
499
+ }
500
+ }
501
+ }
502
+ }
503
+ }
504
+ }
505
+ };
506
+ const MetricSpecification = {
507
+ type: {
508
+ name: "Composite",
509
+ className: "MetricSpecification",
510
+ modelProperties: {
511
+ name: {
512
+ serializedName: "name",
513
+ type: {
514
+ name: "String"
515
+ }
516
+ },
517
+ displayName: {
518
+ serializedName: "displayName",
519
+ type: {
520
+ name: "String"
521
+ }
522
+ },
523
+ displayDescription: {
524
+ serializedName: "displayDescription",
525
+ type: {
526
+ name: "String"
527
+ }
528
+ },
529
+ unit: {
530
+ serializedName: "unit",
531
+ type: {
532
+ name: "String"
533
+ }
534
+ },
535
+ dimensions: {
536
+ serializedName: "dimensions",
537
+ type: {
538
+ name: "Sequence",
539
+ element: {
540
+ type: {
541
+ name: "Composite",
542
+ className: "Dimension"
543
+ }
544
+ }
545
+ }
546
+ },
547
+ aggregationType: {
548
+ serializedName: "aggregationType",
549
+ type: {
550
+ name: "String"
551
+ }
552
+ },
553
+ fillGapWithZero: {
554
+ serializedName: "fillGapWithZero",
555
+ type: {
556
+ name: "Boolean"
557
+ }
558
+ },
559
+ category: {
560
+ serializedName: "category",
561
+ type: {
562
+ name: "String"
563
+ }
564
+ },
565
+ resourceIdDimensionNameOverride: {
566
+ serializedName: "resourceIdDimensionNameOverride",
567
+ type: {
568
+ name: "String"
569
+ }
570
+ }
571
+ }
572
+ }
573
+ };
574
+ const Dimension = {
575
+ type: {
576
+ name: "Composite",
577
+ className: "Dimension",
578
+ modelProperties: {
579
+ name: {
580
+ serializedName: "name",
581
+ type: {
582
+ name: "String"
583
+ }
584
+ },
585
+ displayName: {
586
+ serializedName: "displayName",
587
+ type: {
588
+ name: "String"
589
+ }
590
+ },
591
+ internalName: {
592
+ serializedName: "internalName",
593
+ type: {
594
+ name: "String"
595
+ }
596
+ },
597
+ internalMetricName: {
598
+ serializedName: "internalMetricName",
599
+ type: {
600
+ name: "String"
601
+ }
602
+ },
603
+ sourceMdmNamespace: {
604
+ serializedName: "sourceMdmNamespace",
605
+ type: {
606
+ name: "String"
607
+ }
608
+ },
609
+ toBeExportedToShoebox: {
610
+ serializedName: "toBeExportedToShoebox",
611
+ type: {
612
+ name: "Boolean"
613
+ }
614
+ }
615
+ }
616
+ }
617
+ };
618
+ const CreatorList = {
619
+ type: {
620
+ name: "Composite",
621
+ className: "CreatorList",
622
+ modelProperties: {
623
+ value: {
624
+ serializedName: "value",
625
+ readOnly: true,
626
+ type: {
627
+ name: "Sequence",
628
+ element: {
629
+ type: {
630
+ name: "Composite",
631
+ className: "Creator"
632
+ }
633
+ }
634
+ }
635
+ },
636
+ nextLink: {
637
+ serializedName: "nextLink",
638
+ type: {
639
+ name: "String"
640
+ }
641
+ }
642
+ }
643
+ }
644
+ };
645
+ const CreatorProperties = {
646
+ type: {
647
+ name: "Composite",
648
+ className: "CreatorProperties",
649
+ modelProperties: {
650
+ provisioningState: {
651
+ serializedName: "provisioningState",
652
+ readOnly: true,
653
+ type: {
654
+ name: "String"
655
+ }
656
+ },
657
+ storageUnits: {
658
+ constraints: {
659
+ InclusiveMaximum: 100,
660
+ InclusiveMinimum: 1
661
+ },
662
+ serializedName: "storageUnits",
663
+ required: true,
664
+ type: {
665
+ name: "Number"
666
+ }
667
+ }
668
+ }
669
+ }
670
+ };
671
+ const CreatorUpdateParameters = {
672
+ type: {
673
+ name: "Composite",
674
+ className: "CreatorUpdateParameters",
675
+ modelProperties: {
676
+ tags: {
677
+ serializedName: "tags",
678
+ type: {
679
+ name: "Dictionary",
680
+ value: { type: { name: "String" } }
681
+ }
682
+ },
683
+ provisioningState: {
684
+ serializedName: "properties.provisioningState",
685
+ readOnly: true,
686
+ type: {
687
+ name: "String"
688
+ }
689
+ },
690
+ storageUnits: {
691
+ constraints: {
692
+ InclusiveMaximum: 100,
693
+ InclusiveMinimum: 1
694
+ },
695
+ serializedName: "properties.storageUnits",
696
+ type: {
697
+ name: "Number"
698
+ }
699
+ }
700
+ }
701
+ }
702
+ };
703
+ const TrackedResource = {
704
+ type: {
705
+ name: "Composite",
706
+ className: "TrackedResource",
707
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
708
+ serializedName: "tags",
709
+ type: {
710
+ name: "Dictionary",
711
+ value: { type: { name: "String" } }
712
+ }
713
+ }, location: {
714
+ serializedName: "location",
715
+ required: true,
716
+ type: {
717
+ name: "String"
718
+ }
719
+ } })
720
+ }
721
+ };
722
+ const MapsAccount = {
723
+ type: {
724
+ name: "Composite",
725
+ className: "MapsAccount",
726
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { sku: {
727
+ serializedName: "sku",
728
+ type: {
729
+ name: "Composite",
730
+ className: "Sku"
731
+ }
732
+ }, kind: {
733
+ defaultValue: "Gen1",
734
+ serializedName: "kind",
735
+ type: {
736
+ name: "String"
737
+ }
738
+ }, systemData: {
739
+ serializedName: "systemData",
740
+ type: {
741
+ name: "Composite",
742
+ className: "SystemData"
743
+ }
744
+ }, properties: {
745
+ serializedName: "properties",
746
+ type: {
747
+ name: "Composite",
748
+ className: "MapsAccountProperties"
749
+ }
750
+ } })
751
+ }
752
+ };
753
+ const Creator = {
754
+ type: {
755
+ name: "Composite",
756
+ className: "Creator",
757
+ modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { properties: {
758
+ serializedName: "properties",
759
+ type: {
760
+ name: "Composite",
761
+ className: "CreatorProperties"
762
+ }
763
+ } })
764
+ }
765
+ };
766
+
767
+ var Mappers = /*#__PURE__*/Object.freeze({
768
+ __proto__: null,
769
+ Sku: Sku,
770
+ SystemData: SystemData,
771
+ MapsAccountProperties: MapsAccountProperties,
772
+ Resource: Resource,
773
+ ErrorResponse: ErrorResponse,
774
+ ErrorDetail: ErrorDetail,
775
+ ErrorAdditionalInfo: ErrorAdditionalInfo,
776
+ MapsAccountUpdateParameters: MapsAccountUpdateParameters,
777
+ MapsAccounts: MapsAccounts,
778
+ MapsAccountKeys: MapsAccountKeys,
779
+ MapsKeySpecification: MapsKeySpecification,
780
+ MapsOperations: MapsOperations,
781
+ OperationDetail: OperationDetail,
782
+ OperationDisplay: OperationDisplay,
783
+ ServiceSpecification: ServiceSpecification,
784
+ MetricSpecification: MetricSpecification,
785
+ Dimension: Dimension,
786
+ CreatorList: CreatorList,
787
+ CreatorProperties: CreatorProperties,
788
+ CreatorUpdateParameters: CreatorUpdateParameters,
789
+ TrackedResource: TrackedResource,
790
+ MapsAccount: MapsAccount,
791
+ Creator: Creator
792
+ });
793
+
794
+ /*
795
+ * Copyright (c) Microsoft Corporation.
796
+ * Licensed under the MIT License.
797
+ *
798
+ * Code generated by Microsoft (R) AutoRest Code Generator.
799
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
800
+ */
801
+ const contentType = {
802
+ parameterPath: ["options", "contentType"],
803
+ mapper: {
804
+ defaultValue: "application/json",
805
+ isConstant: true,
806
+ serializedName: "Content-Type",
807
+ type: {
808
+ name: "String"
809
+ }
810
+ }
811
+ };
812
+ const mapsAccount = {
813
+ parameterPath: "mapsAccount",
814
+ mapper: MapsAccount
815
+ };
816
+ const accept = {
817
+ parameterPath: "accept",
818
+ mapper: {
819
+ defaultValue: "application/json",
820
+ isConstant: true,
821
+ serializedName: "Accept",
822
+ type: {
823
+ name: "String"
824
+ }
825
+ }
826
+ };
827
+ const $host = {
828
+ parameterPath: "$host",
829
+ mapper: {
830
+ serializedName: "$host",
831
+ required: true,
832
+ type: {
833
+ name: "String"
834
+ }
835
+ },
836
+ skipEncoding: true
837
+ };
838
+ const apiVersion = {
839
+ parameterPath: "apiVersion",
840
+ mapper: {
841
+ defaultValue: "2021-02-01",
842
+ isConstant: true,
843
+ serializedName: "api-version",
844
+ type: {
845
+ name: "String"
846
+ }
847
+ }
848
+ };
849
+ const subscriptionId = {
850
+ parameterPath: "subscriptionId",
851
+ mapper: {
852
+ constraints: {
853
+ MinLength: 1
854
+ },
855
+ serializedName: "subscriptionId",
856
+ required: true,
857
+ type: {
858
+ name: "String"
859
+ }
860
+ }
861
+ };
862
+ const resourceGroupName = {
863
+ parameterPath: "resourceGroupName",
864
+ mapper: {
865
+ constraints: {
866
+ MaxLength: 90,
867
+ MinLength: 1
868
+ },
869
+ serializedName: "resourceGroupName",
870
+ required: true,
871
+ type: {
872
+ name: "String"
873
+ }
874
+ }
875
+ };
876
+ const accountName = {
877
+ parameterPath: "accountName",
878
+ mapper: {
879
+ serializedName: "accountName",
880
+ required: true,
881
+ type: {
882
+ name: "String"
883
+ }
884
+ }
885
+ };
886
+ const mapsAccountUpdateParameters = {
887
+ parameterPath: "mapsAccountUpdateParameters",
888
+ mapper: MapsAccountUpdateParameters
889
+ };
890
+ const keySpecification = {
891
+ parameterPath: "keySpecification",
892
+ mapper: MapsKeySpecification
893
+ };
894
+ const nextLink = {
895
+ parameterPath: "nextLink",
896
+ mapper: {
897
+ serializedName: "nextLink",
898
+ required: true,
899
+ type: {
900
+ name: "String"
901
+ }
902
+ },
903
+ skipEncoding: true
904
+ };
905
+ const creatorResource = {
906
+ parameterPath: "creatorResource",
907
+ mapper: Creator
908
+ };
909
+ const creatorName = {
910
+ parameterPath: "creatorName",
911
+ mapper: {
912
+ serializedName: "creatorName",
913
+ required: true,
914
+ type: {
915
+ name: "String"
916
+ }
917
+ }
918
+ };
919
+ const creatorUpdateParameters = {
920
+ parameterPath: "creatorUpdateParameters",
921
+ mapper: CreatorUpdateParameters
922
+ };
923
+
924
+ /*
925
+ * Copyright (c) Microsoft Corporation.
926
+ * Licensed under the MIT License.
927
+ *
928
+ * Code generated by Microsoft (R) AutoRest Code Generator.
929
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
930
+ */
931
+ /// <reference lib="esnext.asynciterable" />
932
+ /** Class containing Accounts operations. */
933
+ class AccountsImpl {
934
+ /**
935
+ * Initialize a new instance of the class Accounts class.
936
+ * @param client Reference to the service client
937
+ */
938
+ constructor(client) {
939
+ this.client = client;
940
+ }
941
+ /**
942
+ * Get all Maps Accounts in a Resource Group
943
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
944
+ * @param options The options parameters.
945
+ */
946
+ listByResourceGroup(resourceGroupName, options) {
947
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
948
+ return {
949
+ next() {
950
+ return iter.next();
951
+ },
952
+ [Symbol.asyncIterator]() {
953
+ return this;
954
+ },
955
+ byPage: () => {
956
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
957
+ }
958
+ };
959
+ }
960
+ listByResourceGroupPagingPage(resourceGroupName, options) {
961
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
962
+ let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
963
+ yield yield tslib.__await(result.value || []);
964
+ let continuationToken = result.nextLink;
965
+ while (continuationToken) {
966
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
967
+ continuationToken = result.nextLink;
968
+ yield yield tslib.__await(result.value || []);
969
+ }
970
+ });
971
+ }
972
+ listByResourceGroupPagingAll(resourceGroupName, options) {
973
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
974
+ var e_1, _a;
975
+ try {
976
+ for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
977
+ const page = _c.value;
978
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
979
+ }
980
+ }
981
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
982
+ finally {
983
+ try {
984
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
985
+ }
986
+ finally { if (e_1) throw e_1.error; }
987
+ }
988
+ });
989
+ }
990
+ /**
991
+ * Get all Maps Accounts in a Subscription
992
+ * @param options The options parameters.
993
+ */
994
+ listBySubscription(options) {
995
+ const iter = this.listBySubscriptionPagingAll(options);
996
+ return {
997
+ next() {
998
+ return iter.next();
999
+ },
1000
+ [Symbol.asyncIterator]() {
1001
+ return this;
1002
+ },
1003
+ byPage: () => {
1004
+ return this.listBySubscriptionPagingPage(options);
1005
+ }
1006
+ };
1007
+ }
1008
+ listBySubscriptionPagingPage(options) {
1009
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
1010
+ let result = yield tslib.__await(this._listBySubscription(options));
1011
+ yield yield tslib.__await(result.value || []);
1012
+ let continuationToken = result.nextLink;
1013
+ while (continuationToken) {
1014
+ result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
1015
+ continuationToken = result.nextLink;
1016
+ yield yield tslib.__await(result.value || []);
1017
+ }
1018
+ });
1019
+ }
1020
+ listBySubscriptionPagingAll(options) {
1021
+ return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
1022
+ var e_2, _a;
1023
+ try {
1024
+ for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1025
+ const page = _c.value;
1026
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1027
+ }
1028
+ }
1029
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1030
+ finally {
1031
+ try {
1032
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1033
+ }
1034
+ finally { if (e_2) throw e_2.error; }
1035
+ }
1036
+ });
1037
+ }
1038
+ /**
1039
+ * Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST
1040
+ * APIs.
1041
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1042
+ * @param accountName The name of the Maps Account.
1043
+ * @param mapsAccount The new or updated parameters for the Maps Account.
1044
+ * @param options The options parameters.
1045
+ */
1046
+ createOrUpdate(resourceGroupName, accountName, mapsAccount, options) {
1047
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccount, options }, createOrUpdateOperationSpec);
1048
+ }
1049
+ /**
1050
+ * Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
1051
+ * Tags, Properties.
1052
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1053
+ * @param accountName The name of the Maps Account.
1054
+ * @param mapsAccountUpdateParameters The updated parameters for the Maps Account.
1055
+ * @param options The options parameters.
1056
+ */
1057
+ update(resourceGroupName, accountName, mapsAccountUpdateParameters, options) {
1058
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccountUpdateParameters, options }, updateOperationSpec);
1059
+ }
1060
+ /**
1061
+ * Delete a Maps Account.
1062
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1063
+ * @param accountName The name of the Maps Account.
1064
+ * @param options The options parameters.
1065
+ */
1066
+ delete(resourceGroupName, accountName, options) {
1067
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
1068
+ }
1069
+ /**
1070
+ * Get a Maps Account.
1071
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1072
+ * @param accountName The name of the Maps Account.
1073
+ * @param options The options parameters.
1074
+ */
1075
+ get(resourceGroupName, accountName, options) {
1076
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
1077
+ }
1078
+ /**
1079
+ * Get all Maps Accounts in a Resource Group
1080
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1081
+ * @param options The options parameters.
1082
+ */
1083
+ _listByResourceGroup(resourceGroupName, options) {
1084
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
1085
+ }
1086
+ /**
1087
+ * Get all Maps Accounts in a Subscription
1088
+ * @param options The options parameters.
1089
+ */
1090
+ _listBySubscription(options) {
1091
+ return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
1092
+ }
1093
+ /**
1094
+ * Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
1095
+ * Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
1096
+ * regeneration.
1097
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1098
+ * @param accountName The name of the Maps Account.
1099
+ * @param options The options parameters.
1100
+ */
1101
+ listKeys(resourceGroupName, accountName, options) {
1102
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listKeysOperationSpec);
1103
+ }
1104
+ /**
1105
+ * Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop
1106
+ * working immediately.
1107
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1108
+ * @param accountName The name of the Maps Account.
1109
+ * @param keySpecification Which key to regenerate: primary or secondary.
1110
+ * @param options The options parameters.
1111
+ */
1112
+ regenerateKeys(resourceGroupName, accountName, keySpecification, options) {
1113
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, keySpecification, options }, regenerateKeysOperationSpec);
1114
+ }
1115
+ /**
1116
+ * ListByResourceGroupNext
1117
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1118
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
1119
+ * @param options The options parameters.
1120
+ */
1121
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
1122
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
1123
+ }
1124
+ /**
1125
+ * ListBySubscriptionNext
1126
+ * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
1127
+ * @param options The options parameters.
1128
+ */
1129
+ _listBySubscriptionNext(nextLink, options) {
1130
+ return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
1131
+ }
1132
+ }
1133
+ // Operation Specifications
1134
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1135
+ const createOrUpdateOperationSpec = {
1136
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
1137
+ httpMethod: "PUT",
1138
+ responses: {
1139
+ 200: {
1140
+ bodyMapper: MapsAccount
1141
+ },
1142
+ 201: {
1143
+ bodyMapper: MapsAccount
1144
+ },
1145
+ default: {
1146
+ bodyMapper: ErrorResponse
1147
+ }
1148
+ },
1149
+ requestBody: mapsAccount,
1150
+ queryParameters: [apiVersion],
1151
+ urlParameters: [
1152
+ $host,
1153
+ subscriptionId,
1154
+ resourceGroupName,
1155
+ accountName
1156
+ ],
1157
+ headerParameters: [contentType, accept],
1158
+ mediaType: "json",
1159
+ serializer
1160
+ };
1161
+ const updateOperationSpec = {
1162
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
1163
+ httpMethod: "PATCH",
1164
+ responses: {
1165
+ 200: {
1166
+ bodyMapper: MapsAccount
1167
+ },
1168
+ default: {
1169
+ bodyMapper: ErrorResponse
1170
+ }
1171
+ },
1172
+ requestBody: mapsAccountUpdateParameters,
1173
+ queryParameters: [apiVersion],
1174
+ urlParameters: [
1175
+ $host,
1176
+ subscriptionId,
1177
+ resourceGroupName,
1178
+ accountName
1179
+ ],
1180
+ headerParameters: [contentType, accept],
1181
+ mediaType: "json",
1182
+ serializer
1183
+ };
1184
+ const deleteOperationSpec = {
1185
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
1186
+ httpMethod: "DELETE",
1187
+ responses: {
1188
+ 200: {},
1189
+ 204: {},
1190
+ default: {
1191
+ bodyMapper: ErrorResponse
1192
+ }
1193
+ },
1194
+ queryParameters: [apiVersion],
1195
+ urlParameters: [
1196
+ $host,
1197
+ subscriptionId,
1198
+ resourceGroupName,
1199
+ accountName
1200
+ ],
1201
+ headerParameters: [accept],
1202
+ serializer
1203
+ };
1204
+ const getOperationSpec = {
1205
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
1206
+ httpMethod: "GET",
1207
+ responses: {
1208
+ 200: {
1209
+ bodyMapper: MapsAccount
1210
+ },
1211
+ default: {
1212
+ bodyMapper: ErrorResponse
1213
+ }
1214
+ },
1215
+ queryParameters: [apiVersion],
1216
+ urlParameters: [
1217
+ $host,
1218
+ subscriptionId,
1219
+ resourceGroupName,
1220
+ accountName
1221
+ ],
1222
+ headerParameters: [accept],
1223
+ serializer
1224
+ };
1225
+ const listByResourceGroupOperationSpec = {
1226
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts",
1227
+ httpMethod: "GET",
1228
+ responses: {
1229
+ 200: {
1230
+ bodyMapper: MapsAccounts
1231
+ },
1232
+ default: {
1233
+ bodyMapper: ErrorResponse
1234
+ }
1235
+ },
1236
+ queryParameters: [apiVersion],
1237
+ urlParameters: [
1238
+ $host,
1239
+ subscriptionId,
1240
+ resourceGroupName
1241
+ ],
1242
+ headerParameters: [accept],
1243
+ serializer
1244
+ };
1245
+ const listBySubscriptionOperationSpec = {
1246
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts",
1247
+ httpMethod: "GET",
1248
+ responses: {
1249
+ 200: {
1250
+ bodyMapper: MapsAccounts
1251
+ },
1252
+ default: {
1253
+ bodyMapper: ErrorResponse
1254
+ }
1255
+ },
1256
+ queryParameters: [apiVersion],
1257
+ urlParameters: [$host, subscriptionId],
1258
+ headerParameters: [accept],
1259
+ serializer
1260
+ };
1261
+ const listKeysOperationSpec = {
1262
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys",
1263
+ httpMethod: "POST",
1264
+ responses: {
1265
+ 200: {
1266
+ bodyMapper: MapsAccountKeys
1267
+ },
1268
+ default: {
1269
+ bodyMapper: ErrorResponse
1270
+ }
1271
+ },
1272
+ queryParameters: [apiVersion],
1273
+ urlParameters: [
1274
+ $host,
1275
+ subscriptionId,
1276
+ resourceGroupName,
1277
+ accountName
1278
+ ],
1279
+ headerParameters: [accept],
1280
+ serializer
1281
+ };
1282
+ const regenerateKeysOperationSpec = {
1283
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey",
1284
+ httpMethod: "POST",
1285
+ responses: {
1286
+ 200: {
1287
+ bodyMapper: MapsAccountKeys
1288
+ },
1289
+ default: {
1290
+ bodyMapper: ErrorResponse
1291
+ }
1292
+ },
1293
+ requestBody: keySpecification,
1294
+ queryParameters: [apiVersion],
1295
+ urlParameters: [
1296
+ $host,
1297
+ subscriptionId,
1298
+ resourceGroupName,
1299
+ accountName
1300
+ ],
1301
+ headerParameters: [contentType, accept],
1302
+ mediaType: "json",
1303
+ serializer
1304
+ };
1305
+ const listByResourceGroupNextOperationSpec = {
1306
+ path: "{nextLink}",
1307
+ httpMethod: "GET",
1308
+ responses: {
1309
+ 200: {
1310
+ bodyMapper: MapsAccounts
1311
+ },
1312
+ default: {
1313
+ bodyMapper: ErrorResponse
1314
+ }
1315
+ },
1316
+ queryParameters: [apiVersion],
1317
+ urlParameters: [
1318
+ $host,
1319
+ subscriptionId,
1320
+ resourceGroupName,
1321
+ nextLink
1322
+ ],
1323
+ headerParameters: [accept],
1324
+ serializer
1325
+ };
1326
+ const listBySubscriptionNextOperationSpec = {
1327
+ path: "{nextLink}",
1328
+ httpMethod: "GET",
1329
+ responses: {
1330
+ 200: {
1331
+ bodyMapper: MapsAccounts
1332
+ },
1333
+ default: {
1334
+ bodyMapper: ErrorResponse
1335
+ }
1336
+ },
1337
+ queryParameters: [apiVersion],
1338
+ urlParameters: [
1339
+ $host,
1340
+ subscriptionId,
1341
+ nextLink
1342
+ ],
1343
+ headerParameters: [accept],
1344
+ serializer
1345
+ };
1346
+
1347
+ /*
1348
+ * Copyright (c) Microsoft Corporation.
1349
+ * Licensed under the MIT License.
1350
+ *
1351
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1352
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1353
+ */
1354
+ /// <reference lib="esnext.asynciterable" />
1355
+ /** Class containing Maps operations. */
1356
+ class MapsImpl {
1357
+ /**
1358
+ * Initialize a new instance of the class Maps class.
1359
+ * @param client Reference to the service client
1360
+ */
1361
+ constructor(client) {
1362
+ this.client = client;
1363
+ }
1364
+ /**
1365
+ * List operations available for the Maps Resource Provider
1366
+ * @param options The options parameters.
1367
+ */
1368
+ listOperations(options) {
1369
+ const iter = this.listOperationsPagingAll(options);
1370
+ return {
1371
+ next() {
1372
+ return iter.next();
1373
+ },
1374
+ [Symbol.asyncIterator]() {
1375
+ return this;
1376
+ },
1377
+ byPage: () => {
1378
+ return this.listOperationsPagingPage(options);
1379
+ }
1380
+ };
1381
+ }
1382
+ listOperationsPagingPage(options) {
1383
+ return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingPage_1() {
1384
+ let result = yield tslib.__await(this._listOperations(options));
1385
+ yield yield tslib.__await(result.value || []);
1386
+ let continuationToken = result.nextLink;
1387
+ while (continuationToken) {
1388
+ result = yield tslib.__await(this._listOperationsNext(continuationToken, options));
1389
+ continuationToken = result.nextLink;
1390
+ yield yield tslib.__await(result.value || []);
1391
+ }
1392
+ });
1393
+ }
1394
+ listOperationsPagingAll(options) {
1395
+ return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
1396
+ var e_1, _a;
1397
+ try {
1398
+ for (var _b = tslib.__asyncValues(this.listOperationsPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1399
+ const page = _c.value;
1400
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1401
+ }
1402
+ }
1403
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1404
+ finally {
1405
+ try {
1406
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1407
+ }
1408
+ finally { if (e_1) throw e_1.error; }
1409
+ }
1410
+ });
1411
+ }
1412
+ /**
1413
+ * List operations available for the Maps Resource Provider
1414
+ * @param options The options parameters.
1415
+ */
1416
+ listSubscriptionOperations(options) {
1417
+ const iter = this.listSubscriptionOperationsPagingAll(options);
1418
+ return {
1419
+ next() {
1420
+ return iter.next();
1421
+ },
1422
+ [Symbol.asyncIterator]() {
1423
+ return this;
1424
+ },
1425
+ byPage: () => {
1426
+ return this.listSubscriptionOperationsPagingPage(options);
1427
+ }
1428
+ };
1429
+ }
1430
+ listSubscriptionOperationsPagingPage(options) {
1431
+ return tslib.__asyncGenerator(this, arguments, function* listSubscriptionOperationsPagingPage_1() {
1432
+ let result = yield tslib.__await(this._listSubscriptionOperations(options));
1433
+ yield yield tslib.__await(result.value || []);
1434
+ let continuationToken = result.nextLink;
1435
+ while (continuationToken) {
1436
+ result = yield tslib.__await(this._listSubscriptionOperationsNext(continuationToken, options));
1437
+ continuationToken = result.nextLink;
1438
+ yield yield tslib.__await(result.value || []);
1439
+ }
1440
+ });
1441
+ }
1442
+ listSubscriptionOperationsPagingAll(options) {
1443
+ return tslib.__asyncGenerator(this, arguments, function* listSubscriptionOperationsPagingAll_1() {
1444
+ var e_2, _a;
1445
+ try {
1446
+ for (var _b = tslib.__asyncValues(this.listSubscriptionOperationsPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1447
+ const page = _c.value;
1448
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1449
+ }
1450
+ }
1451
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
1452
+ finally {
1453
+ try {
1454
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1455
+ }
1456
+ finally { if (e_2) throw e_2.error; }
1457
+ }
1458
+ });
1459
+ }
1460
+ /**
1461
+ * List operations available for the Maps Resource Provider
1462
+ * @param options The options parameters.
1463
+ */
1464
+ _listOperations(options) {
1465
+ return this.client.sendOperationRequest({ options }, listOperationsOperationSpec);
1466
+ }
1467
+ /**
1468
+ * List operations available for the Maps Resource Provider
1469
+ * @param options The options parameters.
1470
+ */
1471
+ _listSubscriptionOperations(options) {
1472
+ return this.client.sendOperationRequest({ options }, listSubscriptionOperationsOperationSpec);
1473
+ }
1474
+ /**
1475
+ * ListOperationsNext
1476
+ * @param nextLink The nextLink from the previous successful call to the ListOperations method.
1477
+ * @param options The options parameters.
1478
+ */
1479
+ _listOperationsNext(nextLink, options) {
1480
+ return this.client.sendOperationRequest({ nextLink, options }, listOperationsNextOperationSpec);
1481
+ }
1482
+ /**
1483
+ * ListSubscriptionOperationsNext
1484
+ * @param nextLink The nextLink from the previous successful call to the ListSubscriptionOperations
1485
+ * method.
1486
+ * @param options The options parameters.
1487
+ */
1488
+ _listSubscriptionOperationsNext(nextLink, options) {
1489
+ return this.client.sendOperationRequest({ nextLink, options }, listSubscriptionOperationsNextOperationSpec);
1490
+ }
1491
+ }
1492
+ // Operation Specifications
1493
+ const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
1494
+ const listOperationsOperationSpec = {
1495
+ path: "/providers/Microsoft.Maps/operations",
1496
+ httpMethod: "GET",
1497
+ responses: {
1498
+ 200: {
1499
+ bodyMapper: MapsOperations
1500
+ },
1501
+ default: {
1502
+ bodyMapper: ErrorResponse
1503
+ }
1504
+ },
1505
+ queryParameters: [apiVersion],
1506
+ urlParameters: [$host],
1507
+ headerParameters: [accept],
1508
+ serializer: serializer$1
1509
+ };
1510
+ const listSubscriptionOperationsOperationSpec = {
1511
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/operations",
1512
+ httpMethod: "GET",
1513
+ responses: {
1514
+ 200: {
1515
+ bodyMapper: MapsOperations
1516
+ },
1517
+ default: {
1518
+ bodyMapper: ErrorResponse
1519
+ }
1520
+ },
1521
+ queryParameters: [apiVersion],
1522
+ urlParameters: [$host, subscriptionId],
1523
+ headerParameters: [accept],
1524
+ serializer: serializer$1
1525
+ };
1526
+ const listOperationsNextOperationSpec = {
1527
+ path: "{nextLink}",
1528
+ httpMethod: "GET",
1529
+ responses: {
1530
+ 200: {
1531
+ bodyMapper: MapsOperations
1532
+ },
1533
+ default: {
1534
+ bodyMapper: ErrorResponse
1535
+ }
1536
+ },
1537
+ queryParameters: [apiVersion],
1538
+ urlParameters: [$host, nextLink],
1539
+ headerParameters: [accept],
1540
+ serializer: serializer$1
1541
+ };
1542
+ const listSubscriptionOperationsNextOperationSpec = {
1543
+ path: "{nextLink}",
1544
+ httpMethod: "GET",
1545
+ responses: {
1546
+ 200: {
1547
+ bodyMapper: MapsOperations
1548
+ },
1549
+ default: {
1550
+ bodyMapper: ErrorResponse
1551
+ }
1552
+ },
1553
+ queryParameters: [apiVersion],
1554
+ urlParameters: [
1555
+ $host,
1556
+ subscriptionId,
1557
+ nextLink
1558
+ ],
1559
+ headerParameters: [accept],
1560
+ serializer: serializer$1
1561
+ };
1562
+
1563
+ /*
1564
+ * Copyright (c) Microsoft Corporation.
1565
+ * Licensed under the MIT License.
1566
+ *
1567
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1568
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1569
+ */
1570
+ /// <reference lib="esnext.asynciterable" />
1571
+ /** Class containing Creators operations. */
1572
+ class CreatorsImpl {
1573
+ /**
1574
+ * Initialize a new instance of the class Creators class.
1575
+ * @param client Reference to the service client
1576
+ */
1577
+ constructor(client) {
1578
+ this.client = client;
1579
+ }
1580
+ /**
1581
+ * Get all Creator instances for an Azure Maps Account
1582
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1583
+ * @param accountName The name of the Maps Account.
1584
+ * @param options The options parameters.
1585
+ */
1586
+ listByAccount(resourceGroupName, accountName, options) {
1587
+ const iter = this.listByAccountPagingAll(resourceGroupName, accountName, options);
1588
+ return {
1589
+ next() {
1590
+ return iter.next();
1591
+ },
1592
+ [Symbol.asyncIterator]() {
1593
+ return this;
1594
+ },
1595
+ byPage: () => {
1596
+ return this.listByAccountPagingPage(resourceGroupName, accountName, options);
1597
+ }
1598
+ };
1599
+ }
1600
+ listByAccountPagingPage(resourceGroupName, accountName, options) {
1601
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingPage_1() {
1602
+ let result = yield tslib.__await(this._listByAccount(resourceGroupName, accountName, options));
1603
+ yield yield tslib.__await(result.value || []);
1604
+ let continuationToken = result.nextLink;
1605
+ while (continuationToken) {
1606
+ result = yield tslib.__await(this._listByAccountNext(resourceGroupName, accountName, continuationToken, options));
1607
+ continuationToken = result.nextLink;
1608
+ yield yield tslib.__await(result.value || []);
1609
+ }
1610
+ });
1611
+ }
1612
+ listByAccountPagingAll(resourceGroupName, accountName, options) {
1613
+ return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
1614
+ var e_1, _a;
1615
+ try {
1616
+ for (var _b = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
1617
+ const page = _c.value;
1618
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
1619
+ }
1620
+ }
1621
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1622
+ finally {
1623
+ try {
1624
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
1625
+ }
1626
+ finally { if (e_1) throw e_1.error; }
1627
+ }
1628
+ });
1629
+ }
1630
+ /**
1631
+ * Get all Creator instances for an Azure Maps Account
1632
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1633
+ * @param accountName The name of the Maps Account.
1634
+ * @param options The options parameters.
1635
+ */
1636
+ _listByAccount(resourceGroupName, accountName, options) {
1637
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, listByAccountOperationSpec);
1638
+ }
1639
+ /**
1640
+ * Create or update a Maps Creator resource. Creator resource will manage Azure resources required to
1641
+ * populate a custom set of mapping data. It requires an account to exist before it can be created.
1642
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1643
+ * @param accountName The name of the Maps Account.
1644
+ * @param creatorName The name of the Maps Creator instance.
1645
+ * @param creatorResource The new or updated parameters for the Creator resource.
1646
+ * @param options The options parameters.
1647
+ */
1648
+ createOrUpdate(resourceGroupName, accountName, creatorName, creatorResource, options) {
1649
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, creatorResource, options }, createOrUpdateOperationSpec$1);
1650
+ }
1651
+ /**
1652
+ * Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
1653
+ * such as Tags.
1654
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1655
+ * @param accountName The name of the Maps Account.
1656
+ * @param creatorName The name of the Maps Creator instance.
1657
+ * @param creatorUpdateParameters The update parameters for Maps Creator.
1658
+ * @param options The options parameters.
1659
+ */
1660
+ update(resourceGroupName, accountName, creatorName, creatorUpdateParameters, options) {
1661
+ return this.client.sendOperationRequest({
1662
+ resourceGroupName,
1663
+ accountName,
1664
+ creatorName,
1665
+ creatorUpdateParameters,
1666
+ options
1667
+ }, updateOperationSpec$1);
1668
+ }
1669
+ /**
1670
+ * Delete a Maps Creator resource.
1671
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1672
+ * @param accountName The name of the Maps Account.
1673
+ * @param creatorName The name of the Maps Creator instance.
1674
+ * @param options The options parameters.
1675
+ */
1676
+ delete(resourceGroupName, accountName, creatorName, options) {
1677
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, options }, deleteOperationSpec$1);
1678
+ }
1679
+ /**
1680
+ * Get a Maps Creator resource.
1681
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1682
+ * @param accountName The name of the Maps Account.
1683
+ * @param creatorName The name of the Maps Creator instance.
1684
+ * @param options The options parameters.
1685
+ */
1686
+ get(resourceGroupName, accountName, creatorName, options) {
1687
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, options }, getOperationSpec$1);
1688
+ }
1689
+ /**
1690
+ * ListByAccountNext
1691
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
1692
+ * @param accountName The name of the Maps Account.
1693
+ * @param nextLink The nextLink from the previous successful call to the ListByAccount method.
1694
+ * @param options The options parameters.
1695
+ */
1696
+ _listByAccountNext(resourceGroupName, accountName, nextLink, options) {
1697
+ return this.client.sendOperationRequest({ resourceGroupName, accountName, nextLink, options }, listByAccountNextOperationSpec);
1698
+ }
1699
+ }
1700
+ // Operation Specifications
1701
+ const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1702
+ const listByAccountOperationSpec = {
1703
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators",
1704
+ httpMethod: "GET",
1705
+ responses: {
1706
+ 200: {
1707
+ bodyMapper: CreatorList
1708
+ },
1709
+ default: {
1710
+ bodyMapper: ErrorResponse
1711
+ }
1712
+ },
1713
+ queryParameters: [apiVersion],
1714
+ urlParameters: [
1715
+ $host,
1716
+ subscriptionId,
1717
+ resourceGroupName,
1718
+ accountName
1719
+ ],
1720
+ headerParameters: [accept],
1721
+ serializer: serializer$2
1722
+ };
1723
+ const createOrUpdateOperationSpec$1 = {
1724
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
1725
+ httpMethod: "PUT",
1726
+ responses: {
1727
+ 200: {
1728
+ bodyMapper: Creator
1729
+ },
1730
+ 201: {
1731
+ bodyMapper: Creator
1732
+ },
1733
+ default: {
1734
+ bodyMapper: ErrorResponse
1735
+ }
1736
+ },
1737
+ requestBody: creatorResource,
1738
+ queryParameters: [apiVersion],
1739
+ urlParameters: [
1740
+ $host,
1741
+ subscriptionId,
1742
+ resourceGroupName,
1743
+ accountName,
1744
+ creatorName
1745
+ ],
1746
+ headerParameters: [contentType, accept],
1747
+ mediaType: "json",
1748
+ serializer: serializer$2
1749
+ };
1750
+ const updateOperationSpec$1 = {
1751
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
1752
+ httpMethod: "PATCH",
1753
+ responses: {
1754
+ 200: {
1755
+ bodyMapper: Creator
1756
+ },
1757
+ default: {
1758
+ bodyMapper: ErrorResponse
1759
+ }
1760
+ },
1761
+ requestBody: creatorUpdateParameters,
1762
+ queryParameters: [apiVersion],
1763
+ urlParameters: [
1764
+ $host,
1765
+ subscriptionId,
1766
+ resourceGroupName,
1767
+ accountName,
1768
+ creatorName
1769
+ ],
1770
+ headerParameters: [contentType, accept],
1771
+ mediaType: "json",
1772
+ serializer: serializer$2
1773
+ };
1774
+ const deleteOperationSpec$1 = {
1775
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
1776
+ httpMethod: "DELETE",
1777
+ responses: {
1778
+ 200: {},
1779
+ 204: {},
1780
+ default: {
1781
+ bodyMapper: ErrorResponse
1782
+ }
1783
+ },
1784
+ queryParameters: [apiVersion],
1785
+ urlParameters: [
1786
+ $host,
1787
+ subscriptionId,
1788
+ resourceGroupName,
1789
+ accountName,
1790
+ creatorName
1791
+ ],
1792
+ headerParameters: [accept],
1793
+ serializer: serializer$2
1794
+ };
1795
+ const getOperationSpec$1 = {
1796
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
1797
+ httpMethod: "GET",
1798
+ responses: {
1799
+ 200: {
1800
+ bodyMapper: Creator
1801
+ },
1802
+ default: {
1803
+ bodyMapper: ErrorResponse
1804
+ }
1805
+ },
1806
+ queryParameters: [apiVersion],
1807
+ urlParameters: [
1808
+ $host,
1809
+ subscriptionId,
1810
+ resourceGroupName,
1811
+ accountName,
1812
+ creatorName
1813
+ ],
1814
+ headerParameters: [accept],
1815
+ serializer: serializer$2
1816
+ };
1817
+ const listByAccountNextOperationSpec = {
1818
+ path: "{nextLink}",
1819
+ httpMethod: "GET",
1820
+ responses: {
1821
+ 200: {
1822
+ bodyMapper: CreatorList
1823
+ },
1824
+ default: {
1825
+ bodyMapper: ErrorResponse
1826
+ }
1827
+ },
1828
+ queryParameters: [apiVersion],
1829
+ urlParameters: [
1830
+ $host,
1831
+ subscriptionId,
1832
+ resourceGroupName,
1833
+ accountName,
1834
+ nextLink
1835
+ ],
1836
+ headerParameters: [accept],
1837
+ serializer: serializer$2
1838
+ };
1839
+
1840
+ /*
1841
+ * Copyright (c) Microsoft Corporation.
1842
+ * Licensed under the MIT License.
1843
+ *
1844
+ * Code generated by Microsoft (R) AutoRest Code Generator.
1845
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1846
+ */
1847
+ class AzureMapsManagementClient extends coreClient.ServiceClient {
1848
+ /**
1849
+ * Initializes a new instance of the AzureMapsManagementClient class.
1850
+ * @param credentials Subscription credentials which uniquely identify client subscription.
1851
+ * @param subscriptionId The ID of the target subscription.
1852
+ * @param options The parameter options
1853
+ */
1854
+ constructor(credentials, subscriptionId, options) {
1855
+ if (credentials === undefined) {
1856
+ throw new Error("'credentials' cannot be null");
1857
+ }
1858
+ if (subscriptionId === undefined) {
1859
+ throw new Error("'subscriptionId' cannot be null");
1860
+ }
1861
+ // Initializing default values for options
1862
+ if (!options) {
1863
+ options = {};
1864
+ }
1865
+ const defaults = {
1866
+ requestContentType: "application/json; charset=utf-8",
1867
+ credential: credentials
1868
+ };
1869
+ const packageDetails = `azsdk-js-arm-maps/3.0.0`;
1870
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1871
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1872
+ : `${packageDetails}`;
1873
+ if (!options.credentialScopes) {
1874
+ options.credentialScopes = ["https://management.azure.com/.default"];
1875
+ }
1876
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1877
+ userAgentPrefix
1878
+ }, baseUri: options.endpoint || "https://management.azure.com" });
1879
+ super(optionsWithDefaults);
1880
+ // Parameter assignments
1881
+ this.subscriptionId = subscriptionId;
1882
+ // Assigning values to Constant parameters
1883
+ this.$host = options.$host || "https://management.azure.com";
1884
+ this.apiVersion = options.apiVersion || "2021-02-01";
1885
+ this.accounts = new AccountsImpl(this);
1886
+ this.maps = new MapsImpl(this);
1887
+ this.creators = new CreatorsImpl(this);
1888
+ }
1889
+ }
1890
+
1891
+ exports.AzureMapsManagementClient = AzureMapsManagementClient;
1892
+ //# sourceMappingURL=index.js.map