@azure/arm-healthcareapis 2.1.1-alpha.20220413.1 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,14 +1,10 @@
1
1
  # Release History
2
2
 
3
- ## 2.1.1 (Unreleased)
3
+ ## 2.1.1 (2022-04-26)
4
4
 
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
5
+ **Features**
10
6
 
11
- ### Other Changes
7
+ - Bug fix
12
8
 
13
9
  ## 2.1.0 (2022-03-22)
14
10
 
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
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
  var coreLro = require('@azure/core-lro');
8
9
 
@@ -25,6 +26,7 @@ function _interopNamespace(e) {
25
26
  }
26
27
 
27
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
28
30
 
29
31
  /*
30
32
  * Copyright (c) Microsoft Corporation.
@@ -6251,6 +6253,22 @@ class HealthcareApisManagementClient extends coreClient__namespace.ServiceClient
6251
6253
  userAgentPrefix
6252
6254
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
6253
6255
  super(optionsWithDefaults);
6256
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
6257
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
6258
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
6259
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
6260
+ if (!bearerTokenAuthenticationPolicyFound) {
6261
+ this.pipeline.removePolicy({
6262
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
6263
+ });
6264
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
6265
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
6266
+ challengeCallbacks: {
6267
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
6268
+ }
6269
+ }));
6270
+ }
6271
+ }
6254
6272
  // Parameter assignments
6255
6273
  this.subscriptionId = subscriptionId;
6256
6274
  // Assigning values to Constant parameters