@azure/arm-apimanagement 8.0.1-alpha.20220401.1 → 8.0.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 (55) hide show
  1. package/CHANGELOG.md +3 -7
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +64 -25
  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/src/apiManagementClient.d.ts.map +1 -1
  9. package/dist-esm/src/apiManagementClient.js +6 -3
  10. package/dist-esm/src/apiManagementClient.js.map +1 -1
  11. package/dist-esm/src/models/index.d.ts +1 -1
  12. package/dist-esm/src/models/index.d.ts.map +1 -1
  13. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  14. package/dist-esm/src/models/mappers.js +1 -3
  15. package/dist-esm/src/models/mappers.js.map +1 -1
  16. package/dist-esm/src/operations/api.d.ts.map +1 -1
  17. package/dist-esm/src/operations/api.js +3 -1
  18. package/dist-esm/src/operations/api.js.map +1 -1
  19. package/dist-esm/src/operations/apiManagementService.d.ts.map +1 -1
  20. package/dist-esm/src/operations/apiManagementService.js +18 -6
  21. package/dist-esm/src/operations/apiManagementService.js.map +1 -1
  22. package/dist-esm/src/operations/apiSchema.d.ts.map +1 -1
  23. package/dist-esm/src/operations/apiSchema.js +3 -1
  24. package/dist-esm/src/operations/apiSchema.js.map +1 -1
  25. package/dist-esm/src/operations/deletedServices.d.ts.map +1 -1
  26. package/dist-esm/src/operations/deletedServices.js +3 -1
  27. package/dist-esm/src/operations/deletedServices.js.map +1 -1
  28. package/dist-esm/src/operations/namedValue.d.ts.map +1 -1
  29. package/dist-esm/src/operations/namedValue.js +9 -3
  30. package/dist-esm/src/operations/namedValue.js.map +1 -1
  31. package/dist-esm/src/operations/portalRevision.d.ts.map +1 -1
  32. package/dist-esm/src/operations/portalRevision.js +6 -2
  33. package/dist-esm/src/operations/portalRevision.js.map +1 -1
  34. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
  35. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +6 -2
  36. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
  37. package/dist-esm/src/operations/tenantConfiguration.d.ts.map +1 -1
  38. package/dist-esm/src/operations/tenantConfiguration.js +9 -3
  39. package/dist-esm/src/operations/tenantConfiguration.js.map +1 -1
  40. package/package.json +14 -6
  41. package/review/arm-apimanagement.api.md +1 -1
  42. package/rollup.config.js +6 -72
  43. package/src/apiManagementClient.ts +6 -3
  44. package/src/models/index.ts +1 -1
  45. package/src/models/mappers.ts +1 -3
  46. package/src/operations/api.ts +3 -1
  47. package/src/operations/apiManagementService.ts +18 -6
  48. package/src/operations/apiSchema.ts +3 -1
  49. package/src/operations/deletedServices.ts +3 -1
  50. package/src/operations/namedValue.ts +9 -3
  51. package/src/operations/portalRevision.ts +6 -2
  52. package/src/operations/privateEndpointConnectionOperations.ts +6 -2
  53. package/src/operations/tenantConfiguration.ts +9 -3
  54. package/tsconfig.json +12 -4
  55. package/types/arm-apimanagement.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,14 +1,10 @@
1
1
  # Release History
2
2
 
3
- ## 8.0.1 (Unreleased)
3
+ ## 8.0.1 (2022-04-06)
4
4
 
5
- ### Features Added
5
+ **features**
6
6
 
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
7
+ - Bug fix
12
8
 
13
9
  ## 8.0.0 (2021-12-13)
14
10
 
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Microsoft
3
+ Copyright (c) 2022 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
@@ -16,6 +16,8 @@ ApiManagement Client
16
16
  - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20
+
19
21
  ### Prerequisites
20
22
 
21
23
  - An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { ApiManagementClient } = require("@azure/arm-apimanagement");
51
53
  const { DefaultAzureCredential } = require("@azure/identity");
54
+ // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55
+
52
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
57
  const client = new ApiManagementClient(new DefaultAzureCredential(), subscriptionId);
