@azure/arm-maps 3.1.0-alpha.20230725.1 → 3.1.0-alpha.20230822.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 (81) hide show
  1. package/CHANGELOG.md +40 -36
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +159 -39
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js +63 -12
  9. package/dist-esm/samples-dev/accountsCreateOrUpdateSample.js.map +1 -1
  10. package/dist-esm/samples-dev/accountsDeleteSample.js +12 -4
  11. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -1
  12. package/dist-esm/samples-dev/accountsGetSample.js +12 -4
  13. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -1
  14. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +12 -4
  15. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -1
  16. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +11 -3
  17. package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -1
  18. package/dist-esm/samples-dev/accountsListKeysSample.js +12 -4
  19. package/dist-esm/samples-dev/accountsListKeysSample.js.map +1 -1
  20. package/dist-esm/samples-dev/accountsListSasSample.js +12 -4
  21. package/dist-esm/samples-dev/accountsListSasSample.js.map +1 -1
  22. package/dist-esm/samples-dev/accountsRegenerateKeysSample.js +12 -4
  23. package/dist-esm/samples-dev/accountsRegenerateKeysSample.js.map +1 -1
  24. package/dist-esm/samples-dev/accountsUpdateSample.js +63 -16
  25. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -1
  26. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js +12 -4
  27. package/dist-esm/samples-dev/creatorsCreateOrUpdateSample.js.map +1 -1
  28. package/dist-esm/samples-dev/creatorsDeleteSample.js +12 -4
  29. package/dist-esm/samples-dev/creatorsDeleteSample.js.map +1 -1
  30. package/dist-esm/samples-dev/creatorsGetSample.js +12 -4
  31. package/dist-esm/samples-dev/creatorsGetSample.js.map +1 -1
  32. package/dist-esm/samples-dev/creatorsListByAccountSample.js +12 -4
  33. package/dist-esm/samples-dev/creatorsListByAccountSample.js.map +1 -1
  34. package/dist-esm/samples-dev/creatorsUpdateSample.js +12 -4
  35. package/dist-esm/samples-dev/creatorsUpdateSample.js.map +1 -1
  36. package/dist-esm/samples-dev/mapsListOperationsSample.js +10 -4
  37. package/dist-esm/samples-dev/mapsListOperationsSample.js.map +1 -1
  38. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js +11 -3
  39. package/dist-esm/samples-dev/mapsListSubscriptionOperationsSample.js.map +1 -1
  40. package/dist-esm/src/azureMapsManagementClient.d.ts +2 -1
  41. package/dist-esm/src/azureMapsManagementClient.d.ts.map +1 -1
  42. package/dist-esm/src/azureMapsManagementClient.js +9 -11
  43. package/dist-esm/src/azureMapsManagementClient.js.map +1 -1
  44. package/dist-esm/src/models/index.d.ts +118 -26
  45. package/dist-esm/src/models/index.d.ts.map +1 -1
  46. package/dist-esm/src/models/index.js +32 -0
  47. package/dist-esm/src/models/index.js.map +1 -1
  48. package/dist-esm/src/models/mappers.d.ts +4 -1
  49. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  50. package/dist-esm/src/models/mappers.js +109 -17
  51. package/dist-esm/src/models/mappers.js.map +1 -1
  52. package/dist-esm/src/models/parameters.js +1 -1
  53. package/dist-esm/src/models/parameters.js.map +1 -1
  54. package/dist-esm/src/operations/accounts.js +0 -2
  55. package/dist-esm/src/operations/accounts.js.map +1 -1
  56. package/dist-esm/src/operations/creators.js +0 -1
  57. package/dist-esm/src/operations/creators.js.map +1 -1
  58. package/dist-esm/src/operations/maps.js +0 -2
  59. package/dist-esm/src/operations/maps.js.map +1 -1
  60. package/dist-esm/src/pagingHelper.d.ts +4 -4
  61. package/dist-esm/src/pagingHelper.js +4 -4
  62. package/dist-esm/test/maps_operations_test.spec.d.ts +4 -0
  63. package/dist-esm/test/maps_operations_test.spec.d.ts.map +1 -0
  64. package/dist-esm/test/maps_operations_test.spec.js +140 -0
  65. package/dist-esm/test/maps_operations_test.spec.js.map +1 -0
  66. package/package.json +5 -4
  67. package/review/arm-maps.api.md +65 -12
  68. package/src/azureMapsManagementClient.ts +19 -5
  69. package/src/models/index.ts +127 -32
  70. package/src/models/mappers.ts +112 -19
  71. package/src/models/parameters.ts +1 -1
  72. package/src/operations/accounts.ts +0 -2
  73. package/src/operations/creators.ts +0 -1
  74. package/src/operations/maps.ts +0 -2
  75. package/src/pagingHelper.ts +4 -4
  76. package/types/arm-maps.d.ts +143 -42
  77. package/types/tsdoc-metadata.json +1 -1
  78. package/dist-esm/test/sampleTest.d.ts +0 -2
  79. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  80. package/dist-esm/test/sampleTest.js +0 -38
  81. package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,44 +1,48 @@
