@azure/arm-maps 3.0.0 → 3.1.0-beta.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.
- package/CHANGELOG.md +28 -0
- package/README.md +12 -1
- package/dist/index.js +426 -40
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +130 -0
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsGetSample.js +31 -0
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListKeysSample.js +31 -0
- package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListSasSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListSasSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListSasSample.js +47 -0
- package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +32 -0
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js +112 -0
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +37 -0
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.js +32 -0
- package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsGetSample.js +32 -0
- package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.js +45 -0
- package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.js +36 -0
- package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.js +43 -0
- package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.d.ts +2 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +43 -0
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -0
- package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureMapsManagementClient.js +21 -3
- package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +115 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +6 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +282 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +1 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +6 -2
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.d.ts +16 -1
- package/dist-esm/src/operations/accounts.d.ts.map +1 -1
- package/dist-esm/src/operations/accounts.js +40 -0
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +16 -1
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -1
- package/package.json +36 -15
- package/review/arm-maps.api.md +78 -0
- package/rollup.config.js +6 -72
- package/src/azureMapsManagementClient.ts +28 -3
- package/src/models/index.ts +130 -2
- package/src/models/mappers.ts +293 -0
- package/src/models/parameters.ts +7 -1
- package/src/operations/accounts.ts +53 -0
- package/src/operationsInterfaces/accounts.ts +23 -0
- package/tsconfig.json +19 -5
- package/types/arm-maps.d.ts +142 -2
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/dist/index.js
CHANGED
|
@@ -3,8 +3,30 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var coreClient = require('@azure/core-client');
|
|
6
|
+
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
6
7
|
var tslib = require('tslib');
|
|
7
8
|
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return e[k]; }
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
n["default"] = e;
|
|
24
|
+
return Object.freeze(n);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
|
+
|
|
8
30
|
/*
|
|
9
31
|
* Copyright (c) Microsoft Corporation.
|
|
10
32
|
* Licensed under the MIT License.
|
|
@@ -12,21 +34,35 @@ var tslib = require('tslib');
|
|
|
12
34
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
35
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
36
|
*/
|
|
37
|
+
/** Known values of {@link Name} that the service accepts. */
|
|
38
|
+
exports.KnownName = void 0;
|
|
15
39
|
(function (KnownName) {
|
|
16
40
|
KnownName["S0"] = "S0";
|
|
17
41
|
KnownName["S1"] = "S1";
|
|
18
42
|
KnownName["G2"] = "G2";
|
|
19
43
|
})(exports.KnownName || (exports.KnownName = {}));
|
|
44
|
+
/** Known values of {@link Kind} that the service accepts. */
|
|
45
|
+
exports.KnownKind = void 0;
|
|
20
46
|
(function (KnownKind) {
|
|
21
47
|
KnownKind["Gen1"] = "Gen1";
|
|
22
48
|
KnownKind["Gen2"] = "Gen2";
|
|
23
49
|
})(exports.KnownKind || (exports.KnownKind = {}));
|
|
50
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
51
|
+
exports.KnownCreatedByType = void 0;
|
|
24
52
|
(function (KnownCreatedByType) {
|
|
25
53
|
KnownCreatedByType["User"] = "User";
|
|
26
54
|
KnownCreatedByType["Application"] = "Application";
|
|
27
55
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
28
56
|
KnownCreatedByType["Key"] = "Key";
|
|
29
57
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
58
|
+
/** Known values of {@link SigningKey} that the service accepts. */
|
|
59
|
+
exports.KnownSigningKey = void 0;
|
|
60
|
+
(function (KnownSigningKey) {
|
|
61
|
+
KnownSigningKey["PrimaryKey"] = "primaryKey";
|
|
62
|
+
KnownSigningKey["SecondaryKey"] = "secondaryKey";
|
|
63
|
+
})(exports.KnownSigningKey || (exports.KnownSigningKey = {}));
|
|
64
|
+
/** Known values of {@link KeyType} that the service accepts. */
|
|
65
|
+
exports.KnownKeyType = void 0;
|
|
30
66
|
(function (KnownKeyType) {
|
|
31
67
|
KnownKeyType["Primary"] = "primary";
|
|
32
68
|
KnownKeyType["Secondary"] = "secondary";
|
|
@@ -105,6 +141,74 @@ const SystemData = {
|
|
|
105
141
|
}
|
|
106
142
|
}
|
|
107
143
|
};
|
|
144
|
+
const ManagedServiceIdentity = {
|
|
145
|
+
type: {
|
|
146
|
+
name: "Composite",
|
|
147
|
+
className: "ManagedServiceIdentity",
|
|
148
|
+
modelProperties: {
|
|
149
|
+
principalId: {
|
|
150
|
+
serializedName: "principalId",
|
|
151
|
+
readOnly: true,
|
|
152
|
+
type: {
|
|
153
|
+
name: "String"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
tenantId: {
|
|
157
|
+
serializedName: "tenantId",
|
|
158
|
+
readOnly: true,
|
|
159
|
+
type: {
|
|
160
|
+
name: "String"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
type: {
|
|
164
|
+
serializedName: "type",
|
|
165
|
+
type: {
|
|
166
|
+
name: "Enum",
|
|
167
|
+
allowedValues: [
|
|
168
|
+
"SystemAssigned",
|
|
169
|
+
"UserAssigned",
|
|
170
|
+
"SystemAssigned, UserAssigned",
|
|
171
|
+
"None"
|
|
172
|
+
]
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
userAssignedIdentities: {
|
|
176
|
+
serializedName: "userAssignedIdentities",
|
|
177
|
+
type: {
|
|
178
|
+
name: "Dictionary",
|
|
179
|
+
value: {
|
|
180
|
+
type: {
|
|
181
|
+
name: "Composite",
|
|
182
|
+
className: "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties = {
|
|
191
|
+
type: {
|
|
192
|
+
name: "Composite",
|
|
193
|
+
className: "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties",
|
|
194
|
+
modelProperties: {
|
|
195
|
+
principalId: {
|
|
196
|
+
serializedName: "principalId",
|
|
197
|
+
readOnly: true,
|
|
198
|
+
type: {
|
|
199
|
+
name: "String"
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
clientId: {
|
|
203
|
+
serializedName: "clientId",
|
|
204
|
+
readOnly: true,
|
|
205
|
+
type: {
|
|
206
|
+
name: "String"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
};
|
|
108
212
|
const MapsAccountProperties = {
|
|
109
213
|
type: {
|
|
110
214
|
name: "Composite",
|
|
@@ -130,6 +234,93 @@ const MapsAccountProperties = {
|
|
|
130
234
|
type: {
|
|
131
235
|
name: "String"
|
|
132
236
|
}
|
|
237
|
+
},
|
|
238
|
+
linkedResources: {
|
|
239
|
+
constraints: {
|
|
240
|
+
MaxItems: 10
|
|
241
|
+
},
|
|
242
|
+
serializedName: "linkedResources",
|
|
243
|
+
type: {
|
|
244
|
+
name: "Sequence",
|
|
245
|
+
element: {
|
|
246
|
+
type: {
|
|
247
|
+
name: "Composite",
|
|
248
|
+
className: "LinkedResource"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
cors: {
|
|
254
|
+
serializedName: "cors",
|
|
255
|
+
type: {
|
|
256
|
+
name: "Composite",
|
|
257
|
+
className: "CorsRules"
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
const LinkedResource = {
|
|
264
|
+
type: {
|
|
265
|
+
name: "Composite",
|
|
266
|
+
className: "LinkedResource",
|
|
267
|
+
modelProperties: {
|
|
268
|
+
uniqueName: {
|
|
269
|
+
serializedName: "uniqueName",
|
|
270
|
+
required: true,
|
|
271
|
+
type: {
|
|
272
|
+
name: "String"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
id: {
|
|
276
|
+
serializedName: "id",
|
|
277
|
+
required: true,
|
|
278
|
+
type: {
|
|
279
|
+
name: "String"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
};
|
|
285
|
+
const CorsRules = {
|
|
286
|
+
type: {
|
|
287
|
+
name: "Composite",
|
|
288
|
+
className: "CorsRules",
|
|
289
|
+
modelProperties: {
|
|
290
|
+
corsRules: {
|
|
291
|
+
constraints: {
|
|
292
|
+
MaxItems: 5
|
|
293
|
+
},
|
|
294
|
+
serializedName: "corsRules",
|
|
295
|
+
type: {
|
|
296
|
+
name: "Sequence",
|
|
297
|
+
element: {
|
|
298
|
+
type: {
|
|
299
|
+
name: "Composite",
|
|
300
|
+
className: "CorsRule"
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
const CorsRule = {
|
|
309
|
+
type: {
|
|
310
|
+
name: "Composite",
|
|
311
|
+
className: "CorsRule",
|
|
312
|
+
modelProperties: {
|
|
313
|
+
allowedOrigins: {
|
|
314
|
+
serializedName: "allowedOrigins",
|
|
315
|
+
required: true,
|
|
316
|
+
type: {
|
|
317
|
+
name: "Sequence",
|
|
318
|
+
element: {
|
|
319
|
+
type: {
|
|
320
|
+
name: "String"
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
133
324
|
}
|
|
134
325
|
}
|
|
135
326
|
}
|
|
@@ -282,6 +473,13 @@ const MapsAccountUpdateParameters = {
|
|
|
282
473
|
className: "Sku"
|
|
283
474
|
}
|
|
284
475
|
},
|
|
476
|
+
identity: {
|
|
477
|
+
serializedName: "identity",
|
|
478
|
+
type: {
|
|
479
|
+
name: "Composite",
|
|
480
|
+
className: "ManagedServiceIdentity"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
285
483
|
uniqueId: {
|
|
286
484
|
serializedName: "properties.uniqueId",
|
|
287
485
|
readOnly: true,
|
|
@@ -302,6 +500,28 @@ const MapsAccountUpdateParameters = {
|
|
|
302
500
|
type: {
|
|
303
501
|
name: "String"
|
|
304
502
|
}
|
|
503
|
+
},
|
|
504
|
+
linkedResources: {
|
|
505
|
+
constraints: {
|
|
506
|
+
MaxItems: 10
|
|
507
|
+
},
|
|
508
|
+
serializedName: "properties.linkedResources",
|
|
509
|
+
type: {
|
|
510
|
+
name: "Sequence",
|
|
511
|
+
element: {
|
|
512
|
+
type: {
|
|
513
|
+
name: "Composite",
|
|
514
|
+
className: "LinkedResource"
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
cors: {
|
|
520
|
+
serializedName: "properties.cors",
|
|
521
|
+
type: {
|
|
522
|
+
name: "Composite",
|
|
523
|
+
className: "CorsRules"
|
|
524
|
+
}
|
|
305
525
|
}
|
|
306
526
|
}
|
|
307
527
|
}
|
|
@@ -333,6 +553,80 @@ const MapsAccounts = {
|
|
|
333
553
|
}
|
|
334
554
|
}
|
|
335
555
|
};
|
|
556
|
+
const AccountSasParameters = {
|
|
557
|
+
type: {
|
|
558
|
+
name: "Composite",
|
|
559
|
+
className: "AccountSasParameters",
|
|
560
|
+
modelProperties: {
|
|
561
|
+
signingKey: {
|
|
562
|
+
serializedName: "signingKey",
|
|
563
|
+
required: true,
|
|
564
|
+
type: {
|
|
565
|
+
name: "String"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
principalId: {
|
|
569
|
+
serializedName: "principalId",
|
|
570
|
+
required: true,
|
|
571
|
+
type: {
|
|
572
|
+
name: "String"
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
regions: {
|
|
576
|
+
serializedName: "regions",
|
|
577
|
+
type: {
|
|
578
|
+
name: "Sequence",
|
|
579
|
+
element: {
|
|
580
|
+
type: {
|
|
581
|
+
name: "String"
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
maxRatePerSecond: {
|
|
587
|
+
defaultValue: 500,
|
|
588
|
+
constraints: {
|
|
589
|
+
InclusiveMaximum: 500,
|
|
590
|
+
ExclusiveMinimum: 0
|
|
591
|
+
},
|
|
592
|
+
serializedName: "maxRatePerSecond",
|
|
593
|
+
required: true,
|
|
594
|
+
type: {
|
|
595
|
+
name: "Number"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
start: {
|
|
599
|
+
serializedName: "start",
|
|
600
|
+
required: true,
|
|
601
|
+
type: {
|
|
602
|
+
name: "String"
|
|
603
|
+
}
|
|
604
|
+
},
|
|
605
|
+
expiry: {
|
|
606
|
+
serializedName: "expiry",
|
|
607
|
+
required: true,
|
|
608
|
+
type: {
|
|
609
|
+
name: "String"
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
const MapsAccountSasToken = {
|
|
616
|
+
type: {
|
|
617
|
+
name: "Composite",
|
|
618
|
+
className: "MapsAccountSasToken",
|
|
619
|
+
modelProperties: {
|
|
620
|
+
accountSasToken: {
|
|
621
|
+
serializedName: "accountSasToken",
|
|
622
|
+
readOnly: true,
|
|
623
|
+
type: {
|
|
624
|
+
name: "String"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
};
|
|
336
630
|
const MapsAccountKeys = {
|
|
337
631
|
type: {
|
|
338
632
|
name: "Composite",
|
|
@@ -567,6 +861,18 @@ const MetricSpecification = {
|
|
|
567
861
|
type: {
|
|
568
862
|
name: "String"
|
|
569
863
|
}
|
|
864
|
+
},
|
|
865
|
+
sourceMdmAccount: {
|
|
866
|
+
serializedName: "sourceMdmAccount",
|
|
867
|
+
type: {
|
|
868
|
+
name: "String"
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
internalMetricName: {
|
|
872
|
+
serializedName: "internalMetricName",
|
|
873
|
+
type: {
|
|
874
|
+
name: "String"
|
|
875
|
+
}
|
|
570
876
|
}
|
|
571
877
|
}
|
|
572
878
|
}
|
|
@@ -741,6 +1047,12 @@ const MapsAccount = {
|
|
|
741
1047
|
name: "Composite",
|
|
742
1048
|
className: "SystemData"
|
|
743
1049
|
}
|
|
1050
|
+
}, identity: {
|
|
1051
|
+
serializedName: "identity",
|
|
1052
|
+
type: {
|
|
1053
|
+
name: "Composite",
|
|
1054
|
+
className: "ManagedServiceIdentity"
|
|
1055
|
+
}
|
|
744
1056
|
}, properties: {
|
|
745
1057
|
serializedName: "properties",
|
|
746
1058
|
type: {
|
|
@@ -760,6 +1072,12 @@ const Creator = {
|
|
|
760
1072
|
name: "Composite",
|
|
761
1073
|
className: "CreatorProperties"
|
|
762
1074
|
}
|
|
1075
|
+
}, systemData: {
|
|
1076
|
+
serializedName: "systemData",
|
|
1077
|
+
type: {
|
|
1078
|
+
name: "Composite",
|
|
1079
|
+
className: "SystemData"
|
|
1080
|
+
}
|
|
763
1081
|
} })
|
|
764
1082
|
}
|
|
765
1083
|
};
|
|
@@ -768,13 +1086,20 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
768
1086
|
__proto__: null,
|
|
769
1087
|
Sku: Sku,
|
|
770
1088
|
SystemData: SystemData,
|
|
1089
|
+
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1090
|
+
Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties,
|
|
771
1091
|
MapsAccountProperties: MapsAccountProperties,
|
|
1092
|
+
LinkedResource: LinkedResource,
|
|
1093
|
+
CorsRules: CorsRules,
|
|
1094
|
+
CorsRule: CorsRule,
|
|
772
1095
|
Resource: Resource,
|
|
773
1096
|
ErrorResponse: ErrorResponse,
|
|
774
1097
|
ErrorDetail: ErrorDetail,
|
|
775
1098
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
776
1099
|
MapsAccountUpdateParameters: MapsAccountUpdateParameters,
|
|
777
1100
|
MapsAccounts: MapsAccounts,
|
|
1101
|
+
AccountSasParameters: AccountSasParameters,
|
|
1102
|
+
MapsAccountSasToken: MapsAccountSasToken,
|
|
778
1103
|
MapsAccountKeys: MapsAccountKeys,
|
|
779
1104
|
MapsKeySpecification: MapsKeySpecification,
|
|
780
1105
|
MapsOperations: MapsOperations,
|
|
@@ -838,7 +1163,7 @@ const $host = {
|
|
|
838
1163
|
const apiVersion = {
|
|
839
1164
|
parameterPath: "apiVersion",
|
|
840
1165
|
mapper: {
|
|
841
|
-
defaultValue: "2021-
|
|
1166
|
+
defaultValue: "2021-12-01-preview",
|
|
842
1167
|
isConstant: true,
|
|
843
1168
|
serializedName: "api-version",
|
|
844
1169
|
type: {
|
|
@@ -887,6 +1212,10 @@ const mapsAccountUpdateParameters = {
|
|
|
887
1212
|
parameterPath: "mapsAccountUpdateParameters",
|
|
888
1213
|
mapper: MapsAccountUpdateParameters
|
|
889
1214
|
};
|
|
1215
|
+
const mapsAccountSasParameters = {
|
|
1216
|
+
parameterPath: "mapsAccountSasParameters",
|
|
1217
|
+
mapper: AccountSasParameters
|
|
1218
|
+
};
|
|
890
1219
|
const keySpecification = {
|
|
891
1220
|
parameterPath: "keySpecification",
|
|
892
1221
|
mapper: MapsKeySpecification
|
|
@@ -1044,7 +1373,7 @@ class AccountsImpl {
|
|
|
1044
1373
|
* @param options The options parameters.
|
|
1045
1374
|
*/
|
|
1046
1375
|
createOrUpdate(resourceGroupName, accountName, mapsAccount, options) {
|
|
1047
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccount, options }, createOrUpdateOperationSpec);
|
|
1376
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccount, options }, createOrUpdateOperationSpec$1);
|
|
1048
1377
|
}
|
|
1049
1378
|
/**
|
|
1050
1379
|
* Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku,
|
|
@@ -1055,7 +1384,7 @@ class AccountsImpl {
|
|
|
1055
1384
|
* @param options The options parameters.
|
|
1056
1385
|
*/
|
|
1057
1386
|
update(resourceGroupName, accountName, mapsAccountUpdateParameters, options) {
|
|
1058
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccountUpdateParameters, options }, updateOperationSpec);
|
|
1387
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccountUpdateParameters, options }, updateOperationSpec$1);
|
|
1059
1388
|
}
|
|
1060
1389
|
/**
|
|
1061
1390
|
* Delete a Maps Account.
|
|
@@ -1064,7 +1393,7 @@ class AccountsImpl {
|
|
|
1064
1393
|
* @param options The options parameters.
|
|
1065
1394
|
*/
|
|
1066
1395
|
delete(resourceGroupName, accountName, options) {
|
|
1067
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec);
|
|
1396
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, deleteOperationSpec$1);
|
|
1068
1397
|
}
|
|
1069
1398
|
/**
|
|
1070
1399
|
* Get a Maps Account.
|
|
@@ -1073,7 +1402,7 @@ class AccountsImpl {
|
|
|
1073
1402
|
* @param options The options parameters.
|
|
1074
1403
|
*/
|
|
1075
1404
|
get(resourceGroupName, accountName, options) {
|
|
1076
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec);
|
|
1405
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, options }, getOperationSpec$1);
|
|
1077
1406
|
}
|
|
1078
1407
|
/**
|
|
1079
1408
|
* Get all Maps Accounts in a Resource Group
|
|
@@ -1090,6 +1419,23 @@ class AccountsImpl {
|
|
|
1090
1419
|
_listBySubscription(options) {
|
|
1091
1420
|
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1092
1421
|
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Create and list an account shared access signature token. Use this SAS token for authentication to
|
|
1424
|
+
* Azure Maps REST APIs through various Azure Maps SDKs. As prerequisite to create a SAS Token.
|
|
1425
|
+
*
|
|
1426
|
+
* Prerequisites:
|
|
1427
|
+
* 1. Create or have an existing User Assigned Managed Identity in the same Azure region as the
|
|
1428
|
+
* account.
|
|
1429
|
+
* 2. Create or update an Azure Map account with the same Azure region as the User Assigned Managed
|
|
1430
|
+
* Identity is placed.
|
|
1431
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1432
|
+
* @param accountName The name of the Maps Account.
|
|
1433
|
+
* @param mapsAccountSasParameters The updated parameters for the Maps Account.
|
|
1434
|
+
* @param options The options parameters.
|
|
1435
|
+
*/
|
|
1436
|
+
listSas(resourceGroupName, accountName, mapsAccountSasParameters, options) {
|
|
1437
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, mapsAccountSasParameters, options }, listSasOperationSpec);
|
|
1438
|
+
}
|
|
1093
1439
|
/**
|
|
1094
1440
|
* Get the keys to use with the Maps APIs. A key is used to authenticate and authorize access to the
|
|
1095
1441
|
* Maps REST APIs. Only one key is needed at a time; two are given to provide seamless key
|
|
@@ -1131,8 +1477,8 @@ class AccountsImpl {
|
|
|
1131
1477
|
}
|
|
1132
1478
|
}
|
|
1133
1479
|
// Operation Specifications
|
|
1134
|
-
const serializer =
|
|
1135
|
-
const createOrUpdateOperationSpec = {
|
|
1480
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1481
|
+
const createOrUpdateOperationSpec$1 = {
|
|
1136
1482
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
|
|
1137
1483
|
httpMethod: "PUT",
|
|
1138
1484
|
responses: {
|
|
@@ -1156,9 +1502,9 @@ const createOrUpdateOperationSpec = {
|
|
|
1156
1502
|
],
|
|
1157
1503
|
headerParameters: [contentType, accept],
|
|
1158
1504
|
mediaType: "json",
|
|
1159
|
-
serializer
|
|
1505
|
+
serializer: serializer$2
|
|
1160
1506
|
};
|
|
1161
|
-
const updateOperationSpec = {
|
|
1507
|
+
const updateOperationSpec$1 = {
|
|
1162
1508
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
|
|
1163
1509
|
httpMethod: "PATCH",
|
|
1164
1510
|
responses: {
|
|
@@ -1179,9 +1525,9 @@ const updateOperationSpec = {
|
|
|
1179
1525
|
],
|
|
1180
1526
|
headerParameters: [contentType, accept],
|
|
1181
1527
|
mediaType: "json",
|
|
1182
|
-
serializer
|
|
1528
|
+
serializer: serializer$2
|
|
1183
1529
|
};
|
|
1184
|
-
const deleteOperationSpec = {
|
|
1530
|
+
const deleteOperationSpec$1 = {
|
|
1185
1531
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
|
|
1186
1532
|
httpMethod: "DELETE",
|
|
1187
1533
|
responses: {
|
|
@@ -1199,9 +1545,9 @@ const deleteOperationSpec = {
|
|
|
1199
1545
|
accountName
|
|
1200
1546
|
],
|
|
1201
1547
|
headerParameters: [accept],
|
|
1202
|
-
serializer
|
|
1548
|
+
serializer: serializer$2
|
|
1203
1549
|
};
|
|
1204
|
-
const getOperationSpec = {
|
|
1550
|
+
const getOperationSpec$1 = {
|
|
1205
1551
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}",
|
|
1206
1552
|
httpMethod: "GET",
|
|
1207
1553
|
responses: {
|
|
@@ -1220,7 +1566,7 @@ const getOperationSpec = {
|
|
|
1220
1566
|
accountName
|
|
1221
1567
|
],
|
|
1222
1568
|
headerParameters: [accept],
|
|
1223
|
-
serializer
|
|
1569
|
+
serializer: serializer$2
|
|
1224
1570
|
};
|
|
1225
1571
|
const listByResourceGroupOperationSpec = {
|
|
1226
1572
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts",
|
|
@@ -1240,7 +1586,7 @@ const listByResourceGroupOperationSpec = {
|
|
|
1240
1586
|
resourceGroupName
|
|
1241
1587
|
],
|
|
1242
1588
|
headerParameters: [accept],
|
|
1243
|
-
serializer
|
|
1589
|
+
serializer: serializer$2
|
|
1244
1590
|
};
|
|
1245
1591
|
const listBySubscriptionOperationSpec = {
|
|
1246
1592
|
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Maps/accounts",
|
|
@@ -1256,7 +1602,30 @@ const listBySubscriptionOperationSpec = {
|
|
|
1256
1602
|
queryParameters: [apiVersion],
|
|
1257
1603
|
urlParameters: [$host, subscriptionId],
|
|
1258
1604
|
headerParameters: [accept],
|
|
1259
|
-
serializer
|
|
1605
|
+
serializer: serializer$2
|
|
1606
|
+
};
|
|
1607
|
+
const listSasOperationSpec = {
|
|
1608
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listSas",
|
|
1609
|
+
httpMethod: "POST",
|
|
1610
|
+
responses: {
|
|
1611
|
+
200: {
|
|
1612
|
+
bodyMapper: MapsAccountSasToken
|
|
1613
|
+
},
|
|
1614
|
+
default: {
|
|
1615
|
+
bodyMapper: ErrorResponse
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
requestBody: mapsAccountSasParameters,
|
|
1619
|
+
queryParameters: [apiVersion],
|
|
1620
|
+
urlParameters: [
|
|
1621
|
+
$host,
|
|
1622
|
+
subscriptionId,
|
|
1623
|
+
resourceGroupName,
|
|
1624
|
+
accountName
|
|
1625
|
+
],
|
|
1626
|
+
headerParameters: [contentType, accept],
|
|
1627
|
+
mediaType: "json",
|
|
1628
|
+
serializer: serializer$2
|
|
1260
1629
|
};
|
|
1261
1630
|
const listKeysOperationSpec = {
|
|
1262
1631
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/listKeys",
|
|
@@ -1277,7 +1646,7 @@ const listKeysOperationSpec = {
|
|
|
1277
1646
|
accountName
|
|
1278
1647
|
],
|
|
1279
1648
|
headerParameters: [accept],
|
|
1280
|
-
serializer
|
|
1649
|
+
serializer: serializer$2
|
|
1281
1650
|
};
|
|
1282
1651
|
const regenerateKeysOperationSpec = {
|
|
1283
1652
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/regenerateKey",
|
|
@@ -1300,7 +1669,7 @@ const regenerateKeysOperationSpec = {
|
|
|
1300
1669
|
],
|
|
1301
1670
|
headerParameters: [contentType, accept],
|
|
1302
1671
|
mediaType: "json",
|
|
1303
|
-
serializer
|
|
1672
|
+
serializer: serializer$2
|
|
1304
1673
|
};
|
|
1305
1674
|
const listByResourceGroupNextOperationSpec = {
|
|
1306
1675
|
path: "{nextLink}",
|
|
@@ -1321,7 +1690,7 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1321
1690
|
nextLink
|
|
1322
1691
|
],
|
|
1323
1692
|
headerParameters: [accept],
|
|
1324
|
-
serializer
|
|
1693
|
+
serializer: serializer$2
|
|
1325
1694
|
};
|
|
1326
1695
|
const listBySubscriptionNextOperationSpec = {
|
|
1327
1696
|
path: "{nextLink}",
|
|
@@ -1341,7 +1710,7 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
1341
1710
|
nextLink
|
|
1342
1711
|
],
|
|
1343
1712
|
headerParameters: [accept],
|
|
1344
|
-
serializer
|
|
1713
|
+
serializer: serializer$2
|
|
1345
1714
|
};
|
|
1346
1715
|
|
|
1347
1716
|
/*
|
|
@@ -1490,7 +1859,7 @@ class MapsImpl {
|
|
|
1490
1859
|
}
|
|
1491
1860
|
}
|
|
1492
1861
|
// Operation Specifications
|
|
1493
|
-
const serializer$1 =
|
|
1862
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1494
1863
|
const listOperationsOperationSpec = {
|
|
1495
1864
|
path: "/providers/Microsoft.Maps/operations",
|
|
1496
1865
|
httpMethod: "GET",
|
|
@@ -1646,7 +2015,7 @@ class CreatorsImpl {
|
|
|
1646
2015
|
* @param options The options parameters.
|
|
1647
2016
|
*/
|
|
1648
2017
|
createOrUpdate(resourceGroupName, accountName, creatorName, creatorResource, options) {
|
|
1649
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, creatorResource, options }, createOrUpdateOperationSpec
|
|
2018
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, creatorResource, options }, createOrUpdateOperationSpec);
|
|
1650
2019
|
}
|
|
1651
2020
|
/**
|
|
1652
2021
|
* Updates the Maps Creator resource. Only a subset of the parameters may be updated after creation,
|
|
@@ -1664,7 +2033,7 @@ class CreatorsImpl {
|
|
|
1664
2033
|
creatorName,
|
|
1665
2034
|
creatorUpdateParameters,
|
|
1666
2035
|
options
|
|
1667
|
-
}, updateOperationSpec
|
|
2036
|
+
}, updateOperationSpec);
|
|
1668
2037
|
}
|
|
1669
2038
|
/**
|
|
1670
2039
|
* Delete a Maps Creator resource.
|
|
@@ -1674,7 +2043,7 @@ class CreatorsImpl {
|
|
|
1674
2043
|
* @param options The options parameters.
|
|
1675
2044
|
*/
|
|
1676
2045
|
delete(resourceGroupName, accountName, creatorName, options) {
|
|
1677
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, options }, deleteOperationSpec
|
|
2046
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, options }, deleteOperationSpec);
|
|
1678
2047
|
}
|
|
1679
2048
|
/**
|
|
1680
2049
|
* Get a Maps Creator resource.
|
|
@@ -1684,7 +2053,7 @@ class CreatorsImpl {
|
|
|
1684
2053
|
* @param options The options parameters.
|
|
1685
2054
|
*/
|
|
1686
2055
|
get(resourceGroupName, accountName, creatorName, options) {
|
|
1687
|
-
return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, options }, getOperationSpec
|
|
2056
|
+
return this.client.sendOperationRequest({ resourceGroupName, accountName, creatorName, options }, getOperationSpec);
|
|
1688
2057
|
}
|
|
1689
2058
|
/**
|
|
1690
2059
|
* ListByAccountNext
|
|
@@ -1698,7 +2067,7 @@ class CreatorsImpl {
|
|
|
1698
2067
|
}
|
|
1699
2068
|
}
|
|
1700
2069
|
// Operation Specifications
|
|
1701
|
-
const serializer
|
|
2070
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1702
2071
|
const listByAccountOperationSpec = {
|
|
1703
2072
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators",
|
|
1704
2073
|
httpMethod: "GET",
|
|
@@ -1718,9 +2087,9 @@ const listByAccountOperationSpec = {
|
|
|
1718
2087
|
accountName
|
|
1719
2088
|
],
|
|
1720
2089
|
headerParameters: [accept],
|
|
1721
|
-
serializer
|
|
2090
|
+
serializer
|
|
1722
2091
|
};
|
|
1723
|
-
const createOrUpdateOperationSpec
|
|
2092
|
+
const createOrUpdateOperationSpec = {
|
|
1724
2093
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
1725
2094
|
httpMethod: "PUT",
|
|
1726
2095
|
responses: {
|
|
@@ -1745,9 +2114,9 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
1745
2114
|
],
|
|
1746
2115
|
headerParameters: [contentType, accept],
|
|
1747
2116
|
mediaType: "json",
|
|
1748
|
-
serializer
|
|
2117
|
+
serializer
|
|
1749
2118
|
};
|
|
1750
|
-
const updateOperationSpec
|
|
2119
|
+
const updateOperationSpec = {
|
|
1751
2120
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
1752
2121
|
httpMethod: "PATCH",
|
|
1753
2122
|
responses: {
|
|
@@ -1769,9 +2138,9 @@ const updateOperationSpec$1 = {
|
|
|
1769
2138
|
],
|
|
1770
2139
|
headerParameters: [contentType, accept],
|
|
1771
2140
|
mediaType: "json",
|
|
1772
|
-
serializer
|
|
2141
|
+
serializer
|
|
1773
2142
|
};
|
|
1774
|
-
const deleteOperationSpec
|
|
2143
|
+
const deleteOperationSpec = {
|
|
1775
2144
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
1776
2145
|
httpMethod: "DELETE",
|
|
1777
2146
|
responses: {
|
|
@@ -1790,9 +2159,9 @@ const deleteOperationSpec$1 = {
|
|
|
1790
2159
|
creatorName
|
|
1791
2160
|
],
|
|
1792
2161
|
headerParameters: [accept],
|
|
1793
|
-
serializer
|
|
2162
|
+
serializer
|
|
1794
2163
|
};
|
|
1795
|
-
const getOperationSpec
|
|
2164
|
+
const getOperationSpec = {
|
|
1796
2165
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maps/accounts/{accountName}/creators/{creatorName}",
|
|
1797
2166
|
httpMethod: "GET",
|
|
1798
2167
|
responses: {
|
|
@@ -1812,7 +2181,7 @@ const getOperationSpec$1 = {
|
|
|
1812
2181
|
creatorName
|
|
1813
2182
|
],
|
|
1814
2183
|
headerParameters: [accept],
|
|
1815
|
-
serializer
|
|
2184
|
+
serializer
|
|
1816
2185
|
};
|
|
1817
2186
|
const listByAccountNextOperationSpec = {
|
|
1818
2187
|
path: "{nextLink}",
|
|
@@ -1834,7 +2203,7 @@ const listByAccountNextOperationSpec = {
|
|
|
1834
2203
|
nextLink
|
|
1835
2204
|
],
|
|
1836
2205
|
headerParameters: [accept],
|
|
1837
|
-
serializer
|
|
2206
|
+
serializer
|
|
1838
2207
|
};
|
|
1839
2208
|
|
|
1840
2209
|
/*
|
|
@@ -1844,7 +2213,7 @@ const listByAccountNextOperationSpec = {
|
|
|
1844
2213
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1845
2214
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1846
2215
|
*/
|
|
1847
|
-
class AzureMapsManagementClient extends
|
|
2216
|
+
class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
|
|
1848
2217
|
/**
|
|
1849
2218
|
* Initializes a new instance of the AzureMapsManagementClient class.
|
|
1850
2219
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -1852,6 +2221,7 @@ class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
1852
2221
|
* @param options The parameter options
|
|
1853
2222
|
*/
|
|
1854
2223
|
constructor(credentials, subscriptionId, options) {
|
|
2224
|
+
var _a, _b;
|
|
1855
2225
|
if (credentials === undefined) {
|
|
1856
2226
|
throw new Error("'credentials' cannot be null");
|
|
1857
2227
|
}
|
|
@@ -1866,7 +2236,7 @@ class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
1866
2236
|
requestContentType: "application/json; charset=utf-8",
|
|
1867
2237
|
credential: credentials
|
|
1868
2238
|
};
|
|
1869
|
-
const packageDetails = `azsdk-js-arm-maps/3.0.
|
|
2239
|
+
const packageDetails = `azsdk-js-arm-maps/3.1.0-beta.1`;
|
|
1870
2240
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1871
2241
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1872
2242
|
: `${packageDetails}`;
|
|
@@ -1875,13 +2245,29 @@ class AzureMapsManagementClient extends coreClient.ServiceClient {
|
|
|
1875
2245
|
}
|
|
1876
2246
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1877
2247
|
userAgentPrefix
|
|
1878
|
-
}, baseUri: options.endpoint
|
|
2248
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1879
2249
|
super(optionsWithDefaults);
|
|
2250
|
+
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
2251
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
2252
|
+
const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
2253
|
+
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
2254
|
+
if (!bearerTokenAuthenticationPolicyFound) {
|
|
2255
|
+
this.pipeline.removePolicy({
|
|
2256
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
2257
|
+
});
|
|
2258
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2259
|
+
scopes: `${optionsWithDefaults.baseUri}/.default`,
|
|
2260
|
+
challengeCallbacks: {
|
|
2261
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2262
|
+
}
|
|
2263
|
+
}));
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
1880
2266
|
// Parameter assignments
|
|
1881
2267
|
this.subscriptionId = subscriptionId;
|
|
1882
2268
|
// Assigning values to Constant parameters
|
|
1883
2269
|
this.$host = options.$host || "https://management.azure.com";
|
|
1884
|
-
this.apiVersion = options.apiVersion || "2021-
|
|
2270
|
+
this.apiVersion = options.apiVersion || "2021-12-01-preview";
|
|
1885
2271
|
this.accounts = new AccountsImpl(this);
|
|
1886
2272
|
this.maps = new MapsImpl(this);
|
|
1887
2273
|
this.creators = new CreatorsImpl(this);
|