@azure/arm-maps 3.1.0-beta.2 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -28
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +219 -64
- 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.js +63 -12
- package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsGetSample.js +12 -4
- package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +23 -8
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListKeysSample.js +12 -4
- package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsListSasSample.js +12 -4
- package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +12 -4
- package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -1
- package/dist-esm/samples-dev/accountsUpdateSample.js +63 -16
- package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsGetSample.js +12 -4
- package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsListByAccountSample.js +24 -9
- package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -1
- package/dist-esm/samples-dev/creatorsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/mapsListOperationsSample.js +22 -9
- package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -1
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +23 -8
- package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -1
- package/dist-esm/src/azureMapsManagementClient.d.ts +2 -1
- package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
- package/dist-esm/src/azureMapsManagementClient.js +9 -11
- package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +142 -50
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +32 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +4 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +109 -17
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/accounts.js +24 -12
- package/dist-esm/src/operations/accounts.js.map +1 -1
- package/dist-esm/src/operations/creators.js +12 -6
- package/dist-esm/src/operations/creators.js.map +1 -1
- package/dist-esm/src/operations/maps.js +24 -12
- package/dist-esm/src/operations/maps.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/maps_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/maps_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/maps_operations_test.spec.js +140 -0
- package/dist-esm/test/maps_operations_test.spec.js.map +1 -0
- package/package.json +11 -10
- package/review/arm-maps.api.md +65 -12
- package/src/azureMapsManagementClient.ts +19 -5
- package/src/models/index.ts +127 -32
- package/src/models/mappers.ts +112 -19
- package/src/models/parameters.ts +1 -1
- package/src/operations/accounts.ts +0 -2
- package/src/operations/creators.ts +0 -1
- package/src/operations/maps.ts +0 -2
- package/src/pagingHelper.ts +4 -4
- package/types/arm-maps.d.ts +143 -42
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,34 +1,48 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 3.1.0
|
|
4
|
-
|
|
2
|
+
|
|
3
|
+
## 3.1.0 (2023-08-08)
|
|
4
|
+
|
|
5
5
|
**Features**
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
7
|
+
- Added operation Accounts.listSas
|
|
8
|
+
- Added Interface AccountSasParameters
|
|
9
|
+
- Added Interface AccountsListSasOptionalParams
|
|
10
|
+
- Added Interface CorsRule
|
|
11
|
+
- Added Interface CorsRules
|
|
12
|
+
- Added Interface Creator
|
|
13
|
+
- Added Interface CustomerManagedKeyEncryption
|
|
14
|
+
- Added Interface CustomerManagedKeyEncryptionKeyIdentity
|
|
15
|
+
- Added Interface Encryption
|
|
16
|
+
- Added Interface LinkedResource
|
|
17
|
+
- Added Interface ManagedServiceIdentity
|
|
18
|
+
- Added Interface MapsAccount
|
|
19
|
+
- Added Interface MapsAccountSasToken
|
|
20
|
+
- Added Interface TrackedResource
|
|
21
|
+
- Added Interface UserAssignedIdentity
|
|
22
|
+
- Added Type Alias AccountsListSasResponse
|
|
23
|
+
- Added Type Alias IdentityType
|
|
24
|
+
- Added Type Alias InfrastructureEncryption
|
|
25
|
+
- Added Type Alias ManagedServiceIdentityType
|
|
26
|
+
- Added Type Alias SigningKey
|
|
27
|
+
- Interface MapsAccountProperties has a new optional parameter cors
|
|
28
|
+
- Interface MapsAccountProperties has a new optional parameter encryption
|
|
29
|
+
- Interface MapsAccountProperties has a new optional parameter linkedResources
|
|
30
|
+
- Interface MapsAccountUpdateParameters has a new optional parameter cors
|
|
31
|
+
- Interface MapsAccountUpdateParameters has a new optional parameter encryption
|
|
32
|
+
- Interface MapsAccountUpdateParameters has a new optional parameter identity
|
|
33
|
+
- Interface MapsAccountUpdateParameters has a new optional parameter linkedResources
|
|
34
|
+
- Interface MetricSpecification has a new optional parameter internalMetricName
|
|
35
|
+
- Interface MetricSpecification has a new optional parameter lockAggregationType
|
|
36
|
+
- Interface MetricSpecification has a new optional parameter sourceMdmAccount
|
|
37
|
+
- Interface MetricSpecification has a new optional parameter sourceMdmNamespace
|
|
38
|
+
- Interface MetricSpecification has a new optional parameter supportedAggregationTypes
|
|
39
|
+
- Added Enum KnownIdentityType
|
|
40
|
+
- Added Enum KnownInfrastructureEncryption
|
|
41
|
+
- Added Enum KnownManagedServiceIdentityType
|
|
42
|
+
- Added Enum KnownSigningKey
|
|
43
|
+
- Added function getContinuationToken
|
|
44
|
+
- Class AzureMapsManagementClient has a new signature
|
|
45
|
+
|
|
32
46
|
## 3.0.0 (2022-01-19)
|
|
33
47
|
|
|
34
48
|
The package of @azure/arm-maps is using our next generation design principles since version 3.0.0, which contains breaking changes.
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Azure Maps
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/maps/arm-maps) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-maps) |
|
|
9
|
-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-maps
|
|
9
|
+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-maps) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
package/dist/index.js
CHANGED
|
@@ -36,11 +36,11 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
36
36
|
*/
|
|
37
37
|
const pageMap = new WeakMap();
|
|
38
38
|
/**
|
|
39
|
-
* Given
|
|
40
|
-
* continuation token that can be used to begin paging from
|
|
39
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
40
|
+
* returns a continuation token that can be used to begin paging from
|
|
41
41
|
* that point later.
|
|
42
|
-
* @param page
|
|
43
|
-
* @returns The continuation token that can be passed into byPage().
|
|
42
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
44
44
|
*/
|
|
45
45
|
function getContinuationToken(page) {
|
|
46
46
|
var _a;
|
|
@@ -96,6 +96,36 @@ exports.KnownCreatedByType = void 0;
|
|
|
96
96
|
/** Key */
|
|
97
97
|
KnownCreatedByType["Key"] = "Key";
|
|
98
98
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
99
|
+
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
100
|
+
exports.KnownManagedServiceIdentityType = void 0;
|
|
101
|
+
(function (KnownManagedServiceIdentityType) {
|
|
102
|
+
/** None */
|
|
103
|
+
KnownManagedServiceIdentityType["None"] = "None";
|
|
104
|
+
/** SystemAssigned */
|
|
105
|
+
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
106
|
+
/** UserAssigned */
|
|
107
|
+
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
108
|
+
/** SystemAssignedUserAssigned */
|
|
109
|
+
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
|
|
110
|
+
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
111
|
+
/** Known values of {@link InfrastructureEncryption} that the service accepts. */
|
|
112
|
+
exports.KnownInfrastructureEncryption = void 0;
|
|
113
|
+
(function (KnownInfrastructureEncryption) {
|
|
114
|
+
/** Enabled */
|
|
115
|
+
KnownInfrastructureEncryption["Enabled"] = "enabled";
|
|
116
|
+
/** Disabled */
|
|
117
|
+
KnownInfrastructureEncryption["Disabled"] = "disabled";
|
|
118
|
+
})(exports.KnownInfrastructureEncryption || (exports.KnownInfrastructureEncryption = {}));
|
|
119
|
+
/** Known values of {@link IdentityType} that the service accepts. */
|
|
120
|
+
exports.KnownIdentityType = void 0;
|
|
121
|
+
(function (KnownIdentityType) {
|
|
122
|
+
/** SystemAssignedIdentity */
|
|
123
|
+
KnownIdentityType["SystemAssignedIdentity"] = "systemAssignedIdentity";
|
|
124
|
+
/** UserAssignedIdentity */
|
|
125
|
+
KnownIdentityType["UserAssignedIdentity"] = "userAssignedIdentity";
|
|
126
|
+
/** DelegatedResourceIdentity */
|
|
127
|
+
KnownIdentityType["DelegatedResourceIdentity"] = "delegatedResourceIdentity";
|
|
128
|
+
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
99
129
|
/** Known values of {@link SigningKey} that the service accepts. */
|
|
100
130
|
exports.KnownSigningKey = void 0;
|
|
101
131
|
(function (KnownSigningKey) {
|
|
@@ -103,6 +133,8 @@ exports.KnownSigningKey = void 0;
|
|
|
103
133
|
KnownSigningKey["PrimaryKey"] = "primaryKey";
|
|
104
134
|
/** SecondaryKey */
|
|
105
135
|
KnownSigningKey["SecondaryKey"] = "secondaryKey";
|
|
136
|
+
/** ManagedIdentity */
|
|
137
|
+
KnownSigningKey["ManagedIdentity"] = "managedIdentity";
|
|
106
138
|
})(exports.KnownSigningKey || (exports.KnownSigningKey = {}));
|
|
107
139
|
/** Known values of {@link KeyType} that the service accepts. */
|
|
108
140
|
exports.KnownKeyType = void 0;
|
|
@@ -195,26 +227,21 @@ const ManagedServiceIdentity = {
|
|
|
195
227
|
serializedName: "principalId",
|
|
196
228
|
readOnly: true,
|
|
197
229
|
type: {
|
|
198
|
-
name: "
|
|
230
|
+
name: "Uuid"
|
|
199
231
|
}
|
|
200
232
|
},
|
|
201
233
|
tenantId: {
|
|
202
234
|
serializedName: "tenantId",
|
|
203
235
|
readOnly: true,
|
|
204
236
|
type: {
|
|
205
|
-
name: "
|
|
237
|
+
name: "Uuid"
|
|
206
238
|
}
|
|
207
239
|
},
|
|
208
240
|
type: {
|
|
209
241
|
serializedName: "type",
|
|
242
|
+
required: true,
|
|
210
243
|
type: {
|
|
211
|
-
name: "
|
|
212
|
-
allowedValues: [
|
|
213
|
-
"SystemAssigned",
|
|
214
|
-
"UserAssigned",
|
|
215
|
-
"SystemAssigned, UserAssigned",
|
|
216
|
-
"None"
|
|
217
|
-
]
|
|
244
|
+
name: "String"
|
|
218
245
|
}
|
|
219
246
|
},
|
|
220
247
|
userAssignedIdentities: {
|
|
@@ -222,33 +249,30 @@ const ManagedServiceIdentity = {
|
|
|
222
249
|
type: {
|
|
223
250
|
name: "Dictionary",
|
|
224
251
|
value: {
|
|
225
|
-
type: {
|
|
226
|
-
name: "Composite",
|
|
227
|
-
className: "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties"
|
|
228
|
-
}
|
|
252
|
+
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
229
253
|
}
|
|
230
254
|
}
|
|
231
255
|
}
|
|
232
256
|
}
|
|
233
257
|
}
|
|
234
258
|
};
|
|
235
|
-
const
|
|
259
|
+
const UserAssignedIdentity = {
|
|
236
260
|
type: {
|
|
237
261
|
name: "Composite",
|
|
238
|
-
className: "
|
|
262
|
+
className: "UserAssignedIdentity",
|
|
239
263
|
modelProperties: {
|
|
240
264
|
principalId: {
|
|
241
265
|
serializedName: "principalId",
|
|
242
266
|
readOnly: true,
|
|
243
267
|
type: {
|
|
244
|
-
name: "
|
|
268
|
+
name: "Uuid"
|
|
245
269
|
}
|
|
246
270
|
},
|
|
247
271
|
clientId: {
|
|
248
272
|
serializedName: "clientId",
|
|
249
273
|
readOnly: true,
|
|
250
274
|
type: {
|
|
251
|
-
name: "
|
|
275
|
+
name: "Uuid"
|
|
252
276
|
}
|
|
253
277
|
}
|
|
254
278
|
}
|
|
@@ -301,6 +325,13 @@ const MapsAccountProperties = {
|
|
|
301
325
|
name: "Composite",
|
|
302
326
|
className: "CorsRules"
|
|
303
327
|
}
|
|
328
|
+
},
|
|
329
|
+
encryption: {
|
|
330
|
+
serializedName: "encryption",
|
|
331
|
+
type: {
|
|
332
|
+
name: "Composite",
|
|
333
|
+
className: "Encryption"
|
|
334
|
+
}
|
|
304
335
|
}
|
|
305
336
|
}
|
|
306
337
|
}
|
|
@@ -370,6 +401,74 @@ const CorsRule = {
|
|
|
370
401
|
}
|
|
371
402
|
}
|
|
372
403
|
};
|
|
404
|
+
const Encryption = {
|
|
405
|
+
type: {
|
|
406
|
+
name: "Composite",
|
|
407
|
+
className: "Encryption",
|
|
408
|
+
modelProperties: {
|
|
409
|
+
infrastructureEncryption: {
|
|
410
|
+
serializedName: "infrastructureEncryption",
|
|
411
|
+
type: {
|
|
412
|
+
name: "String"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
customerManagedKeyEncryption: {
|
|
416
|
+
serializedName: "customerManagedKeyEncryption",
|
|
417
|
+
type: {
|
|
418
|
+
name: "Composite",
|
|
419
|
+
className: "CustomerManagedKeyEncryption"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
const CustomerManagedKeyEncryption = {
|
|
426
|
+
type: {
|
|
427
|
+
name: "Composite",
|
|
428
|
+
className: "CustomerManagedKeyEncryption",
|
|
429
|
+
modelProperties: {
|
|
430
|
+
keyEncryptionKeyIdentity: {
|
|
431
|
+
serializedName: "keyEncryptionKeyIdentity",
|
|
432
|
+
type: {
|
|
433
|
+
name: "Composite",
|
|
434
|
+
className: "CustomerManagedKeyEncryptionKeyIdentity"
|
|
435
|
+
}
|
|
436
|
+
},
|
|
437
|
+
keyEncryptionKeyUrl: {
|
|
438
|
+
serializedName: "keyEncryptionKeyUrl",
|
|
439
|
+
type: {
|
|
440
|
+
name: "String"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
const CustomerManagedKeyEncryptionKeyIdentity = {
|
|
447
|
+
type: {
|
|
448
|
+
name: "Composite",
|
|
449
|
+
className: "CustomerManagedKeyEncryptionKeyIdentity",
|
|
450
|
+
modelProperties: {
|
|
451
|
+
identityType: {
|
|
452
|
+
serializedName: "identityType",
|
|
453
|
+
type: {
|
|
454
|
+
name: "String"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
userAssignedIdentityResourceId: {
|
|
458
|
+
serializedName: "userAssignedIdentityResourceId",
|
|
459
|
+
type: {
|
|
460
|
+
name: "String"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
delegatedIdentityClientId: {
|
|
464
|
+
serializedName: "delegatedIdentityClientId",
|
|
465
|
+
type: {
|
|
466
|
+
name: "Uuid"
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
};
|
|
373
472
|
const Resource = {
|
|
374
473
|
type: {
|
|
375
474
|
name: "Composite",
|
|
@@ -567,6 +666,13 @@ const MapsAccountUpdateParameters = {
|
|
|
567
666
|
name: "Composite",
|
|
568
667
|
className: "CorsRules"
|
|
569
668
|
}
|
|
669
|
+
},
|
|
670
|
+
encryption: {
|
|
671
|
+
serializedName: "properties.encryption",
|
|
672
|
+
type: {
|
|
673
|
+
name: "Composite",
|
|
674
|
+
className: "Encryption"
|
|
675
|
+
}
|
|
570
676
|
}
|
|
571
677
|
}
|
|
572
678
|
}
|
|
@@ -918,6 +1024,24 @@ const MetricSpecification = {
|
|
|
918
1024
|
type: {
|
|
919
1025
|
name: "String"
|
|
920
1026
|
}
|
|
1027
|
+
},
|
|
1028
|
+
lockAggregationType: {
|
|
1029
|
+
serializedName: "lockAggregationType",
|
|
1030
|
+
type: {
|
|
1031
|
+
name: "String"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
sourceMdmNamespace: {
|
|
1035
|
+
serializedName: "sourceMdmNamespace",
|
|
1036
|
+
type: {
|
|
1037
|
+
name: "String"
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
supportedAggregationTypes: {
|
|
1041
|
+
serializedName: "supportedAggregationTypes",
|
|
1042
|
+
type: {
|
|
1043
|
+
name: "String"
|
|
1044
|
+
}
|
|
921
1045
|
}
|
|
922
1046
|
}
|
|
923
1047
|
}
|
|
@@ -1132,11 +1256,14 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
1132
1256
|
Sku: Sku,
|
|
1133
1257
|
SystemData: SystemData,
|
|
1134
1258
|
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1135
|
-
|
|
1259
|
+
UserAssignedIdentity: UserAssignedIdentity,
|
|
1136
1260
|
MapsAccountProperties: MapsAccountProperties,
|
|
1137
1261
|
LinkedResource: LinkedResource,
|
|
1138
1262
|
CorsRules: CorsRules,
|
|
1139
1263
|
CorsRule: CorsRule,
|
|
1264
|
+
Encryption: Encryption,
|
|
1265
|
+
CustomerManagedKeyEncryption: CustomerManagedKeyEncryption,
|
|
1266
|
+
CustomerManagedKeyEncryptionKeyIdentity: CustomerManagedKeyEncryptionKeyIdentity,
|
|
1140
1267
|
Resource: Resource,
|
|
1141
1268
|
ErrorResponse: ErrorResponse,
|
|
1142
1269
|
ErrorDetail: ErrorDetail,
|
|
@@ -1208,7 +1335,7 @@ const $host = {
|
|
|
1208
1335
|
const apiVersion = {
|
|
1209
1336
|
parameterPath: "apiVersion",
|
|
1210
1337
|
mapper: {
|
|
1211
|
-
defaultValue: "
|
|
1338
|
+
defaultValue: "2023-06-01",
|
|
1212
1339
|
isConstant: true,
|
|
1213
1340
|
serializedName: "api-version",
|
|
1214
1341
|
type: {
|
|
@@ -1356,17 +1483,24 @@ class AccountsImpl {
|
|
|
1356
1483
|
}
|
|
1357
1484
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1358
1485
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1359
|
-
var e_1,
|
|
1486
|
+
var _a, e_1, _b, _c;
|
|
1360
1487
|
try {
|
|
1361
|
-
for (var
|
|
1362
|
-
|
|
1363
|
-
|
|
1488
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1489
|
+
_c = _f.value;
|
|
1490
|
+
_d = false;
|
|
1491
|
+
try {
|
|
1492
|
+
const page = _c;
|
|
1493
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1494
|
+
}
|
|
1495
|
+
finally {
|
|
1496
|
+
_d = true;
|
|
1497
|
+
}
|
|
1364
1498
|
}
|
|
1365
1499
|
}
|
|
1366
1500
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1367
1501
|
finally {
|
|
1368
1502
|
try {
|
|
1369
|
-
if (
|
|
1503
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1370
1504
|
}
|
|
1371
1505
|
finally { if (e_1) throw e_1.error; }
|
|
1372
1506
|
}
|
|
@@ -1415,17 +1549,24 @@ class AccountsImpl {
|
|
|
1415
1549
|
}
|
|
1416
1550
|
listBySubscriptionPagingAll(options) {
|
|
1417
1551
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1418
|
-
var e_2,
|
|
1552
|
+
var _a, e_2, _b, _c;
|
|
1419
1553
|
try {
|
|
1420
|
-
for (var
|
|
1421
|
-
|
|
1422
|
-
|
|
1554
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1555
|
+
_c = _f.value;
|
|
1556
|
+
_d = false;
|
|
1557
|
+
try {
|
|
1558
|
+
const page = _c;
|
|
1559
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1560
|
+
}
|
|
1561
|
+
finally {
|
|
1562
|
+
_d = true;
|
|
1563
|
+
}
|
|
1423
1564
|
}
|
|
1424
1565
|
}
|
|
1425
1566
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1426
1567
|
finally {
|
|
1427
1568
|
try {
|
|
1428
|
-
if (
|
|
1569
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1429
1570
|
}
|
|
1430
1571
|
finally { if (e_2) throw e_2.error; }
|
|
1431
1572
|
}
|
|
@@ -1749,7 +1890,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
1749
1890
|
bodyMapper: ErrorResponse
|
|
1750
1891
|
}
|
|
1751
1892
|
},
|
|
1752
|
-
queryParameters: [apiVersion],
|
|
1753
1893
|
urlParameters: [
|
|
1754
1894
|
$host,
|
|
1755
1895
|
subscriptionId,
|
|
@@ -1770,7 +1910,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
|
1770
1910
|
bodyMapper: ErrorResponse
|
|
1771
1911
|
}
|
|
1772
1912
|
},
|
|
1773
|
-
queryParameters: [apiVersion],
|
|
1774
1913
|
urlParameters: [
|
|
1775
1914
|
$host,
|
|
1776
1915
|
subscriptionId,
|
|
@@ -1840,17 +1979,24 @@ class MapsImpl {
|
|
|
1840
1979
|
}
|
|
1841
1980
|
listOperationsPagingAll(options) {
|
|
1842
1981
|
return tslib.__asyncGenerator(this, arguments, function* listOperationsPagingAll_1() {
|
|
1843
|
-
var e_1,
|
|
1982
|
+
var _a, e_1, _b, _c;
|
|
1844
1983
|
try {
|
|
1845
|
-
for (var
|
|
1846
|
-
|
|
1847
|
-
|
|
1984
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1985
|
+
_c = _f.value;
|
|
1986
|
+
_d = false;
|
|
1987
|
+
try {
|
|
1988
|
+
const page = _c;
|
|
1989
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1990
|
+
}
|
|
1991
|
+
finally {
|
|
1992
|
+
_d = true;
|
|
1993
|
+
}
|
|
1848
1994
|
}
|
|
1849
1995
|
}
|
|
1850
1996
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1851
1997
|
finally {
|
|
1852
1998
|
try {
|
|
1853
|
-
if (
|
|
1999
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1854
2000
|
}
|
|
1855
2001
|
finally { if (e_1) throw e_1.error; }
|
|
1856
2002
|
}
|
|
@@ -1899,17 +2045,24 @@ class MapsImpl {
|
|
|
1899
2045
|
}
|
|
1900
2046
|
listSubscriptionOperationsPagingAll(options) {
|
|
1901
2047
|
return tslib.__asyncGenerator(this, arguments, function* listSubscriptionOperationsPagingAll_1() {
|
|
1902
|
-
var e_2,
|
|
2048
|
+
var _a, e_2, _b, _c;
|
|
1903
2049
|
try {
|
|
1904
|
-
for (var
|
|
1905
|
-
|
|
1906
|
-
|
|
2050
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listSubscriptionOperationsPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2051
|
+
_c = _f.value;
|
|
2052
|
+
_d = false;
|
|
2053
|
+
try {
|
|
2054
|
+
const page = _c;
|
|
2055
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2056
|
+
}
|
|
2057
|
+
finally {
|
|
2058
|
+
_d = true;
|
|
2059
|
+
}
|
|
1907
2060
|
}
|
|
1908
2061
|
}
|
|
1909
2062
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1910
2063
|
finally {
|
|
1911
2064
|
try {
|
|
1912
|
-
if (
|
|
2065
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1913
2066
|
}
|
|
1914
2067
|
finally { if (e_2) throw e_2.error; }
|
|
1915
2068
|
}
|
|
@@ -1992,7 +2145,6 @@ const listOperationsNextOperationSpec = {
|
|
|
1992
2145
|
bodyMapper: ErrorResponse
|
|
1993
2146
|
}
|
|
1994
2147
|
},
|
|
1995
|
-
queryParameters: [apiVersion],
|
|
1996
2148
|
urlParameters: [$host, nextLink],
|
|
1997
2149
|
headerParameters: [accept],
|
|
1998
2150
|
serializer: serializer$1
|
|
@@ -2008,7 +2160,6 @@ const listSubscriptionOperationsNextOperationSpec = {
|
|
|
2008
2160
|
bodyMapper: ErrorResponse
|
|
2009
2161
|
}
|
|
2010
2162
|
},
|
|
2011
|
-
queryParameters: [apiVersion],
|
|
2012
2163
|
urlParameters: [
|
|
2013
2164
|
$host,
|
|
2014
2165
|
subscriptionId,
|
|
@@ -2080,17 +2231,24 @@ class CreatorsImpl {
|
|
|
2080
2231
|
}
|
|
2081
2232
|
listByAccountPagingAll(resourceGroupName, accountName, options) {
|
|
2082
2233
|
return tslib.__asyncGenerator(this, arguments, function* listByAccountPagingAll_1() {
|
|
2083
|
-
var e_1,
|
|
2234
|
+
var _a, e_1, _b, _c;
|
|
2084
2235
|
try {
|
|
2085
|
-
for (var
|
|
2086
|
-
|
|
2087
|
-
|
|
2236
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByAccountPagingPage(resourceGroupName, accountName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2237
|
+
_c = _f.value;
|
|
2238
|
+
_d = false;
|
|
2239
|
+
try {
|
|
2240
|
+
const page = _c;
|
|
2241
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2242
|
+
}
|
|
2243
|
+
finally {
|
|
2244
|
+
_d = true;
|
|
2245
|
+
}
|
|
2088
2246
|
}
|
|
2089
2247
|
}
|
|
2090
2248
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2091
2249
|
finally {
|
|
2092
2250
|
try {
|
|
2093
|
-
if (
|
|
2251
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2094
2252
|
}
|
|
2095
2253
|
finally { if (e_1) throw e_1.error; }
|
|
2096
2254
|
}
|
|
@@ -2294,7 +2452,6 @@ const listByAccountNextOperationSpec = {
|
|
|
2294
2452
|
bodyMapper: ErrorResponse
|
|
2295
2453
|
}
|
|
2296
2454
|
},
|
|
2297
|
-
queryParameters: [apiVersion],
|
|
2298
2455
|
urlParameters: [
|
|
2299
2456
|
$host,
|
|
2300
2457
|
subscriptionId,
|
|
@@ -2314,19 +2471,17 @@ const listByAccountNextOperationSpec = {
|
|
|
2314
2471
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2315
2472
|
*/
|
|
2316
2473
|
class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
|
|
2317
|
-
|
|
2318
|
-
* Initializes a new instance of the AzureMapsManagementClient class.
|
|
2319
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
2320
|
-
* @param subscriptionId The ID of the target subscription.
|
|
2321
|
-
* @param options The parameter options
|
|
2322
|
-
*/
|
|
2323
|
-
constructor(credentials, subscriptionId, options) {
|
|
2474
|
+
constructor(credentials, subscriptionIdOrOptions, options) {
|
|
2324
2475
|
var _a, _b, _c;
|
|
2325
2476
|
if (credentials === undefined) {
|
|
2326
2477
|
throw new Error("'credentials' cannot be null");
|
|
2327
2478
|
}
|
|
2328
|
-
|
|
2329
|
-
|
|
2479
|
+
let subscriptionId;
|
|
2480
|
+
if (typeof subscriptionIdOrOptions === "string") {
|
|
2481
|
+
subscriptionId = subscriptionIdOrOptions;
|
|
2482
|
+
}
|
|
2483
|
+
else if (typeof subscriptionIdOrOptions === "object") {
|
|
2484
|
+
options = subscriptionIdOrOptions;
|
|
2330
2485
|
}
|
|
2331
2486
|
// Initializing default values for options
|
|
2332
2487
|
if (!options) {
|
|
@@ -2336,7 +2491,7 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
2336
2491
|
requestContentType: "application/json; charset=utf-8",
|
|
2337
2492
|
credential: credentials
|
|
2338
2493
|
};
|
|
2339
|
-
const packageDetails = `azsdk-js-arm-maps/3.1.0
|
|
2494
|
+
const packageDetails = `azsdk-js-arm-maps/3.1.0`;
|
|
2340
2495
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2341
2496
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2342
2497
|
: `${packageDetails}`;
|
|
@@ -2369,7 +2524,7 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
2369
2524
|
this.subscriptionId = subscriptionId;
|
|
2370
2525
|
// Assigning values to Constant parameters
|
|
2371
2526
|
this.$host = options.$host || "https://management.azure.com";
|
|
2372
|
-
this.apiVersion = options.apiVersion || "
|
|
2527
|
+
this.apiVersion = options.apiVersion || "2023-06-01";
|
|
2373
2528
|
this.accounts = new AccountsImpl(this);
|
|
2374
2529
|
this.maps = new MapsImpl(this);
|
|
2375
2530
|
this.creators = new CreatorsImpl(this);
|