1
1
  # Release History
2
2
 
3
- ## 3.1.0-beta.3 (Unreleased)
3
+ ## 3.1.0 (2023-08-08)
4
4
 
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
13
- ## 3.1.0-beta.2 (2022-11-29)
14
-
15
5
  **Features**
16
6
 
17
- - Added operation Accounts.listSas
18
- - Added Interface AccountSasParameters
19
- - Added Interface AccountsListSasOptionalParams
20
- - Added Interface Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties
21
- - Added Interface CorsRule
22
- - Added Interface CorsRules
23
- - Added Interface Creator
24
- - Added Interface LinkedResource
25
- - Added Interface ManagedServiceIdentity
26
- - Added Interface MapsAccount
27
- - Added Interface MapsAccountSasToken
28
- - Added Interface TrackedResource
29
- - Added Type Alias AccountsListSasResponse
30
- - Added Type Alias ResourceIdentityType
31
- - Added Type Alias SigningKey
32
- - Interface MapsAccountProperties has a new optional parameter cors
33
- - Interface MapsAccountProperties has a new optional parameter linkedResources
34
- - Interface MapsAccountUpdateParameters has a new optional parameter cors
35
- - Interface MapsAccountUpdateParameters has a new optional parameter identity
36
- - Interface MapsAccountUpdateParameters has a new optional parameter linkedResources
37
- - Interface MetricSpecification has a new optional parameter internalMetricName
38
- - Interface MetricSpecification has a new optional parameter sourceMdmAccount
39
- - Added Enum KnownSigningKey
40
-
41
-
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
+
42
46
  ## 3.0.0 (2022-01-19)
43
47
 
44
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Microsoft
3
+ Copyright (c) 2023 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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?view=azure-node-preview) |
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 a result page from a pageable operation, returns a
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 A result object from calling .byPage() on a paged operation.
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: "String"
230
+ name: "Uuid"
199
231
  }
200
232
  },
201
233
  tenantId: {
202
234
  serializedName: "tenantId",
203
235
  readOnly: true,
204
236
  type: {
205
- name: "String"
237
+ name: "Uuid"
206
238
  }
207
239
  },
