@azure/arm-healthcareapis 2.1.1-alpha.20220413.1 → 2.1.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 +3 -7
- package/dist/index.js +18 -0
- 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/src/healthcareApisManagementClient.d.ts.map +1 -1
- package/dist-esm/src/healthcareApisManagementClient.js +17 -0
- package/dist-esm/src/healthcareApisManagementClient.js.map +1 -1
- package/package.json +4 -4
- package/src/healthcareApisManagementClient.ts +24 -0
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
package/CHANGELOG.md
CHANGED
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
|