58
+
59
+ // For client-side applications running in the browser, use this code instead:
60
+ // const credential = new InteractiveBrowserCredential({
61
+ // tenantId: "<YOUR_TENANT_ID>",
62
+ // clientId: "<YOUR_CLIENT_ID>"
63
+ // });
64
+ // const client = new ApiManagementClient(credential, subscriptionId);
54
65
  ```
55
66
 
56
67
 
package/dist/index.js CHANGED
@@ -11051,9 +11051,7 @@ const ContentItemContract = {
11051
11051
  xmlName: "properties",
11052
11052
  type: {
11053
11053
  name: "Dictionary",
11054
- value: {
11055
- type: { name: "Dictionary", value: { type: { name: "any" } } }
11056
- }
11054
+ value: { type: { name: "any" } }
11057
11055
  }
11058
11056
  } })
11059
11057
  }
@@ -18118,11 +18116,13 @@ class ApiImpl {
18118
18116
  };
18119
18117
  });
18120
18118
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, apiId, parameters, options }, createOrUpdateOperationSpec$J);
18121
- return new coreLro.LroEngine(lro, {
18119
+ const poller = new coreLro.LroEngine(lro, {
18122
18120
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
18123
18121
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
18124
18122
  lroResourceLocationConfig: "location"
18125
18123
  });
18124
+ yield poller.poll();
18125
+ return poller;
18126
18126
  });
18127
18127
  }
18128
18128
  /**
@@ -21227,11 +21227,13 @@ class ApiSchemaImpl {
21227
21227
  };
21228
21228
  });
21229
21229
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, apiId, schemaId, parameters, options }, createOrUpdateOperationSpec$D);
21230
- return new coreLro.LroEngine(lro, {
21230
+ const poller = new coreLro.LroEngine(lro, {
21231
21231
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
21232
21232
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
21233
21233
  lroResourceLocationConfig: "location"
21234
21234
  });
21235
+ yield poller.poll();
21236
+ return poller;
21235
21237
  });
21236
21238
  }
21237
21239
  /**
@@ -25721,11 +25723,13 @@ class DeletedServicesImpl {
25721
25723
  };
25722
25724
  });
25723
25725
  const lro = new LroImpl(sendOperation, { serviceName, location, options }, purgeOperationSpec);
25724
- return new coreLro.LroEngine(lro, {
25726
+ const poller = new coreLro.LroEngine(lro, {
25725
25727
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
25726
25728
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
25727
25729
  lroResourceLocationConfig: "location"
25728
25730
  });
25731
+ yield poller.poll();
25732
+ return poller;
25729
25733
  });
25730
25734
  }
25731
25735
  /**
@@ -26229,11 +26233,13 @@ class ApiManagementServiceImpl {
26229
26233
  };
26230
26234
  });
26231
26235
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, parameters, options }, restoreOperationSpec);
26232
- return new coreLro.LroEngine(lro, {
26236
+ const poller = new coreLro.LroEngine(lro, {
26233
26237
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26234
26238
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26235
26239
  lroResourceLocationConfig: "location"
26236
26240
  });
26241
+ yield poller.poll();
26242
+ return poller;
26237
26243
  });
26238
26244
  }
26239
26245
  /**
@@ -26284,11 +26290,13 @@ class ApiManagementServiceImpl {
26284
26290
  };
26285
26291
  });
26286
26292
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, parameters, options }, backupOperationSpec);
26287
- return new coreLro.LroEngine(lro, {
26293
+ const poller = new coreLro.LroEngine(lro, {
26288
26294
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26289
26295
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26290
26296
  lroResourceLocationConfig: "location"
26291
26297
  });
26298
+ yield poller.poll();
26299
+ return poller;
26292
26300
  });
26293
26301
  }
26294
26302
  /**
@@ -26338,10 +26346,12 @@ class ApiManagementServiceImpl {
26338
26346
  };
26339
26347
  });
26340
26348
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, parameters, options }, createOrUpdateOperationSpec$q);
26341
- return new coreLro.LroEngine(lro, {
26349
+ const poller = new coreLro.LroEngine(lro, {
26342
26350
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26343
26351
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
26344
26352
  });
26353
+ yield poller.poll();
26354
+ return poller;
26345
26355
  });
26346
26356
  }
26347
26357
  /**
@@ -26390,10 +26400,12 @@ class ApiManagementServiceImpl {
26390
26400
  };
26391
26401
  });
26392
26402
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, parameters, options }, updateOperationSpec$i);
26393
- return new coreLro.LroEngine(lro, {
26403
+ const poller = new coreLro.LroEngine(lro, {
26394
26404
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26395
26405
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
26396
26406
  });
26407
+ yield poller.poll();
26408
+ return poller;
26397
26409
  });
26398
26410
  }
26399
26411
  /**
@@ -26449,10 +26461,12 @@ class ApiManagementServiceImpl {
26449
26461
  };
26450
26462
  });
26451
26463
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, options }, deleteOperationSpec$m);
26452
- return new coreLro.LroEngine(lro, {
26464
+ const poller = new coreLro.LroEngine(lro, {
26453
26465
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26454
26466
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
26455
26467
  });
26468
+ yield poller.poll();
26469
+ return poller;
26456
26470
  });
26457
26471
  }
26458
26472
  /**
@@ -26538,11 +26552,13 @@ class ApiManagementServiceImpl {
26538
26552
  };
26539
26553
  });
26540
26554
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, options }, applyNetworkConfigurationUpdatesOperationSpec);
26541
- return new coreLro.LroEngine(lro, {
26555
+ const poller = new coreLro.LroEngine(lro, {
26542
26556
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
26543
26557
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
26544
26558
  lroResourceLocationConfig: "location"
26545
26559
  });
26560
+ yield poller.poll();
26561
+ return poller;
26546
26562
  });
26547
26563
  }
26548
26564
  /**
@@ -30507,11 +30523,13 @@ class NamedValueImpl {
30507
30523
  };
30508
30524
  });
30509
30525
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, namedValueId, parameters, options }, createOrUpdateOperationSpec$g);
30510
- return new coreLro.LroEngine(lro, {
30526
+ const poller = new coreLro.LroEngine(lro, {
30511
30527
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30512
30528
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30513
30529
  lroResourceLocationConfig: "location"
30514
30530
  });
30531
+ yield poller.poll();
30532
+ return poller;
30515
30533
  });
30516
30534
  }
30517
30535
  /**
@@ -30570,11 +30588,13 @@ class NamedValueImpl {
30570
30588
  parameters,
30571
30589
  options
30572
30590
  }, updateOperationSpec$b);
30573
- return new coreLro.LroEngine(lro, {
30591
+ const poller = new coreLro.LroEngine(lro, {
30574
30592
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30575
30593
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30576
30594
  lroResourceLocationConfig: "location"
30577
30595
  });
30596
+ yield poller.poll();
30597
+ return poller;
30578
30598
  });
30579
30599
  }
30580
30600
  /**
@@ -30647,11 +30667,13 @@ class NamedValueImpl {
30647
30667
  };
30648
30668
  });
30649
30669
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, namedValueId, options }, refreshSecretOperationSpec);
30650
- return new coreLro.LroEngine(lro, {
30670
+ const poller = new coreLro.LroEngine(lro, {
30651
30671
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
30652
30672
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
30653
30673
  lroResourceLocationConfig: "location"
30654
30674
  });
30675
+ yield poller.poll();
30676
+ return poller;
30655
30677
  });
30656
30678
  }
30657
30679
  /**
@@ -32329,11 +32351,13 @@ class PortalRevisionImpl {
32329
32351
  };
32330
32352
  });
32331
32353
  const lro = new LroImpl(sendOperation, { resourceGroupName, serviceName, portalRevisionId, parameters, options }, createOrUpdateOperationSpec$a);
32332
- return new coreLro.LroEngine(lro, {
32354
+ const poller = new coreLro.LroEngine(lro, {
32333
32355
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32334
32356
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32335
32357
  lroResourceLocationConfig: "location"
32336
32358
  });
32359
+ yield poller.poll();
32360
+ return poller;
32337
32361
  });
32338
32362
  }
32339
32363
  /**
@@ -32395,11 +32419,13 @@ class PortalRevisionImpl {
32395
32419
  parameters,
32396
32420
  options
32397
32421
  }, updateOperationSpec$9);
32398
- return new coreLro.LroEngine(lro, {
32422
+ const poller = new coreLro.LroEngine(lro, {
32399
32423
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
32400
32424
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
32401
32425
  lroResourceLocationConfig: "location"
32402
32426
  });
32427
+ yield poller.poll();
32428
+ return poller;
32403
32429
  });
32404
32430
  }
32405
32431
  /**
@@ -33278,10 +33304,12 @@ class PrivateEndpointConnectionOperationsImpl {
33278
33304
  privateEndpointConnectionRequest,
33279
33305
  options
33280
33306
  }, createOrUpdateOperationSpec$6);
33281
- return new coreLro.LroEngine(lro, {
33307
+ const poller = new coreLro.LroEngine(lro, {
33282
33308
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33283
33309
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33284
33310
  });
33311
+ yield poller.poll();
33312
+ return poller;
33285
33313
  });
33286
33314
  }
33287
33315
  /**
@@ -33335,10 +33363,12 @@ class PrivateEndpointConnectionOperationsImpl {
33335
33363
  privateEndpointConnectionName,
33336
33364
  options
33337
33365
  }, deleteOperationSpec$6);
33338
- return new coreLro.LroEngine(lro, {
33366
+ const poller = new coreLro.LroEngine(lro, {
33339
33367
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
33340
33368
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
33341
33369
  });
33370
+ yield poller.poll();
33371
+ return poller;
33342
33372
  });
33343
33373
  }
33344
33374
  /**
@@ -37779,11 +37809,13 @@ class TenantConfigurationImpl {
37779
37809
  parameters,
37780
37810
  options
37781
37811
  }, deployOperationSpec);
37782
- return new coreLro.LroEngine(lro, {
37812
+ const poller = new coreLro.LroEngine(lro, {
37783
37813
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
37784
37814
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
37785
37815
  lroResourceLocationConfig: "location"
37786
37816
  });
37817
+ yield poller.poll();
37818
+ return poller;
37787
37819
  });
37788
37820
  }
37789
37821
  /**
@@ -37841,11 +37873,13 @@ class TenantConfigurationImpl {
37841
37873
  parameters,
37842
37874
  options
37843
37875
  }, saveOperationSpec);
37844
- return new coreLro.LroEngine(lro, {
37876
+ const poller = new coreLro.LroEngine(lro, {
37845
37877
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
37846
37878
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
37847
37879
  lroResourceLocationConfig: "location"
37848
37880
  });
37881
+ yield poller.poll();
37882
+ return poller;
37849
37883
  });
37850
37884
  }
37851
37885
  /**
@@ -37903,11 +37937,13 @@ class TenantConfigurationImpl {
37903
37937
  parameters,
37904
37938
  options
37905
37939
  }, validateOperationSpec);
37906
- return new coreLro.LroEngine(lro, {
37940
+ const poller = new coreLro.LroEngine(lro, {
37907
37941
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
37908
37942
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
37909
37943
  lroResourceLocationConfig: "location"
37910
37944
  });
37945
+ yield poller.poll();
37946
+ return poller;
37911
37947
  });
37912
37948
  }
37913
37949
  /**
@@ -38999,6 +39035,7 @@ class ApiManagementClient extends coreClient__namespace.ServiceClient {
38999
39035
  * @param options The parameter options
39000
39036
  */
39001
39037
  constructor(credentials, subscriptionId, options) {
39038
+ var _a, _b;
39002
39039
  if (credentials === undefined) {
39003
39040
  throw new Error("'credentials' cannot be null");
39004
39041
  }
@@ -39013,7 +39050,7 @@ class ApiManagementClient extends coreClient__namespace.ServiceClient {
39013
39050
  requestContentType: "application/json; charset=utf-8",
39014
39051
  credential: credentials
39015
39052
  };
39016
- const packageDetails = `azsdk-js-arm-apimanagement/8.0.0`;
39053
+ const packageDetails = `azsdk-js-arm-apimanagement/8.0.1`;
39017
39054
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39018
39055
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39019
39056
  : `${packageDetails}`;
@@ -39022,7 +39059,7 @@ class ApiManagementClient extends coreClient__namespace.ServiceClient {
39022
39059
  }
39023
39060
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
39024
39061
  userAgentPrefix
39025
- }, baseUri: options.endpoint || "https://management.azure.com" });
39062
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
39026
39063
  super(optionsWithDefaults);
39027
39064
  // Parameter assignments
39028
39065
  this.subscriptionId = subscriptionId;
@@ -39142,11 +39179,13 @@ class ApiManagementClient extends coreClient__namespace.ServiceClient {
39142
39179
  connectivityCheckRequestParams,
39143
39180
  options
39144
39181
  }, performConnectivityCheckAsyncOperationSpec);
39145
- return new coreLro.LroEngine(lro, {
39182
+ const poller = new coreLro.LroEngine(lro, {
39146
39183
  resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
39147
39184
  intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
39148
39185
  lroResourceLocationConfig: "location"
39149
39186
  });
39187
+ yield poller.poll();
39188
+ return poller;
39150
39189
  });
39151
39190
  }
39152
39191
  /**