208
240
  type: {
209
241
  serializedName: "type",
242
+ required: true,
210
243
  type: {
211
- name: "Enum",
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 Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties = {
259
+ const UserAssignedIdentity = {
236
260
  type: {
237
261
  name: "Composite",
238
- className: "Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties",
262
+ className: "UserAssignedIdentity",
239
263
  modelProperties: {
240
264
  principalId: {
241
265
  serializedName: "principalId",
242
266
  readOnly: true,
243
267
  type: {
244
- name: "String"
268
+ name: "Uuid"
245
269
  }
246
270
  },
247
271
  clientId: {
248
272
  serializedName: "clientId",
249
273
  readOnly: true,
250
274
  type: {
251
- name: "String"
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
- Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties: Components1Jq1T4ISchemasManagedserviceidentityPropertiesUserassignedidentitiesAdditionalproperties,
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: "2021-12-01-preview",
1338
+ defaultValue: "2023-06-01",
1212
1339
  isConstant: true,
1213
1340
  serializedName: "api-version",
1214
1341
  type: {
@@ -1763,7 +1890,6 @@ const listByResourceGroupNextOperationSpec = {
1763
1890
  bodyMapper: ErrorResponse
1764
1891
  }
1765
1892
  },
1766
- queryParameters: [apiVersion],
1767
1893
  urlParameters: [
1768
1894
  $host,
1769
1895
  subscriptionId,
@@ -1784,7 +1910,6 @@ const listBySubscriptionNextOperationSpec = {
1784
1910
  bodyMapper: ErrorResponse
1785
1911
  }
1786
1912
  },
1787
- queryParameters: [apiVersion],
1788
1913
  urlParameters: [
1789
1914
  $host,
1790
1915
  subscriptionId,
@@ -2020,7 +2145,6 @@ const listOperationsNextOperationSpec = {
2020
2145
  bodyMapper: ErrorResponse
2021
2146
  }
2022
2147
  },
2023
- queryParameters: [apiVersion],
2024
2148
  urlParameters: [$host, nextLink],
2025
2149
  headerParameters: [accept],
2026
2150
  serializer: serializer$1
@@ -2036,7 +2160,6 @@ const listSubscriptionOperationsNextOperationSpec = {
2036
2160
  bodyMapper: ErrorResponse
2037
2161
  }
2038
2162
  },
2039
- queryParameters: [apiVersion],
2040
2163
  urlParameters: [
2041
2164
  $host,
2042
2165
  subscriptionId,
@@ -2329,7 +2452,6 @@ const listByAccountNextOperationSpec = {
2329
2452
  bodyMapper: ErrorResponse
2330
2453
  }
2331
2454
  },
2332
- queryParameters: [apiVersion],
2333
2455
  urlParameters: [
2334
2456
  $host,
2335
2457
  subscriptionId,
@@ -2349,19 +2471,17 @@ const listByAccountNextOperationSpec = {
2349
2471
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
2350
2472
  */
2351
2473
  class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
2352
- /**
2353
- * Initializes a new instance of the AzureMapsManagementClient class.
2354
- * @param credentials Subscription credentials which uniquely identify client subscription.
2355
- * @param subscriptionId The ID of the target subscription.
2356
- * @param options The parameter options
2357
- */
2358
- constructor(credentials, subscriptionId, options) {
2474
+ constructor(credentials, subscriptionIdOrOptions, options) {
2359
2475
  var _a, _b, _c;
2360
2476
  if (credentials === undefined) {
2361
2477
  throw new Error("'credentials' cannot be null");
2362
2478
  }
2363
- if (subscriptionId === undefined) {
2364
- throw new Error("'subscriptionId' cannot be null");
2479
+ let subscriptionId;
2480
+ if (typeof subscriptionIdOrOptions === "string") {
2481
+ subscriptionId = subscriptionIdOrOptions;
2482
+ }
2483
+ else if (typeof subscriptionIdOrOptions === "object") {
2484
+ options = subscriptionIdOrOptions;
2365
2485
  }
2366
2486
  // Initializing default values for options
2367
2487
  if (!options) {
@@ -2371,7 +2491,7 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
2371
2491
  requestContentType: "application/json; charset=utf-8",
2372
2492
  credential: credentials
2373
2493
  };
2374
- const packageDetails = `azsdk-js-arm-maps/3.1.0-beta.3`;
2494
+ const packageDetails = `azsdk-js-arm-maps/3.1.0`;
2375
2495
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2376
2496
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2377
2497
  : `${packageDetails}`;
@@ -2404,7 +2524,7 @@ class AzureMapsManagementClient extends coreClient__namespace.ServiceClient {
2404
2524
  this.subscriptionId = subscriptionId;
2405
2525
  // Assigning values to Constant parameters
2406
2526
  this.$host = options.$host || "https://management.azure.com";
2407
- this.apiVersion = options.apiVersion || "2021-12-01-preview";
2527
+ this.apiVersion = options.apiVersion || "2023-06-01";
2408
2528
  this.accounts = new AccountsImpl(this);
2409
2529
  this.maps = new MapsImpl(this);
2410
2530
  this.creators = new CreatorsImpl(this);